Repository navigation
Refresh the Codemagic fixture digests broken by the Flutter 3.44.5 bump (unblocks Hygiene on every PR) - #11673
Conversation
92a2ff1 (merged as BasedHardware#11672) edited codemagic.yaml, changing the eight Flutter version pins to 3.44.5, without updating the reviewed digest fixture the release-process guard compares against. The guard is designed to fail exactly then, so Hygiene is now red on main and on every open PR. Both digests were recomputed with the check script's own functions (_read_security_bound_file + _sha256_bytes for the raw digest, _canonical_json + _sha256_text over the safe-loaded document for the semantic digest) against codemagic.yaml as merged at 94487a4: codemagic_raw_sha256 941fd7588a169eeb5307b8f90f76bfe874960365b8ca0e879dd9234373c5081a -> 826c7aba7465777a0965c2ab50b1fc12070f2aefbbb7b1d80e326355b21a206d codemagic_semantic_sha256 a2d952c0d27db55dcd558e49805f096d5a884a55d8db2fa124a61fa5315a5876 -> a72c79d0e2bec1339d777e3be3c928b1d0f5eeb39071467979b83537ae0ccf25 The only codemagic.yaml change these digests newly approve is that commit's 16-line version-pin diff; no workflow, credential, or publisher content changed, and the per-workflow contract checks in the same guard still pass unchanged. Verification: check-release-process-guards.py now reports zero errors locally (it reported the two digest errors before); its test file goes from 11 local failures to 9, the two digest-dependent tests now passing and the remaining nine being POSIX symlink/O_NOFOLLOW tests that fail identically on clean main under Windows and run properly on Linux CI.
|
Independently verified this fix (hourly desktop bug watchdog — I found main red and arrived at the identical two-line change, so I am not opening a competing PR). The break. Blast radius on main at 94487a4: Repo Checks (run 31937821200) red, Release Eligibility (31937821209) red, and Build Desktop Release Candidate (31938577203) refused to plan — Verification of these exact digests, computed from current main’s
Both match this diff byte for byte. With them applied locally: Why re-approval is safe here. Green and correct as far as I can tell; it only needs a reviewer. Not merging it myself — release-guard fixtures are outside what this bot auto-merges. |
kodjima33
left a comment
There was a problem hiding this comment.
Verified locally against current main (d565a6c):
- Reproduced the failure on unpatched main —
.github/scripts/check-release-process-guards.pyemits exactly the two CI errors (codemagic_raw_sha256/codemagic_semantic_sha256mismatch). shasum -a 256 codemagic.yamlon main =826c7aba7465777a0965c2ab50b1fc12070f2aefbbb7b1d80e326355b21a206d, byte-identical to this PR's raw digest.- With these two digests applied, the guard prints
release process guard checks passedon main HEAD.
This is the root cause of both current main failures: #11672 bumped codemagic.yaml without refreshing the approved fixture, which fails desktop-release-process-guards in Hygiene (Repo Checks red on main and every PR) and in Release Eligibility for 94487a4 — which is why the desktop release planner falls back to fdf4bcf and then dies in "Bind immutable planner evidence to fresh main" (candidate main contains newer releasable desktop changes after the planner source: 94487a41fb:codemagic.yaml). No candidate has been cut since 08:15Z.
Approving to unblock.
Summary
Main's Hygiene lane is red for every PR right now: #11672 (92a2ff1) bumped the eight Codemagic Flutter pins to 3.44.5 without refreshing the reviewed digest fixture, and the release-process guard is built to fail exactly then. This PR is the two-line fixture refresh that re-approves the current document.
This is the same unblock class as #11629 (a desktop route landed without its spec entry and broke an inventory guard for every open PR).
What changed and how it was computed
Only
.github/scripts/fixtures/codemagic_workflow_contract/v1.json, two values. Both digests were recomputed with the check script's own functions, not by hand:_read_security_bound_file+_sha256_bytesfor the raw digest, and_sha256_text(_canonical_json(document))over the safe-loaded document for the semantic digest, againstcodemagic.yamlexactly as merged at 94487a4.Review surface
The fixture is a reviewed security boundary, so what matters is what these digests newly approve: precisely the 16-line version-pin diff of 92a2ff1 (eight
flutter:pins to 3.44.5), which was itself reviewed and merged. No workflow topology, credential, publishing step, or script content changed, and the guard's narrower per-workflow contract checks pass unchanged before and after.Verification
check-release-process-guards.pyreported the two digest errors before this change and reports zero errors after.test_fixture_independently_hashes_only_current_codemagic_sourceand one sibling) now pass; the remaining nine are POSIX symlink and O_NOFOLLOW tests that fail identically on clean main under Windows and run properly on the Linux CI runner.Product invariants affected: none