-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Infer correct DevStack branch from OpenStack release name #11366
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?
Infer correct DevStack branch from OpenStack release name #11366
Conversation
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.
Pull Request Overview
This PR refactors OpenStack branch inference by introducing a new script infer-openstack-branch.sh that dynamically determines the correct DevStack branch based on the OpenStack release name. This eliminates the need for hardcoded branch mappings and makes the system more maintainable as OpenStack releases transition between stable/* and unmaintained/* branches.
Key changes:
- New
infer-openstack-branch.shscript that queries GitHub to find the correct branch prefix for a given OpenStack release - Updated
bootstrap.shto useOPENSTACK_RELEASEenvironment variable instead ofDEVSTACK_BRANCH - Simplified constraints file handling with dynamic branch resolution
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| networking-calico/infer-openstack-branch.sh | New script that infers the correct branch (stable/* or unmaintained/*) for OpenStack releases by querying GitHub |
| networking-calico/devstack/bootstrap.sh | Refactored to use OPENSTACK_RELEASE and call the new inference script; simplified constraints URL construction |
| networking-calico/Makefile | Updated caracal constraints target to use the inference script for dynamic branch resolution |
| .semaphore/semaphore.yml.d/blocks/40-openstack.yml | Changed from DEVSTACK_BRANCH to OPENSTACK_RELEASE for yoga and caracal test configurations |
| .semaphore/semaphore.yml | Generated file updated to reflect the changes in the source blocks |
| .semaphore/semaphore-scheduled-builds.yml | Generated file updated to reflect the changes in the source blocks |
No description provided.