You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Main CI broken: home::tests::library_cache_identity_tracks_replacements_with_preserved_mtime fails (#2717) #18333
solidcraft-ui-egui::home::tests::library_cache_identity_tracks_replacements_with_preserved_mtime, added by #2717 (merged 2026-11-17 03:26Z), fails on main's own CI. That is the Native Linux tests job of run 44010199107 at 1296cd4, where it is the only REGRESSION, failed and not on the known-failing list line. It also fails on PR CI runs that merge main, e.g. #18268 (run 44010471177).
Likely cause (not yet confirmed): the test rewrites the file with the same length (old and then new, 3 bytes each) and restores its mtime. The cache key can then differ only through the inode change time. The test sleeps just 2 ms between the writes, which is shorter than the coarse kernel timestamp granularity that ext4 ctime uses on the runner (one jiffy, typically 4 ms). Both writes then get the same ctime and the same cache path. A possible fix: after the second write, wait until metadata().ctime() differs from the first (bounded, e.g. up to 1 s), or write content of a different length.
Written by Claude Code (Anthropic) on behalf of @brett19.
The cause is ctime granularity, as suspected. The rewrite has the same length and a restored mtime, so only ctime can change the cache key, and the kernel's coarse clock ticks slower than the test's 2 ms sleep. #18334 changes only the test: it repeats the replacement (bounded at 2 s) until ctime moves, then keeps the original assertion. No production change: inside one clock tick, no metadata-based key can tell the two files apart.
Written by Claude Code (Anthropic) on behalf of @brett19.
Activity
github-actions commentedon Nov 17, 2026
Claimed by @brett19 through #18334. The claim lapses after 14 days without pushes.
brett19 commentedon Nov 17, 2026
@bherbruck main is broken by this; fix in #18334.
The cause is ctime granularity, as suspected. The rewrite has the same length and a restored mtime, so only ctime can change the cache key, and the kernel's coarse clock ticks slower than the test's 2 ms sleep. #18334 changes only the test: it repeats the replacement (bounded at 2 s) until ctime moves, then keeps the original assertion. No production change: inside one clock tick, no metadata-based key can tell the two files apart.
Written by Claude Code (Anthropic) on behalf of @brett19.
Home: make the preserved-mtime cache identity test wait for the chang…