Skip to content
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

Add tool and GH workflow for adding fast-tracks and pins #1441

Merged
merged 12 commits into from Jan 31, 2022
Merged

Add tool and GH workflow for adding fast-tracks and pins #1441

merged 12 commits into from Jan 31, 2022

Conversation

bgilbert
Copy link
Contributor

@bgilbert bgilbert commented Jan 22, 2022

Rename and generalize remove-graduated-overrides.py. Add subcommands for adding fast-tracks (from Bodhi update IDs or URLs) and pins (from SRPM NVRs). Unless --force is specified, reject newly added overrides for the wrong Fedora major by comparing their dist tags to the releasever from manifest.yaml.

Add a wrapper GitHub workflow that creates a PR to one branch, pinning one SRPM or fast-tracking one Bodhi update. More complex cases can use multiple workflow runs or manual PRs.

jlebon
jlebon previously approved these changes Jan 25, 2022
Copy link
Member

@jlebon jlebon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool! A few minor comments, but overall LGTM.

ci/overrides.py Show resolved Hide resolved

pin = subcommands.add_parser('pin', description='Pin source RPMs.')
pin.add_argument('nvr', nargs='+',
help='NVR of SRPM to pin')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor/optional: since we're already importing koji, could be nice to also support Koji build URLs.

ci/overrides.py Show resolved Hide resolved
ci/overrides.py Show resolved Hide resolved
ci/overrides.py Outdated Show resolved Hide resolved
ci/overrides.py Outdated Show resolved Hide resolved
.github/workflows/add-override.yml Outdated Show resolved Hide resolved
jlebon
jlebon previously approved these changes Jan 27, 2022
.github/workflows/add-override.yml Outdated Show resolved Hide resolved
For fast-tracks, take the Bodhi update, and for pins, take the SRPM NVR.
Verify that newly added pins and fast-tracks have dist tags that match
the releasever from manifest.yaml, unless --ignore-dist-mismatch is
specified.
@bgilbert
Copy link
Contributor Author

Updated! Also fixed handling of noarch packages, which were being ignored.

Run `overrides.py {fast-track|pin}` and submit a PR.  For now, only
handle one Bodhi update (for fast-track) or SRPM (for pin) per run.

Two runs are required when overriding both testing-devel and next-devel,
since next-devel might be on a different Fedora major.
Copy link
Member

@jlebon jlebon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Nice work.

@bgilbert bgilbert merged commit 1b6eb5c into coreos:testing-devel Jan 31, 2022
@bgilbert bgilbert deleted the override branch January 31, 2022 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants