Skip to content

CI: Db2 image cache verifies by layer hash, not the store-specific image id (Part of #8185) - #8213

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8185-20261110T0853Z
Nov 10, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8185-20261110T0853Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8185. Failing run 42651067894: the blockers-survey artifact defect was fixed by #8188; the db2 4/6 icr.io pull timeout was infrastructure. Underneath it, the Db2 image cache stopped hitting on 2026-11-09 (run 42611659925 logs "loaded image id is not the recorded one" in every shard; 11-08 hit), so every shard pulled icr.io and one outage failed the run.

Change

  • tests/tools/db2_image_cache.py: load also accepts the image when its RootFS layer hash matches the one save records (image.layers), since .Id differs between docker image stores; a real mismatch prints loaded/recorded values. The cache key is now db2-image-v2-<digest> so main re-saves a fresh entry (the v1 entry is never re-saved while it exists).
  • Tests: key, id differs but layers match (accepted), other layers (refused, values printed), save records layers.
  • docs/ci_env_gated_tests.md: key name.

Class sweep

Class: cache identity check tied to a docker-store-specific image id.

Sibling Status
evidence-refresh.yml (db2 shards) fixed (shared helper)
det-sweep.yml fixed (shared helper)
equivalence-e2e.yml (2 jobs) fixed (shared helper)

Workflows read the key from the helper, so no workflow edit.

Sibling gaps

None found. Remaining slices: none.

Facts checked

Logs of runs 42611659925 / 42484804997 / 42471819950 for the cache message; audit_check.py all clear; both Db2 cache test files pass (46).

Lessons for agents

A cache entry keyed only by a pin is never re-saved once present: bump a version in the key when the check changes.

Cross-repo

None. After merge, Evidence Refresh must be dispatched on main (its first run saves the v2 entry) to close #8185. The root cause of the id change is inferred from logs; the new diagnostics settle it if the layer check also fails.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 10, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 10, 2026 09:09
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 10, 2026 09:11
@squid-shepherd
squid-shepherd Bot merged commit a5f2be0 into main Nov 10, 2026
63 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8185-20261110T0853Z branch November 10, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

main is red: Evidence Refresh

1 participant