Skip to content

fix: prevent intermittent digest-mismatch errors during archive updates#296

Draft
gruyaume wants to merge 1 commit into
canonical:mainfrom
gruyaume:dev-fixhash
Draft

fix: prevent intermittent digest-mismatch errors during archive updates#296
gruyaume wants to merge 1 commit into
canonical:mainfrom
gruyaume:dev-fixhash

Conversation

@gruyaume
Copy link
Copy Markdown

@gruyaume gruyaume commented May 15, 2026

Chisel intermittently fails with expected digest X, got Y when Ubuntu's archive is mid-publication and InRelease is temporarily inconsistent with Packages.gz at the named path (a window we observed lasting at least 39 minutes against the same publication in real CI runs for Ella Core). Fetch the package index by content hash using apt's Acquire-By-Hash , which Ubuntu archives have advertised since 16.04 (2016), so the URL itself encodes the expected bytes; falls back to the named path when an archive doesn't advertise the feature or a specific hash has been garbage-collected.

Fixes #295

Reference


  • Have you signed the CLA?

Signed-off-by: Guillaume Belanger <guillaume.belanger27@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chisel is flaky when the archive is updating

1 participant