Repository navigation
fix(ci): stamp the release binary with the release tag's CalVer - #283
Conversation
The release-binary workflow stamped the binary with the HEAD commit's date (calver.sh). The pr-validator computes the tag name just before the squash merge, so a merge that crosses a minute boundary leaves the commit dated tag+1min — and every binary built from it reports a version that matches no release (observed: v2026.227.1256's binary reports 2026.227.1257). The distro repos' install-test asserts `charly version` == the packaged version, so a binary from release v<X> must report X. On a tag push the workflow now stamps from the tag name; workflow_dispatch keeps the calver.sh fallback. Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)
pr-validator — CHANGES REQUESTED ❌Change class: hook/workflow (CI workflow script — Head SHA validated: The change itself is correct and minimal — I verified it independently. The FAIL is on the PR's evidence discipline, not the code. What I verified (and confirmed correct)
Checklist
Blocking findings1. PR body is incomplete per the org-wide template (item 1). The body does not follow
The Verification section's third bullet — "The tag path is exercised on the next release" — is a promise of future work, which the template explicitly forbids in place of pasted evidence. The local shell-verification output should be pasted verbatim (it is real — I re-ran it and it holds), not described. 2. CHANGELOG entry absent (item 18). A runtime-tier (workflow) change must stage a Comments consideredNone — the PR carries no comments or reviews. Cross-PR interactions considered
DecisionFAIL — not merged. The change is technically sound (YAML valid, shell logic correct on both paths, minimal, honest tier), but the PR does not meet the evidence bar:
Re-push and the validator re-runs. Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system) |
Placeholder CalVer — the pr-validator finalizes it at merge. Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)
pr-validator — CHANGES REQUESTED ❌Change class: hook/workflow (CI workflow script — Head SHA validated: The change itself is correct and minimal — I verified it independently. The FAIL is on the CHANGELOG staging, which collides with an existing release on What I verified (and confirmed correct)
Checklist
Blocking finding1. CHANGELOG placeholder CalVer collides with an existing release on
The strict CalVer check requires the placeholder CalVer to NOT already exist as a 2. The PR is CONFLICTING (unmergeable). Comments considered
Cross-PR interactions considered
DecisionFAIL — not merged. The change is technically sound (YAML valid, shell logic correct on both paths, minimal, honest tier, complete PR body), but the CHANGELOG staging is defective:
Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system) |
The placeholder 2026.227.1256 collides with the existing v2026.227.1256 release on main (both a CHANGELOG file and a tag), making the PR an add/add conflict. Rename to 2026.227.1300, a future CalVer that does not exist on main. Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)
pr-validator — CHANGES REQUESTED ❌Change class: hook/workflow (CI workflow script — Head SHA validated: The change itself is correct and minimal — I verified it independently. The FAIL is on the PR body, which still names the OLD CHANGELOG placeholder that the rename commit removed. What I verified (and confirmed correct)
Checklist
Blocking finding1. PR body names the OLD CHANGELOG placeholder (item 1 — description↔code mismatch). The rename commit
The actual diff (verified against the merge base Comments considered
Cross-PR interactions considered
DecisionFAIL — not merged. The change is technically sound (YAML valid, shell logic correct on both paths, minimal, honest tier, CHANGELOG collision resolved), but the PR body is stale:
Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system) |
pr-validator — APPROVED ✅Change class: hook/workflow (CI workflow script — Head SHA validated: This is the fourth validation round. The three prior rounds' findings are all independently re-verified as addressed: (1) body completeness + CHANGELOG staging, (2) the What I verified (re-run myself)
Checklist
Comments considered
Cross-PR interactions considered
DecisionPASS. The change is correct, minimal, honestly attributed, and fully compliant. The round-3 stale-body finding is resolved by the body-only edit (verified: both CHANGELOG references now name Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system) |
Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)
pr-validator — merged ✅Merged: Finalization performed:
Post-merge verification: Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system) |
Summary of changes
The
release-binaryworkflow stamped the binary with the HEAD commit's date (calver.sh). The pr-validator computes the tag name just before the squash merge, so a merge that crosses a minute boundary leaves the commit dated tag+1min — and every binary built from it reports a version that matches no release (observed: v2026.227.1256's binary reports 2026.227.1257). The distro repos' install-test assertscharly version== the packaged version, so a binary from release v must report X..github/workflows/release-binary.yml: on a tag push, stamp from the tag name (CALVER=${GITHUB_REF_NAME#v}); onworkflow_dispatch, keep thecalver.sh(HEAD commit date) fallback. The three inlineCALVER=$(bash scripts/calver.sh)invocations (build amd64, build arm64, verify) are consolidated into oneCompute the CalVerstep that sets theCALVERenv var once. Header comment updated to explain the rationale.CHANGELOG/2026.227.1300.md: staged (placeholder CalVer — the pr-validator finalizes it at merge).Change class
hook/workflow (CI workflow script)
How R10-tested — exact gate, commands, and pasted output
v*tag push fires the workflow).workflow_dispatchpath (calver.sh fallback) is unchanged behavior. The tag path (GITHUB_REF_TYPE=tag→CALVER=${GITHUB_REF_NAME#v}) was executed locally with the observed tag values; it runs live on the next release. This caps the tier atanalysed on a live system.Attribution tier
analysed on a live system— the changed shell logic executed live locally and was re-run by the fresh pr-validator; the tag-push path runs live on the next release (the honest ceiling for a workflow change whose trigger is a future tag).Harness rulebook compliance — state HOW each is satisfied (or
N/A — <reason>)/charly-internals:git-workflow(PR-only landing, CalVer-at-merge) +/charly-check:check(R10 gate by change class) loaded before the change.CALVER=$(bash scripts/calver.sh)invocations into 1Compute the CalVerstep.CHANGELOG/2026.227.1300.mdstaged (placeholder CalVer — the pr-validator finalizes it).Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)