Repository navigation
fix(release): pin the version in release-note install commands - #292
Merged
Merged
Conversation
The install one-liners in generated release notes downloaded that release's installer but ran it without a version, so the installer fetched the latest release instead of the one the notes describe. Pass the bare version explicitly (`bash -s -- --version X` and the PowerShell scriptblock with `-Version X`). Also correct the generator's docstring, which claimed it runs `gh release edit`; it only writes note bodies. The release-note workflow gains offline Bash and PowerShell tests for the generated snippets. Surface unit 62. Coven-Harness: Claude Code / claude-opus-5-5
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
Summary
The install commands in generated release notes now install the release they appear in. Before, they downloaded that tag's installer but ran it with no version, so the installer fetched whatever release was latest.
Context
surface-release-install-pinning.scripts/regen-release-notes.py(snippets and docstring), the newscripts/test_release_install_pinning.py, and.github/workflows/release-note-tests.yml.regen-release-notes.pyis the historical 15-tag regeneration utility. It only writes note bodies under/tmp/release-notes. It does not publish.Changes
curl … /install.sh | bash -s -- --version {bare}.& ([scriptblock]::Create((irm …/install.ps1))) -Version {bare}.install.ps1already takes-Version.gh release edit.release-note-tests.ymlalready runs the patch-note test. The new path filters and steps sit beside it, matching the audit's integrated workflow.Validation
python3 -B scripts/test_release_install_pinning.py -von this branch: 3 passed. It executes the generated snippets with a mockedcurlandirm, a temporaryHOME/PATH, and realInvoke-RestMethod/Invoke-WebRequestoverridden to throw.python3 -B -m unittest discover -s scripts -p test_append_patch_note.py: OK.actionlint .github/workflows/release-note-tests.yml: clean.git diff --check: clean.PR Readiness
pwshon the runner.