Skip to content

Commit

Permalink
Enable Downstream trigger job in the architecture repo
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
raukadah committed Aug 26, 2024
1 parent 449b690 commit 68f3243
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion create-zuul-jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ def create_job(name, data):
_PROJECTS.sort()
with open('./zuul.d/projects.yaml', 'w+') as zuul_projects:
struct = [{'project': {'github-check': {'jobs': _PROJECTS},
'github-gate': {'jobs': _PROJECTS}
'github-gate': {'jobs': _PROJECTS},
'github-experimental-trigger': {'jobs': 'architecture-downstream-va-hci-trigger-job'}
}
}
]
Expand Down
2 changes: 2 additions & 0 deletions zuul.d/projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@
- rhoso-architecture-validate-uni05epsilon
- rhoso-architecture-validate-uni06zeta
- rhoso-architecture-validate-uni07eta
github-experimental-trigger:
jobs: architecture-downstream-va-hci-trigger-job
github-gate:
jobs: *id001
13 changes: 13 additions & 0 deletions zuul.d/trigger-jobs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
- job:
name: architecture-downstream-va-hci-trigger-job
parent: downstream-va-hci-trigger-job
description: |
This job will trigger a VA HCI job downstream.
We can invoke this job by adding following comment
`\trigger github-experimental` in the github pull request comment.
These jobs runs in github-experimental-trigger pipeline.
files:
- ^lib
- ^examples/common
- ^examples/dt/hci
- ^va/hci

0 comments on commit 68f3243

Please sign in to comment.