-
Notifications
You must be signed in to change notification settings - Fork 29
Refactor JSON generator for susemanager-ci after 5.0.5 & 4.3.16 BV results #1727
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
base: master
Are you sure you want to change the base?
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -91,7 +91,6 @@ def update_custom_repositories(custom_repositories: dict[str, dict[str, str]], n | |||||
| node_ids[final_id] = url | ||||||
| custom_repositories[node] = node_ids | ||||||
|
|
||||||
|
|
||||||
| def find_valid_repos(mi_ids: set[str], version: str): | ||||||
| version_data = get_version_nodes(version) | ||||||
|
|
||||||
|
|
@@ -101,6 +100,9 @@ def find_valid_repos(mi_ids: set[str], version: str): | |||||
| custom_repositories = init_custom_repositories(version, static_repos) | ||||||
|
|
||||||
| for node, repositories in dynamic_nodes.items(): | ||||||
| if node in ["openeuler2403_minion"]: | ||||||
| # openeuler minion are deployed but not used for SLE MU & BV MIs | ||||||
|
||||||
| # openeuler minion are deployed but not used for SLE MU & BV MIs | |
| # openeuler minions are deployed but not used for SLE MU & BV MIs |
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -28,16 +28,14 @@ | |||||||||||||
| v51_nodes_static_client_tools_repositories: Dict[str, Dict[str, str]] = { | ||||||||||||||
| "alma8_minion": { | ||||||||||||||
| "RES_8_client_tools": "/RES-8:/Update:/Products:/MultiLinuxManagerTools/images/repo/MultiLinuxManagerTools-EL-8-x86_64-Media1/"}, | ||||||||||||||
| "amazon2023_minion": { | ||||||||||||||
maximenoel8 marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||
| "EL_9_client_tools": "/EL-9:/Update:/Products:/MultiLinuxManagerTools/images/repo/MultiLinuxManagerTools-EL-9-x86_64-Media1/"}, | ||||||||||||||
| "alma9_minion": { | ||||||||||||||
| "EL_9_client_tools": "/EL-9:/Update:/Products:/MultiLinuxManagerTools/images/repo/MultiLinuxManagerTools-EL-9-x86_64-Media1/"}, | ||||||||||||||
| "amazon2023_minion": { | ||||||||||||||
| "EL_9_client_tools": "/EL-9:/Update:/Products:/MultiLinuxManagerTools/images/repo/MultiLinuxManagerTools-EL-9-x86_64-Media1/"}, | ||||||||||||||
| "centos7_minion": { | ||||||||||||||
| "RES_7_client_tools": "/RES-7:/Update:/Products:/MultiLinuxManagerTools/images/repo/ManagerTools-EL7-POOL-x86_64-Media/"}, | ||||||||||||||
| "liberty9_minion": { | ||||||||||||||
| "EL_9_client_tools": "/EL-9:/Update:/Products:/MultiLinuxManagerTools/images/repo/MultiLinuxManagerTools-EL-9-x86_64-Media1/"}, | ||||||||||||||
| "openeuler2403_minion": { | ||||||||||||||
| "EL_9_client_tools": "/EL-9:/Update:/Products:/MultiLinuxManagerTools/images/repo/MultiLinuxManagerTools-EL-9-x86_64-Media1/"}, | ||||||||||||||
| "opensuse156arm_minion": { | ||||||||||||||
| "sle15_arm_client_tools": "/SLE-15:/Update:/Products:/MultiLinuxManagerTools/images/repo/ManagerTools-SLE15-Pool-aarch64-Media1/"}, | ||||||||||||||
| "oracle9_minion": { | ||||||||||||||
|
|
@@ -123,7 +121,10 @@ | |||||||||||||
| v51_nodes_dynamic_client_tools_repos: Dict[str, Dict[str, str]] = { | ||||||||||||||
| "debian12_minion": {"/SUSE_Updates_MultiLinuxManagerTools_Debian-12_x86_64/"}, | ||||||||||||||
| "ubuntu2204_minion": {"/SUSE_Updates_MultiLinuxManagerTools_Ubuntu-22.04_x86_64/"}, | ||||||||||||||
| "ubuntu2404_minion": {"/SUSE_Updates_MultiLinuxManagerTools_Ubuntu-24.04_x86_64/"} | ||||||||||||||
| "ubuntu2404_minion": {"/SUSE_Updates_MultiLinuxManagerTools_Ubuntu-24.04_x86_64/"}, | ||||||||||||||
| "slmicro60_minion": {"/SUSE:/ALP:/Source:/Standard:/1.0:/Staging:/Z/standard/"}, | ||||||||||||||
|
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. I don't have the full story of those repositories. By from my experience they were statics. Do they replace susemanager-ci/jenkins_pipelines/scripts/json_generator/repository_versions/v51_nodes.py Lines 115 to 120 in f3718e7
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. I don't know what static/dynamic here means, but they do not replace this repos because they are empty now (dynamic content). If new tools appear for testing, there will include versions to test (static links). Should I move them here?
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. We had to separate repository types for the MU .
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. ping @raulillo82
Member
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. No they won't have MI numbers for these, the new SLFO workflow says that these repos will always be the same. I thought for this you skip the MI number in the url creation but still create the url without just the number so the result is the original, that's why I approved. If that is not the case, yes we need to keep them static for sure.
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. It is cover with the two static and dynamic dictionaries (see previous explanation) |
||||||||||||||
| "slmicro61_minion": {"/SUSE:/ALP:/Source:/Standard:/1.0:/Staging:/Z/standard/", | ||||||||||||||
| "/SUSE:/SLFO:/1.1:/Staging:/Z/standard/"} | ||||||||||||||
|
Comment on lines
+125
to
+127
|
||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| def get_v51_static_and_client_tools(variant: str = "micro") -> (Dict[str, Dict[str, str]], Dict[str, List[str]]): | ||||||||||||||
|
|
||||||||||||||
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 condition uses a list with a single element for checking if a node should be skipped. Since there's only one element in the list, this could be simplified to a direct string comparison:
if node == "openeuler2403_minion":. However, if more nodes are expected to be added to this skip list in the future, the current list approach is acceptable for extensibility.