Repository navigation
fix(release): a rerun of a release run produces the release the first run made, byte for byte - #1163
Merged
David-Noble-at-work merged 4 commits intoOct 24, 2026
Conversation
…n made (#980) Lane 48 of #949. The version comes from the commit's time, not the clock; a rerun that finds its release complete changes nothing, and one that finds an asset missing replaces them all from its build; and a rebuild of a commit is the same bytes (ruled 2026-10-23, "B"). Both steps move to scripts a test runs outside Actions. Reviewed with the owner 2026-10-23.
…first run made (#980) Lane 48 of #949, Phase 2. scripts/Test-Release.sh checks the version script for each kind of ref against a commit of known time, twice; the publish script against a stand-in gh that records its calls, for a release that is not there, one complete and one lacking an asset; and two make dist builds of this platform for the same bytes. make test-release runs it, a step of make quality-gate. Against today's release code all 12 checks fail.
… run made, byte for byte (#980) Lane 48 of #949, Phase 3, ruled 2026-10-23 ("B"). A branch build's version takes its commit's time, not the clock, in .github/scripts/release-version.sh. .github/scripts/release-publish.sh creates the release, leaves a complete one as it is, and replaces every asset of one lacking an asset. A rebuild of a commit is the same bytes: BUILD_DATE is the commit's time, the binaries are built with -trimpath, and the archives are packed in name order with the commit's time and owner 0:0, which takes GNU tar; the Release workflow pins Go 1.27.3. make test-release passes all 12 checks, a Windows zip among the builds compared.
… over (#980) The plan stays active: its last box, the merge commit's Release run rerun to one pre-release, closes after the merge.
David-Noble-at-work
deleted the
fix/980-rerunning-a-release-run-doesn-t
branch
October 24, 2026 16:11
This was referenced Oct 24, 2026
Open
David-Noble-at-work
added a commit
that referenced
this pull request
Oct 25, 2026
…utils, and deploy always has a registry (#1180) ## Summary - **GNU tar and coreutils on Darwin.** The team layer gains a Darwin variant of its common project, `Home/common.Darwin/packages-manifest.yaml`, claiming `pkg:port/coreutils` and `pkg:port/gnutar`. `make dist` needs both since #1163: GNU tar for `--sort` and `--mtime`, GNU touch for `--no-dereference` and `--date`. Entries are sorted by purl, and the manifest guide's § Format states the rule. - **Deploy always has a registry.** `planManifests` no longer skips every manifest with "no registry configured" when the registry is nil; `deploy.BuildGraphs` refuses a nil registry with an error before planning. `writ deploy` always builds one from the configuration's defaults, the devlore-registry on `develop`. Every test that builds a deploy passes a registry, and `TestBuildGraphs_ANilRegistryRefusesTheDeploy` pins the refusal. - **golangci-lint v2.15.0.** The rule is the same version everywhere, not a particular version: Homebrew had moved the developer machine past the v2.14.0 pin. Part of #1020. v2.15.0 finds nothing on Linux, Darwin or Windows. - **The configuration spec.** `docs/architecture/configuration.md` gains the open question on where a default lives and a generated default config file, and a TODO: one way to set a default, and one global command to get and set a value. ## Test plan - [x] `make quality-gate`, `make check`, `make lint-all` and `make test-race` pass - [ ] After the merge (the plan's Phase 4): `make install`; `sudo port uninstall gnutar`; `writ deploy` reinstalls it with the port command's progress live; again under `--silent`, nothing shows. This is #1151's Phase 4. Written with AI assistance. Signed-off-by: David Noble <[email protected]> Assisted-by: Claude Code
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
Lane 48 of #949.
.github/scripts/release-version.shnow stamps a develop, main orrelease/*build with its commit's committer time in UTC, so a rerun computes the version the first run did. Av*tag's version is the tag..github/scripts/release-publish.shcreates a release that is not there; leaves one that has every asset as it is; and replaces every asset of one that lacks an asset, so the archives and the checksums file come from one build.BUILD_DATEis the commit's time, not the clock; the binaries are built with-trimpath; every archive is packed in name order with each file at the commit's time, owned by 0:0, the.tar.gzthroughgzip -nand the.zipwithzip -X. That takes GNU tar, whichmake distnow checks for. The Release workflow pins Go 1.27.3, what1.27resolved to for the last release, since a new patch would change the bytes; its version step runs undershell: bash, so a failed script fails the step.scripts/Test-Release.sh, run bymake test-release, a step ofmake quality-gateand so of CI's quality-gate job: the version for each kind of ref against a commit of known time, twice; the release step against a stand-inghthat records its calls, in all three states; and twomake distbuilds, a.tar.gzand a Windows.zip, compared byte for byte. All 12 checks failed atfcc43546and pass.active. Its last box is the merge commit's Release run, rerun after the merge, leaving one pre-release for that commit; no commit in this pull request can record it (feature(op): Compilation and initialization — bytecode lifecycle (Phase 3) #199).docs/plans/fix/980-rerunning-a-release-run-doesn-t.md.Resolves #980
Test plan
make test-releasefails atfcc43546, all 12 checks, and passes with the fixmake check-allWritten with AI assistance.
Signed-off-by: David Noble [email protected]
Assisted-by: Claude Code
Time
Computed by the algorithm of noblefactor-ops#188 at merge.