Repository navigation
fix: the database precondition frames the update notice - #13
Merged
Merged
Conversation
… proves it hermetically sync_system_update() consulted the CachyOS update notice BEFORE its database precondition. The notice check is interactive and networked: it fetches iso-stats.cachyos.org live, reads the operator's real cache, and asks a question no test can answer with yes. A declined or unanswerable notice short-circuited the function to an empty success — before any database check. The release gate failed at 15:02 on a tree with zero backend changes since the green run at 13:55. Proven: green all day while the fetch failed (proceed -> sync(true) -> SyncDbFailed); red the moment the live notice served — the amdgpu / Kernel 7.3.0-2 warning, id 2130f114 — with no saved answer in the operator's cache. The gate flipped on the internet, not on the tree. The Arch replay never saw it: no CachyOS os-release, no hook. The fix: the database precondition (alpm_get_syncdbs == null — the same check syncDatabases applies) is verified before the notice check. A manager that cannot name a sync database reports SyncDbFailed however the notice is answered, on any machine, with or without a network. For a working installation the notice is still asked before any database download — the original intent holds. install.zig:519 and upgrade.zig:635 now get the failure their caller needs: a transaction failure, not an empty success. 1340 pass / 1 fail -> 1341 pass / 0 fail; the full verify roster is green. Evidence: evidence/runs/gate-network-leak-20261022/
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.
The release gate failed at 15:02 on a tree with zero backend changes since the green run at 13:55. Root cause proven, in six steps, in
evidence/runs/gate-network-leak-20261022/:The gate flipped on the internet, not on the tree.
sync_system_update()consulted the CachyOS update notice before its database precondition. The notice is interactive and networked: it fetchesiso-stats.cachyos.orglive, reads the operator's real~/.cache/calixcache, and asks a question no test can answer with yes. Green all day while the fetch failed (catch → proceed → sync(true) → SyncDbFailed); red the moment a live notice finally served — the amdgpu / Kernel 7.3.0-2 warning, id2130f114…— with no saved answer in the cache. The Arch replay never saw it: no CachyOS os-release, the hook never loads.A scratch probe on the same setup measured the split:
sync(false)SyncDbFailed✓sync(true)SyncDbFailed✓sync_system_update(.{dbonly=true})The fix. The database precondition (
alpm_get_syncdbs == null— the same checksyncDatabases()applies) is verified before the notice check: a manager that cannot name a sync database cannot update a system, however the notice is answered — on any machine, with or without a network. For a working installation the notice is still asked before any database download, so the original intent holds.install.zig:519andupgrade.zig:635now get the failure their caller needs instead of an empty success.Numbers: 1340 pass / 1 fail → 1341 pass / 0 fail; the full verify roster green — which also unblocks the v0.3.1 tag that this failure was about to cover.