-
Notifications
You must be signed in to change notification settings - Fork 85
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
[bop]Build RPM pkgs from OpenDev Depends On #1418
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
roles/build_openstack_packages/tasks/parse_and_build_pkgs.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
- name: Parse Zuul changes | ||
with_items: "{{ zuul['items'] }}" | ||
when: | ||
- zuul is defined | ||
- "'change_url' in item" | ||
- '"-distgit" not in item.project' | ||
- item.project.name not in cifmw_bop_change_list|default([]) | map(attribute='project') |list | ||
- >- | ||
cifmw_bop_release_mapping[cifmw_bop_openstack_release] in item.branch or | ||
(cifmw_bop_openstack_release is not defined and item.branch == zuul.override_checkout | default(zuul.branch)) or | ||
(cifmw_bop_osp_release is defined and cifmw_bop_osp_release in item.branch) or | ||
item.project.name in cifmw_bop_branchless_projects | ||
ansible.builtin.set_fact: | ||
cacheable: true | ||
cifmw_bop_change_list: | ||
"{{ cifmw_bop_change_list|default([]) + | ||
[{'host': item.change_url | regex_search('(^https?://.*?)/', '\\1') | first, | ||
'project': item.project.name, | ||
'branch': item.branch, | ||
'change': item.change, | ||
'refspec': '/'.join(['refs', 'changes', | ||
item.change[-2:], | ||
item.change, | ||
item.patchset]) }] }}" | ||
|
||
|
||
- name: Print Zuul change list | ||
ansible.builtin.debug: | ||
var: cifmw_bop_change_list | ||
|
||
- name: Build DLRN packages from zuul changes | ||
when: | ||
- '"-distgit" not in _change.project' | ||
- _change.project not in cifmw_bop_skipped_projects | ||
- >- | ||
cifmw_bop_release_mapping[cifmw_bop_openstack_release] in _change.branch or | ||
(zuul.project.name | default("") == cifmw_bop_rdoinfo_repo_name) or | ||
(cifmw_bop_osp_release is defined and cifmw_bop_osp_release in _change.branch) or | ||
_change.project in cifmw_bop_branchless_projects | ||
loop: "{{ cifmw_bop_change_list }}" | ||
loop_control: | ||
loop_var: "_change" | ||
ansible.builtin.include_tasks: run_dlrn.yml | ||
|
||
- name: Build DLRN packages from Local change | ||
when: cifmw_bop_openstack_project_path | length > 0 | ||
vars: | ||
_change: | ||
branch: "{{ cifmw_bop_openstack_release }}" | ||
project: "{{ cifmw_bop_openstack_project_path | basename }}" | ||
ansible.builtin.include_tasks: run_dlrn.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
this is also added in https://github.com/openstack-k8s-operators/ci-framework/pull/1457/files
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.
Thank you @marios for the review, PR#1457 is now merged. I have rebase this pr from main.