Repository navigation
chore(release): fix release.sh bugs and rewrite RELEASES.md - #1336
Conversation
release.sh fixes:
- Add -o pipefail to set flags for stricter error propagation
- Fix milestone API path: dashevo/tenderdash -> {owner}/{repo} placeholder
so gh substitutes the correct org automatically; HTTP 422 (already exists)
is still tolerated via || true
- Remove docker -ti flags that break non-interactive/CI runs (no TTY needed)
- Remove cryptic echo 2>CHANGELOG.md truncation; git-cliff --output rewrites
the file already
- Add branch-sync check in validate: fetch origin and fast-forward local
SOURCE_BRANCH before changelog generation, so commits are never missed
- Remove now-redundant git pull -q inside createReleasePR (sync moved earlier)
- Replace interactive gh auth login fallback with an error message directing
the user to run it manually
- Implement signed-binary build from released tag in buildAndUploadArtifacts
(git fetch --tags && git checkout tag before buildBinaries)
RELEASES.md: full rewrite to document the actual scripted release flow:
- Versioning scheme, branch model, protocol-version decision guide
- Prerequisites including the new origin-sync enforcement
- Step-by-step description of what the script does
- Merge strategy (squash for prerelease, merge commit for full release)
- Draft release publish flow and --sign path
- Accurate CI/build section (release.yml is workflow_dispatch)
- Retained the full Minor Release Checklist (Feature Freeze, Nightly E2E,
Upgrade Harness, Large Scale Testnets)
- Removed all obsolete Tendermint-inherited content (backport branches v0.Nx,
CHANGELOG_PENDING.md, linkify_changelog.py, linkpatch, vuepress versions)
scripts/release/pr_description.md:
- Fix "Dash Platform" -> "Tenderdash" in issue description
- Add ABCISemVer bump check to the checklist
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
release.sh: - Convert CLIFF_ARGS to a bash array so --ignore-tags reaches git-cliff without literal quote chars (prerelease changelog now filters dev tags correctly); also clears shellcheck SC2089/SC2090 - Add EXIT trap in buildAndUploadArtifacts to restore SOURCE_BRANCH after the release-tag checkout, so the sign path never leaves a detached HEAD - Print the ERROR: line before cleanup in error(), and make cleanup's make clean tolerant (|| true), so the error message is never swallowed RELEASES.md: - CI section: state accurately that release.yml is workflow_dispatch-only; the pull_request-gated build never fires and nothing auto-runs on tag push - Reconcile merge-strategy contradiction: normal and prerelease PRs squash, full-release PR into master uses a merge commit - Neutral tag-timing wording: draft release tags are mutable and only guaranteed on the remote once published CONTRIBUTING.md: - Fix script path scripts/release.sh -> scripts/release/release.sh - Note the full-release PR merge-commit exception to the squash rule Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThis PR updates release process documentation and hardens the release script. CONTRIBUTING.md and RELEASES.md are updated to document the semver/branching/execution flow; the release script gains error handling, auth validation, branch synchronization, tag management, and improved cleanup; and release description templates are updated with product name and version verification requirements. ChangesRelease Process Documentation and Script Hardening
🎯 2 (Simple) | ⏱️ ~12 minutes
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR fixes several reliability issues in scripts/release/release.sh discovered during a v1.6.0-dev.1 release dry-run, and rewrites release documentation/templates to reflect the script’s actual behavior.
Changes:
- Hardened the release script around unattended runs (non-interactive
ghauth behavior,pipefail, non-TTYdocker run) and corrected milestone creation to use the current repo owner/name. - Improved correctness of generated changelogs and signed artifact builds (proper
git-cliffarg passing; build/sign from the released tag with branch restoration). - Rewrote
RELEASES.mdand updated templates/contributing docs to match the current release flow and checklists.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| scripts/release/release.sh | Fixes release automation edge cases (auth, origin sync, changelog generation, tag-based signing build, cleanup robustness). |
| scripts/release/pr_description.md | Updates the release PR template wording and adds an ABCISemVer checklist item. |
| RELEASES.md | Replaces stale release documentation with a description aligned to the current scripted process and repo branching model. |
| CONTRIBUTING.md | Updates the release script path reference and documents the merge-commit exception for full releases. |
Issue being fixed or feature implemented
Our release tooling had several bugs that surfaced during a real v1.6.0-dev.1 release dry-run. This PR fixes them and rewrites the release docs to match what the script actually does.
What was done?
scripts/release/release.shrepos/dashevo/tenderdash/milestones(wrong org); now uses therepos/{owner}/{repo}/milestonesplaceholder soghresolvesdashpay/tenderdashautomatically.|| truekept so a pre-existing milestone (HTTP 422) is tolerated.docker run -ti; git-cliff needs no stdin, so the changelog step now works in unattended/CI runs.validatenow fetches origin and fast-forwards the localvX.Y-devbefore generating the changelog, so commits on origin are never silently missed (the dry-run was 19 commits behind). Removed the now-redundantgit pull -q.gh auth loginfallback with a clear error telling the user to authenticate first.--ignore-tagsreaches git-cliff without literal quote chars; the prerelease changelog now actually filters dev tags. Also clears shellcheck SC2089/SC2090.buildAndUploadArtifactsnow checks out the released tag before building signed binaries, and anEXITtrap restores the source branch so the developer is never stranded on detached HEAD.error()— the redERROR:line now prints beforecleanup, andcleanup'smake cleanis tolerant (|| true), so the message is never swallowed.-o pipefailalongside the existingset -e.RELEASES.mdv0.Nxbackport branches,CHANGELOG_PENDING.md,linkify_changelog.py,linkpatch, vuepress versions — none of which describe this repo).release.ymlisworkflow_dispatch-only; nothing auto-runs on tag push or PRs.masteruses a merge commit.scripts/release/pr_description.mdABCISemVerbump check to the checklist.CONTRIBUTING.mdscripts/release.sh→scripts/release/release.sh.How Has This Been Tested?
bash -n scripts/release/release.shpasses.shellcheckis clean on every touched line (the only remaining item is a pre-existing SC2035 info on an untouchedsha256sum *.tar.gzline). Findings originate from the v1.6.0-dev.1 dry-run.Breaking Changes
None — script behavior outside the listed fixes is preserved; the default (non-sign) path is unaffected.
Checklist:
RELEASES.md,CONTRIBUTING.md)🤖 Generated with Claude Code
Summary by CodeRabbit
Documentation
Chores