-
Notifications
You must be signed in to change notification settings - Fork 20
Handle sharded ci-operator CMs in rehearse #104
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,15 +16,14 @@ presubmits: | |
| - --artifact-dir=$(ARTIFACTS) | ||
| - --give-pr-author-access-to-namespace=true | ||
| - --target=[images] | ||
| - --target=[release:latest] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is surprising -- @smarterclayton ?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's expected after regeneration - the source file is https://github.com/openshift/ci-operator-prowgen/blob/master/test/pj-rehearse-integration/candidate/ci-operator/config/super/duper/super-duper-ciop-cfg-change.yaml - it does not have a |
||
| command: | ||
| - ci-operator | ||
| env: | ||
| - name: CONFIG_SPEC | ||
| valueFrom: | ||
| configMapKeyRef: | ||
| key: super-duper-ciop-cfg-change.yaml | ||
| name: ci-operator-configs | ||
| name: ci-operator-misc-configs | ||
| image: ci-operator:latest | ||
| imagePullPolicy: Always | ||
| name: "" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,7 +23,7 @@ presubmits: | |
| valueFrom: | ||
| configMapKeyRef: | ||
| key: super-duper-master.yaml | ||
| name: ci-operator-configs | ||
| name: ci-operator-master-configs | ||
| image: ci-operator:latest | ||
| imagePullPolicy: Always | ||
| name: "" | ||
|
|
@@ -61,7 +61,7 @@ presubmits: | |
| valueFrom: | ||
| configMapKeyRef: | ||
| key: super-duper-master.yaml | ||
| name: ci-operator-configs | ||
| name: ci-operator-master-configs | ||
| - name: JOB_NAME_SAFE | ||
| value: e2e-aws | ||
| - name: TEST_COMMAND | ||
|
|
@@ -107,25 +107,22 @@ presubmits: | |
| - --artifact-dir=$(ARTIFACTS) | ||
| - --give-pr-author-access-to-namespace=true | ||
| - --target=[images] | ||
| - --target=[release:latest] | ||
| command: | ||
| - ci-operator | ||
| env: | ||
| - name: CONFIG_SPEC | ||
| valueFrom: | ||
| configMapKeyRef: | ||
| key: super-duper-master.yaml | ||
| name: ci-operator-configs | ||
| name: ci-operator-master-configs | ||
| image: ci-operator:latest | ||
| imagePullPolicy: Always | ||
| name: "" | ||
| resources: | ||
| limits: | ||
| cpu: 500m | ||
| requests: | ||
| cpu: 10m | ||
| serviceAccountName: ci-operator | ||
| trigger: ((?m)^/test( all| images),?(\s+|$)) | ||
| trigger: '(?m)^/test (?:.*? )?images(?: .*?)?$' | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How was this not broken before?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
| - agent: kubernetes | ||
| always_run: true | ||
| branches: | ||
|
|
@@ -149,7 +146,7 @@ presubmits: | |
| valueFrom: | ||
| configMapKeyRef: | ||
| key: super-duper-master.yaml | ||
| name: ci-operator-configs | ||
| name: ci-operator-master-configs | ||
| image: ci-operator:latest | ||
| imagePullPolicy: Always | ||
| name: "" | ||
|
|
@@ -183,7 +180,7 @@ presubmits: | |
| valueFrom: | ||
| configMapKeyRef: | ||
| key: super-duper-master.yaml | ||
| name: ci-operator-configs | ||
| name: ci-operator-master-configs | ||
| image: ci-operator:latest | ||
| imagePullPolicy: Always | ||
| name: "" | ||
|
|
||
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 rehearsalmain()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.There was a problem hiding this comment.
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?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.