Skip to content

feat: open devops' decdn bump PR from publish-crates.sh - #2421

Merged
thiras merged 2 commits into
mainfrom
feat/devops-bump-after-publish
Oct 11, 2026
Merged

thiras merged 2 commits into
mainfrom
feat/devops-bump-after-publish

Conversation

@thiras

@thiras thiras commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

What

publish-crates.sh now opens decdn/devops' decdn bump PR as well as sponsord's. After the upload it clones decdn/devops and runs its scripts/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's gh login. sponsord's bump runs after it, so sponsord's crates.io wait doesn't hold it up.

  • The downstream block is one open_bump <name> <repo> <script> <skip> function shared by both repos. Behaviour is unchanged:
    • a temporary clone, cleaned up on exit
    • registry tokens unset
    • Ctrl-C stops only the bump script
    • every failure is a warning with the command to run later, and never changes the exit code
  • DECDN_SKIP_DEVOPS_BUMP=1 (or true/yes) skips the devops step. It is parsed before anything runs, like DECDN_SKIP_SPONSORD_BUMP.
  • A pre-release opens no devops PR, because devops pins vX.Y.Z releases only. The script prints a skip line instead of a warning that can't be acted on.
  • The "exited N" warning now says the PR is open if the output includes ==> Opened <url>. devops' script prints a "needs work" line after it.

Reviewer notes

Verification

  • pre-commit on the changed files, and shellcheck on publish-crates.sh: clean.
  • python3 -m pytest .github/scripts/tests -q: 188 pass. That includes the new test_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_bump run on its own:
    • DECDN_REPO set to a fork: skipped.
    • The skip switch set: skipped.
    • A real clone of devops main without the script: the warning above, and the clone is cleaned up.
  • Rust, contracts and ADRs are untouched, so the cargo and forge items don't apply.
  • CHANGELOG.md entry updated.
  • PR title type is feat with a lowercase subject.

🤖 Generated with Claude Code

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]>
Copilot AI balanced review requested due to automatic review settings October 11, 2026 22:48
@thiras thiras self-assigned this Oct 11, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 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.

@thiras
thiras merged commit 3265a71 into main Oct 11, 2026
29 checks passed
@thiras
thiras deleted the feat/devops-bump-after-publish branch October 11, 2026 23:08
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.

2 participants