Skip to content

Main CI broken: home::tests::library_cache_identity_tracks_replacements_with_preserved_mtime fails (#2717) #18333

Closed

Description

@brett19

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).

panicked at crates/ui-egui/src/home.rs:1273:9:
assertion `left != right` failed
  left: "/tmp/SolidCraft/thumbnails/a6e24494c6a8347d.png"
 right: "/tmp/SolidCraft/thumbnails/a6e24494c6a8347d.png"

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.

Activity

  1. added
    needs-triage
    in progress
    on Nov 17, 2026
  2. github-actions commented on Nov 17, 2026

    @github-actions
    Contributor

    Claimed by @brett19 through #18334. The claim lapses after 14 days without pushes.

  3. brett19 commented on Nov 17, 2026

    @brett19
    CollaboratorAuthor

    @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.

  4. added a commit that references this issue on Nov 17, 2026
    7ea1d3d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in progressneeds-triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions