Skip to content

test_cache_invalidation can observe an unchanged executable timestamp on Linux CI #941

Closed

Description

@astral-automations-bot

Run: https://github.com/astral-sh/uv/actions/runs/33529931206
Job: https://github.com/astral-sh/uv/actions/runs/33529931206/job/99930290612

Workflow: CI
Job: test / cargo test on linux
Platform: Depot Ubuntu 24.04 (depot-ubuntu-24.04-16)
Attempt: 1
Event/branch: push to main

The only independent failure was uv-python::interpreter::tests::test_cache_invalidation:

thread 'main' panicked at crates/uv-python/src/interpreter.rs:1489:9:
assertion `left != right` failed
  left: Timestamp(SystemTime { tv_sec: 1788279192, tv_nsec: 889882801 })
 right: Timestamp(SystemTime { tv_sec: 1788279192, tv_nsec: 889882801 })

The test records the mock executable's Timestamp, immediately rewrites that file, and asserts that the timestamp changed. On Unix, Timestamp is derived from ctime. The log establishes that this runner returned the same ctime after the rewrite; the underlying reason for that filesystem or clock behavior is not established.

The triggering main commit changes lock-flag diagnostics and related lock tests, not interpreter caching or this test. The timestamp assertion was added by astral-sh#21072, with #614 as its precursor. Neither tracks this flake, and no matching ci-flake issue was found.

The test should make the timestamp transition deterministic, for example by explicitly advancing the file timestamp or retrying until the filesystem reports a distinct value, instead of assuming an immediate rewrite always changes it.

Activity

  1. added
    internal:ci-flake
    on Sep 1, 2026
  2. astral-automations-bot commented on Sep 16, 2026

    @astral-automations-bot
    Author
  3. astral-automations-bot commented on Sep 16, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv-dev/actions/runs/35141553148

    The failed-job rerun also hit the same unchanged-timestamp assertion on attempt 2 in the Linux cargo-test job, so the failure persisted across both attempts of this run.

  4. astral-automations-bot commented on Sep 16, 2026

    @astral-automations-bot
    Author
  5. astral-automations-bot commented on Sep 16, 2026

    @astral-automations-bot
    Author
  6. astral-automations-bot commented on Sep 16, 2026

    @astral-automations-bot
    Author
  7. astral-automations-bot commented on Sep 16, 2026

    @astral-automations-bot
    Author
  8. astral-automations-bot commented on Sep 16, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv-dev/actions/runs/35146523662

    Attempt 3 also hit the same unchanged-timestamp assertion in the Linux cargo-test job, showing that this occurrence persisted through another rerun.

  9. astral-automations-bot commented on Sep 16, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv-dev/actions/runs/35148959095

    This run also independently hit ecosystem::llm: the uv subprocess exited with SIGSEGV after resolving 102 packages, another affected test for #916.

  10. astral-automations-bot commented on Sep 16, 2026

    @astral-automations-bot
    Author
  11. astral-automations-bot commented on Sep 16, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv-dev/actions/runs/35149578003

    This run independently encountered both #941 in the Linux cargo-test job and #1674 in Windows shard 3.

  12. astral-automations-bot commented on Sep 16, 2026

    @astral-automations-bot
    Author
  13. astral-automations-bot commented on Sep 16, 2026

    @astral-automations-bot
    Author
  14. astral-automations-bot commented on Sep 16, 2026

    @astral-automations-bot
    Author
  15. astral-automations-bot commented on Sep 16, 2026

    @astral-automations-bot
    Author
  16. 473 remaining items

  17. astral-automations-bot commented on Oct 7, 2026

    @astral-automations-bot
    Author
  18. astral-automations-bot commented on Oct 7, 2026

    @astral-automations-bot
    Author
  19. astral-automations-bot commented on Oct 7, 2026

    @astral-automations-bot
    Author
  20. astral-automations-bot commented on Oct 7, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv-dev/actions/runs/37665802298

    This attempt also reproduced #1330 and #1783. The ARM64 occurrence reached Build after Test committed binaries succeeded; Rust-cache had consumed 7m39s before the 10-minute timeout. Job: https://github.com/astral-sh/uv-dev/actions/runs/37665802298/job/112944837739

  21. astral-automations-bot commented on Oct 7, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv-dev/actions/runs/37672528016

    Attempt 1 also independently reproduced #2310: ARMv7 setup stalled during apt-get update despite the fallback settings and exceeded its 15-minute limit before compilation. Job: https://github.com/astral-sh/uv-dev/actions/runs/37672528016/job/112967825679

  22. astral-automations-bot commented on Oct 7, 2026

    @astral-automations-bot
    Author
  23. astral-automations-bot commented on Oct 7, 2026

    @astral-automations-bot
    Author
  24. astral-automations-bot commented on Oct 7, 2026

    @astral-automations-bot
    Author
  25. astral-automations-bot commented on Oct 7, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv-dev/actions/runs/37667554892

    Attempt 1 also independently reproduced #815: the deadsnakes Python installation stalled during Ubuntu APT mirror access and exceeded its 15-minute job limit before testing uv. Job: https://github.com/astral-sh/uv-dev/actions/runs/37667554892/job/112952527500

  26. astral-automations-bot commented on Oct 7, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv-dev/actions/runs/37677603591

    This occurrence ran after astral-sh#22310 merged, but checkout logs and source confirm that tested merge commit 4604cee still contains the original timestamp assertion. It does not demonstrate a regression in the merged fix.

  27. astral-automations-bot commented on Oct 7, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv-dev/actions/runs/37677214320

    The assertion failed after astral-sh#22310 merged at 19:50:55 UTC, but this job had already checked out de34575, which retains the original timestamp assertion. This occurrence does not demonstrate a regression in the fix.

  28. astral-automations-bot commented on Oct 7, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv-dev/actions/runs/37675021349

    Attempt 1 also adds a ListArtifacts ENOTFOUND sample to #383 in test-integration / conda on macos x86-64, extending the tracked 403 and ETIMEDOUT variants: https://github.com/astral-sh/uv-dev/actions/runs/37675021349/job/112978739138. The Windows NanoServer job independently reproduced #1330.

  29. astral-automations-bot commented on Oct 7, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv-dev/actions/runs/37675021349

    Attempt 2 reproduced the unchanged-ctime assertion in the Linux cargo-test job: https://github.com/astral-sh/uv-dev/actions/runs/37675021349/job/113040864334. It ran after astral-sh#22310 merged, but checkout logs and source confirm commit 0e09a47 still contains the original assertion. This occurrence does not demonstrate a regression in the fix.

  30. zaniebot commented on Oct 15, 2026

    @zaniebot
    Collaborator

    Fixed by astral-sh#22310.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    internal:ci-flake

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions