Skip to content
This repository was archived by the owner on Jun 14, 2019. It is now read-only.

Conversation

@petr-muller
Copy link
Member

Previously, rehearse assumed all ci-operator configs live in a single
CM, called ci-operator-configs. After openshift/release PR#3009, this
is no longer true, so the two places that work with ci-operator configs
(change detection and ciop config inlining) need to be adjusted.

Builds on #101

@openshift-ci-robot openshift-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Mar 7, 2019
continue
}
if env.ValueFrom.ConfigMapKeyRef.Name == config.CiOperatorConfigsCMName {
if config.IsCiopConfigCM(env.ValueFrom.ConfigMapKeyRef.Name) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait so this method just returns any presubmit that uses ci-op in a configmap mount? How's it used?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The method returns any presubmit that references one of the configs in ciopConfigs. The rehearsal main() uses this method to obtain a set of jobs that were affected by a change to a ciop config - it passes just the ciop configs that were changed into this method.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is it doing the filtering for things actually in the ciopConfigs? Right now it returns any presubmit that mounts any CI Op config file?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// if it is one of the CMs with ciop configs
if config.IsCiopConfigCM(env.ValueFrom.ConfigMapKeyRef.Name) {  
  // if the key into the CM is one of the filenames in `ciopConfigs`
  if _, ok := ciopConfigs[env.ValueFrom.ConfigMapKeyRef.Key]; ok {
    ret.Add(repo, job)
  }
}

- Regenerate generated jobs with recent Prowgen, changing:
  - ci-operator-configs CM names
  - remove `--target=[release:latest]` from some jobs
  - remove CPU limits from jobs
Previously, rehearse assumed all ci-operator configs live in a single
CM, called "ci-operator-configs". After openshift/release PR#3009, this
is no longer true, so the two places that work with ci-operator configs
(change detection and ciop config inlining) need to be adjusted.
@petr-muller petr-muller force-pushed the fix-rehearsals-after-shard branch from f4337d8 to ef7ae54 Compare March 7, 2019 17:34
@openshift-ci-robot openshift-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Mar 7, 2019
- --artifact-dir=$(ARTIFACTS)
- --give-pr-author-access-to-namespace=true
- --target=[images]
- --target=[release:latest]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is surprising -- @smarterclayton ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cpu: 10m
serviceAccountName: ci-operator
trigger: ((?m)^/test( all| images),?(\s+|$))
trigger: '(?m)^/test (?:.*? )?images(?: .*?)?$'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How was this not broken before?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are just test jobs for rehearse, I believe this field is not used anywhere.

Copy link
Contributor

@stevekuznetsov stevekuznetsov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 7, 2019
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: petr-muller, stevekuznetsov

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [petr-muller,stevekuznetsov]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

3 similar comments
@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit f041fbe into openshift:master Mar 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants