Repository navigation
ci(nightly): verify the checksum where it was written, and stage + verify in dry runs - #148
Merged
Merged
Conversation
…rify in dry runs The first real nightly (run 35433759179) failed in "publish nightly prerelease": `sha256sum: plxnative-v0.7.0-nightly-20260919.ipk: No such file or directory`. The staging step writes `dist/nightly.sha256` from inside `dist/` so the file lists the bare filename, but the publish step ran `sha256sum -c dist/nightly.sha256` from the repo root, where the bare name in the checksum file doesn't resolve. Verify it from inside `dist/` instead, the same shape `ci/verify-published.sh` already uses beside a downloaded release asset. No dry run caught this because `dry_run` (and every `pull_request`) used to skip the whole publish job. Split it instead: the job now always runs when not skipped, with only the network-mutating steps (the immutable-tag guard, tagging + `gh release create`, and the post-publish download/verify) individually gated on `dry`. Staging, note rendering and the local checksum verification now run in every dry pass too, so this class of bug gets caught by the PR that introduces it. Co-Authored-By: Claude Opus 5 <[email protected]>
4 tasks done
GLinnik21
added a commit
that referenced
this pull request
Sep 19, 2026
nightly.yml (landed in #140/#148) replaced canary.yml as the pipeline that proves the shared build-package.yml publishing path end to end, with a real flavour and a retention policy canary never had. Delete the now-unused canary.yml and update every live comment/error string that named it, so build-package.yml's reused inputs (source-asset, caches, fwcompat) and its development-telemetry checks describe their current callers (release.yml, nightly.yml) instead of a workflow that no longer exists. Genuinely historical mentions ("used to carry", "canary tags exist on GitHub") stay, since they are still true and existing canary releases/tags are out of scope here. Co-authored-by: Claude Opus 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 failed
The first real nightly (run 35433759179) failed in "publish nightly prerelease":
Cause
The stage step (
Stage nightly assets) writesdist/nightly.sha256from insidedist/:so the checksum file lists the bare
plxnative-v...ipkfilename by design (this is whatlets a user run
sha256sum -cnext to the file they downloaded). But the publish step ransha256sum -c dist/nightly.sha256from the repo root, where the bare name in thechecksum file can't resolve to a real path.
Fix
dist/, the same shapeci/verify-published.shalready uses beside adownloaded release asset:
( cd dist && sha256sum -c nightly.sha256 ).dist/nightly.sha256in the file (notesrendering and thepost-publish download verification) — both use
cut -d' ' -f1 dist/nightly.sha256to pulljust the hash, so those were already fine.
release.yml, which sidesteps the whole class of bug differently: it never runssha256sum -conpkg/ipk.sha256itself, it only extracts the hash withcutfor therelease notes; the actual "does the checksum file verify beside the artifact" check lives
in
ci/verify-published.sh, run after publish,cd'd into the download directory first.Why no dry run caught this
dry_run: true(and everypull_requestevent) used to skip the entirepublishjob,so the staging step's bug was never exercised before a real nightly hit it. This PR also
fixes that mechanism:
publishnow runs wheneverplanisn't skipped, dry or not. Only thesteps that actually mutate the repo's releases are individually gated on
needs.plan.outputs.dry:Refuse to overwrite an immutable nightly)gh release createStaging, rendering the notes (
ci/nightly.py notes), and the new standaloneVerify the staged checksumstep all run in a dry pass now. Fork PRs remain fully skipped(via
plan's ownif:, which auto-skips every job thatneeds: plan), and nowrite-token operation runs in a dry pass — only the gated steps above use
GH_TOKENforanything beyond the read the download-artifact action needs.
This PR's own nightly dry run (as a same-repo pull_request touching
.github/workflows/nightly.yml)now exercises staging + the checksum verification, so this exact regression would have failed
this PR's own checks instead of the first real nightly.
Verification
python3 ci/nightly.py --selftest— passes (32/32)actionlint .github/workflows/nightly.yml— clean🤖 Generated with Claude Code