Repository navigation
feat: open devops' decdn bump PR from publish-crates.sh - #2421
Merged
Merged
Conversation
After the upload, publish-crates.sh clones decdn/devops and runs its scripts/open-decdn-bump.sh <tag> (decdn/devops#143), which moves the role, chart, Compose and onramp pins to the release and opens the PR with the maintainer's gh login. sponsord's bump runs after it, so sponsord's crates.io wait does not hold it up. - The downstream block is one open_bump function shared by both repos: temporary clone, registry tokens unset, Ctrl-C handling and warn-only failures as before. - DECDN_SKIP_DEVOPS_BUMP=1 skips the devops step; a typo in either skip switch stops the script before anything runs (new pytest). - A pre-release opens no devops PR: devops pins vX.Y.Z releases only. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
🟢 Approval recommended
The implementation preserves failure isolation and cleanup while correctly adding the documented devops workflow.
0 open findings
What changed in this PR
Adds automated downstream release-bump PR creation for decdn/devops, sharing the existing decdn/sponsord workflow.
Changes:
- Adds reusable downstream bump orchestration and devops prerelease handling.
- Validates both bump skip switches before publishing.
- Updates release documentation and changelog entries.
| File | Description |
|---|---|
.github/scripts/publish-crates.sh |
Adds shared devops/sponsord bump handling. |
.github/scripts/tests/test_publish_crates_env.py |
Tests skip-switch validation. |
RELEASING.md |
Documents both downstream bump workflows. |
CHANGELOG.md |
Records the expanded release automation. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
publish-crates.shnow opens decdn/devops' decdn bump PR as well as sponsord's. After the upload it clones decdn/devops and runs itsscripts/open-decdn-bump.sh <tag>(decdn/devops#143). That script moves the Ansible role, Helm chart, Compose and onramp pins to the release and opens the PR with the maintainer'sghlogin. sponsord's bump runs after it, so sponsord's crates.io wait doesn't hold it up.open_bump <name> <repo> <script> <skip>function shared by both repos. Behaviour is unchanged:DECDN_SKIP_DEVOPS_BUMP=1(ortrue/yes) skips the devops step. It is parsed before anything runs, likeDECDN_SKIP_SPONSORD_BUMP.vX.Y.Zreleases only. The script prints a skip line instead of a warning that can't be acted on.==> Opened <url>. devops' script prints a "needs work" line after it.Reviewer notes
scripts/open-decdn-bump.sh; I checked that against today's devops main.RELEASING.mdsection and the existing ci(release): open sponsord's decdn bump PR after publishing crates #2399 CHANGELOG entry are rewritten to cover both repos.Verification
pre-commiton the changed files, andshellcheckonpublish-crates.sh: clean.python3 -m pytest .github/scripts/tests -q: 188 pass. That includes the newtest_publish_crates_env.py: a typo in either skip switch stops the script before any tool check, and every accepted value gets past it.open_bumprun on its own:DECDN_REPOset to a fork: skipped.CHANGELOG.mdentry updated.featwith a lowercase subject.🤖 Generated with Claude Code