Repository navigation
feat(scripts): open the decdn bump PR with scripts/open-decdn-bump.sh - #143
Merged
Merged
Conversation
scripts/open-decdn-bump.sh [--dry-run] [vX.Y.Z] moves every decdn/decdn pin to a decdn release and opens the PR, in a detached worktree at origin/main, with the maintainer's git identity and gh login (so CI runs). decdn's publish-crates.sh runs it after each release, as it already runs sponsord's bump. - Release facts are verified before use: SHA256SUMS and decdn-node-image-digest.txt against the vendored KEYS, SHA256SUMS must list that version's archives, the digest file must name the decdn-node image, and the tag clone must carry a signature from KEYS. - scripts/bump_decdn.py does the file edits (checklist steps 1, 3, 4 and 5, and the collections' [Unreleased] entries). Every edit is anchored to one match and every pin is read back. - The generated mirrors and KEYS come from the tag. A schema-key change, a KEYS change, a failed generator and stale prose are listed in the PR body; the script exits 1 when the PR needs work. - Nothing happens when the pin is at or past the release, or when a PR from bump/decdn-<tag> exists in any state. The node and publisher collection changelogs each keep one bump-owned [Unreleased] entry, which a later bump rewrites in place. Co-Authored-By: Claude Opus 5.5 <[email protected]>
5 tasks done
There was a problem hiding this comment.
🟡 Changes recommended
Both execution paths can report success while the generated PR still has unresolved prose updates.
1 open finding
What changed in this PR
Automates opening PRs that update all decdn release pins while verifying release assets and regenerating mirrors.
Changes:
- Adds release verification and PR orchestration.
- Adds pin-rewriting helpers and unit tests.
- Updates bump documentation and changelog templates.
| File | Description |
|---|---|
scripts/open-decdn-bump.sh |
Verifies releases and opens bump PRs. |
scripts/bump_decdn.py |
Rewrites and validates release pins. |
scripts/tests/test_bump_decdn.py |
Tests rewrite and changelog logic. |
tests/scripts-test.sh |
Runs the new unit tests. |
Makefile |
Documents the expanded test target. |
CONTRIBUTING.md |
Documents automated bump workflow. |
ansible/roles/decdn_node/README.md |
Updates the release checklist. |
ansible/galaxy/node/CHANGELOG.md |
Establishes a reusable bump entry. |
ansible/galaxy/publisher/CHANGELOG.md |
Establishes a reusable onramp entry. |
AGENTS.md |
Records the new automation. |
.github/workflows/upstream-drift.yml |
Points drift remediation to the script. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…code Co-Authored-By: Claude Opus 5.5 <[email protected]>
thiras
added a commit
to decdn/decdn
that referenced
this pull request
Oct 11, 2026
* feat: open devops' decdn bump PR from publish-crates.sh 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]> * docs: cite #2421 in the changelog entry Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
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
Opens the decdn bump PR automatically after each decdn/decdn release, instead of a hand-run pass through the checklist in
ansible/roles/decdn_node/README.md§ "Bumping the decdn release" onceupstream-driftgoes red.scripts/open-decdn-bump.sh [--dry-run] [vX.Y.Z]follows sponsord'sopen-decdn-bump.sh. It works in a detached worktree atorigin/mainand commits, pushes and opens the PR with the maintainer's git identity andghlogin, so CI runs on the PR. decdn'spublish-crates.shcalls it after each release (companion decdn PR to follow).A chart-only bump isn't possible:
make test-scriptsrequires the chart'sappVersionand Artifact Hub image to equaldecdn_node_versionand the onramp pins. So the PR moves every decdn pin at once.SHA256SUMSanddecdn-node-image-digest.txtmust verify against the vendoreddecdn-release-KEYS.asc(a gpg homedir holding only those keys).SHA256SUMSmust listdecdn-node-<version>-…archives, and the digest file must be exactly oneghcr.io/decdn/decdn-node@sha256:…line. This catches a signed file copied from another release.scripts/bump_decdn.py(pinned/compare/rewrite/changelog) does checklist steps 1, 3, 4 and 5 and the collections'[Unreleased]entries. Every edit must match exactly once and every pin is read back afterwards. Digests are replaced in every tracked text file (changelogs excepted), which also moves the pin-pair copy inmolecule/validation-sponsord.KEYS(steps 2 and 6) come from the tag. The PR body lists what a person still has to do, and the script exits 1 when the PR needs work:node.toml.j2andvalues.configfollow it by hand)KEYSchange (the sponsord copy and SECURITY.md follow it)make lint-helmcheckbump/decdn-<tag>exists in any state.Reviewer notes
scripts/open-decdn-bump.shfirst, thenscripts/bump_decdn.py.[Unreleased]entry, which a later bump rewrites in place; two such entries are refused. The chart changelog has no[Unreleased]section (0.1.1 is released), so it gets no entry. The PR title becomes that changelog's line.--dry-runshell harness with aghstub for the orchestration script.Verification
make test-scripts: all pass.python3 -m unittest discover -s scripts/tests -p 'test_*.py': 24 tests pass. Each guard, disabled on a copy of the tree, makes a test fail.pre-commiton the changed files, andshellcheck: clean.--dry-run v0.0.2from a clone of a local origin whose main pins 0.0.1:schema-keys.txtandKEYSaltered, it lists both under "Needs work" and exits 1.🤖 Generated with Claude Code