-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable Downstream trigger job in the architecture repo #374
Enable Downstream trigger job in the architecture repo #374
Conversation
Zuul encountered a syntax error while parsing its while parsing a block mapping |
Here is an example of trigger job in action with results. |
/assign @abays |
I see the logs from the ceph deploy from the new trigger and it looks good. Thank you @raukadah this will be helpful. I assume we'll keep gating with I'm +2 to add this feature and don't see anything wrong with the patch myself. |
I do see a red result here |
Zuul encountered a syntax error while parsing its expected a list for dictionary value @ data['github-experimental-trigger']['jobs'] The problem appears in the the following project stanza: project: in "openstack-k8s-operators/architecture/zuul.d/projects.yaml@main", line 1 |
@fultonj yup! The goal for this job is to trigger when we need downstream results. In order to avoid the misuse, We are also working on github-action pr to restrict triggering to approvers only. |
`\trigger github-experimental` in the github pull request comment. | ||
These jobs runs in github-experimental-trigger pipeline. | ||
files: | ||
- ^lib |
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.
we should probably start having one file per DT/VA, instead of the main "defaults.yml" nested in the automation tree. That would allow to trigger the job upon automation file modification as well.
@fultonj @abays IIRC the first proposal for the automation description file was, indeed, to get one file per VA/DT. IMHO, having everything in one single file was a mistake - we can probably correct that without the need to break all of the existing jobs, by ensuring the filename matches the scenario name.
We'd then "just" need a simple change in the framework to consume the file, and voilà.
Any thoughts?
Otherwise, the file listed here looks OK, with the current automation layout.
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.
Some VA/DTs already have dedicated files, so I think we can move the ones to a dedicated file for each VA/DT without any issue.
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.
I have no objections to having a separate file per VA/DT.
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.
If we get a PR which proposes separate file per VA/DT, then I'd be happy to help merge it.
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.
As a way forward can we do this?
- A ci-framework patch and architecture patch to split default into multiple files
- then we merge this patch
Or is there a need to merge this patch sooner?
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.
Above approach looks good to me. I will work on splitting the defaults changes and then merge this patch.
Below are the list of patches to achieve the same:
openstack-k8s-operators#374 adds the trigger job which will run different Baremetal VA jobs downstream on different architecture file changes. Currently automation/vars/default.yaml contains different multiple scenarios, stored in a single file. Trigger job may run unwanted jobs downstream without testing the proper architecture changes. By moving automations vars into different scenario files allow us to run selective trigger job and test the proper prs. Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
openstack-k8s-operators#374 adds the trigger job which will run different Baremetal VA jobs downstream on different architecture file changes. Currently automation/vars/default.yaml contains different multiple scenarios, stored in a single file. Trigger job may run unwanted jobs downstream without testing the proper architecture changes. By moving automations vars into different scenario files allow us to run selective trigger job and test the proper prs. Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
openstack-k8s-operators#374 adds the trigger job which will run different Baremetal VA jobs downstream on different architecture file changes. Currently automation/vars/default.yaml contains different multiple scenarios, stored in a single file. Trigger job may run unwanted jobs downstream without testing the proper architecture changes. By moving automations vars into different scenario files allow us to run selective trigger job and test the proper prs. Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
openstack-k8s-operators#374 adds the trigger job which will run different Baremetal VA jobs downstream on different architecture file changes. Currently automation/vars/default.yaml contains different multiple scenarios, stored in a single file. Trigger job may run unwanted jobs downstream without testing the proper architecture changes. By moving automations vars into different scenario files allow us to run selective trigger job and test the proper prs. Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
openstack-k8s-operators#374 adds the trigger job which will run different Baremetal VA jobs downstream on different architecture file changes. Currently automation/vars/default.yaml contains different multiple scenarios, stored in a single file. Trigger job may run unwanted jobs downstream without testing the proper architecture changes. By moving automations vars into different scenario files allow us to run selective trigger job and test the proper prs. Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
openstack-k8s-operators#374 adds the trigger job which will run different Baremetal VA jobs downstream on different architecture file changes. Currently automation/vars/default.yaml contains different multiple scenarios, stored in a single file. Trigger job may run unwanted jobs downstream without testing the proper architecture changes. By moving automations vars into different scenario files allow us to run selective trigger job and test the proper prs. Let's keep the defaults.yaml file till we finish the migration. Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
openstack-k8s-operators#374 adds the trigger job which will run different Baremetal VA jobs downstream on different architecture file changes. Currently automation/vars/default.yaml contains different multiple scenarios, stored in a single file. Trigger job may run unwanted jobs downstream without testing the proper architecture changes. By moving automations vars into different scenario files allow us to run selective trigger job and test the proper prs. Let's keep the defaults.yaml file till we finish the migration. Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
Move automation default vars into seperate scenario files #374 adds the trigger job which will run different Baremetal VA jobs downstream on different architecture file changes. Currently automation/vars/default.yaml contains different multiple scenarios, stored in a single file. Trigger job may run unwanted jobs downstream without testing the proper architecture changes. By moving automations vars into different scenario files allow us to run selective trigger job and test the proper prs. Reviewed-by: John Fulton <johfulto@redhat.com>
In order to test VA HCI related changes, we used to run testproject in the downstream. downstream-va-hci-trigger-job drops the need of running testproject for VA HCI related changes. An developer can trigger the job by adding `trigger github-experimental` in the pull request comment section. The trigger job will create a review on https://review.rdoproject.org/r/q/project:tripleo-downstream-trigger-nested-virt repo with proper depends-on with the origin pr and dependendent change. From tripleo-downstream-trigger-nested-virt gerrit review, it will start VA HCI job downstream in rdo-check pipeline. Once the job finishes, It will post the results on the gerrit review. Devs can verify the results before merging it. Note: It modifies create-zuul-jobs.py to include experimental jobs. Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
b744513
to
9643736
Compare
/lgtm |
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.
/approve
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fultonj, raukadah The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
recheck-gate |
Build succeeded (gate pipeline). ✔️ noop SUCCESS in 0s |
4b43496
into
openstack-k8s-operators:main
openstack-k8s-operators#374 adds the trigger job which will run different Baremetal VA jobs downstream on different architecture file changes. Currently automation/vars/default.yaml contains different multiple scenarios, stored in a single file. Trigger job may run unwanted jobs downstream without testing the proper architecture changes. By moving automations vars into different scenario files allow us to run selective trigger job and test the proper prs. Let's keep the defaults.yaml file till we finish the migration. Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
In order to test VA HCI related changes, we used to run testproject in the downstream.
downstream-va-hci-trigger-job drops the need of running testproject for VA HCI related changes.
An developer can trigger the job by adding
trigger github-experimental
in the pull request comment section. The trigger job will create a review onhttps://review.rdoproject.org/r/q/project:tripleo-downstream-trigger-nested-virt repo with proper depends-on with the origin pr and dependendent change.
From tripleo-downstream-trigger-nested-virt gerrit review, it will start VA HCI job downstream in rdo-check pipeline. Once the job finishes, It will post the results on the gerrit review. Devs can verify the results before merging it.
Note: It modifies create-zuul-jobs.py to include experimental jobs.