Skip to content

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 into
developfrom
fix/980-rerunning-a-release-run-doesn-t
Oct 24, 2026
Merged

David-Noble-at-work merged 4 commits into
developfrom
fix/980-rerunning-a-release-run-doesn-t

Conversation

@David-Noble-at-work

@David-Noble-at-work David-Noble-at-work commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Lane 48 of #949.

  • The version comes from the commit (Rerunning a release run doesn't reproduce its release: a branch run publishes a second pre-release under a new timestamp, and a tag run fails #980). A branch run of the Release workflow took its version's timestamp from the clock, so a rerun published a second pre-release of the same commit; a tag run's rerun failed, the release existing. .github/scripts/release-version.sh now stamps a develop, main or release/* build with its commit's committer time in UTC, so a rerun computes the version the first run did. A v* tag's version is the tag.
  • The release step creates, completes or leaves alone (ruled 2026-10-23). .github/scripts/release-publish.sh creates 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.
  • A rebuild of a commit is the same bytes (ruled 2026-10-23, "B"). BUILD_DATE is 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.gz through gzip -n and the .zip with zip -X. That takes GNU tar, which make dist now checks for. The Release workflow pins Go 1.27.3, what 1.27 resolved to for the last release, since a new patch would change the bytes; its version step runs under shell: bash, so a failed script fails the step.
  • The test. scripts/Test-Release.sh, run by make test-release, a step of make quality-gate and 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-in gh that records its calls, in all three states; and two make dist builds, a .tar.gz and a Windows .zip, compared byte for byte. All 12 checks failed at fcc43546 and pass.
  • The plan stays 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).
  • Plan: docs/plans/fix/980-rerunning-a-release-run-doesn-t.md.

Resolves #980

Test plan

  • make test-release fails at fcc43546, all 12 checks, and passes with the fix
  • This script's pre-flight: make check-all
  • CI on this pull request, every leg
  • After the merge: the merge commit's Release run rerun, and one pre-release for that commit

Written with AI assistance.

Signed-off-by: David Noble [email protected]
Assisted-by: Claude Code

Time

Marker UTC Elapsed
opened (first commit) 2026-10-24T06:06:56Z —
submitted (PR opened) 2026-10-24T15:52:59Z 9.8 h after opened
merged 2026-10-24T16:11:41Z 0.3 h after submitted; 10.1 h in all

Computed by the algorithm of noblefactor-ops#188 at merge.

…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
David-Noble-at-work merged commit 6c2ba59 into develop Oct 24, 2026
21 checks passed
@David-Noble-at-work
David-Noble-at-work deleted the fix/980-rerunning-a-release-run-doesn-t branch October 24, 2026 16:11
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
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.

Rerunning a release run doesn't reproduce its release: a branch run publishes a second pre-release under a new timestamp, and a tag run fails

1 participant