Skip to content

fix(ci): rust-cache restore hangs 25+ min on the quality/windows jobs and starves the whole CI queue #195

Closed

Description

@KooshaPari

Problem

The Swatinem/rust-cache@v2 RESTORE step hangs for 25+ minutes on a large cache blob, and while it hangs it occupies the self-hosted runner, starving the entire CI queue.

Observed hang

Blob sizes

Cache key Cache id Size
quality-ubuntu 9211749432 ~881 MB
windows-cross-check 9209952731 / 9293606805 ~688 MB

These blobs are dominated by the workspace target/ directory, which the Swatinem/rust-cache action caches by default.

Existing partial fix

PR #183 (fix/ci-cold-cache-build-green) already fixes the Build job by using a NEW cache key plus cache-targets: "false", so its restore misses fast ("No cache found" in ~55s) instead of downloading the ~2.02 GB target/ blob:

key: ${{ matrix.os }}-stablepin-notarget
cache-targets: "false"

That fix works for the Build job. PR #183 does not touch the other jobs, so quality, windows-build-test and windows-cross-check still restore the oversized blobs and hang the same way.

Scope

Extend the same -notarget key + cache-targets: "false" treatment to the remaining jobs that still use a big cache:

  1. quality (key: quality-ubuntu)
  2. windows-build-test (key: windows-latest)
  3. windows-cross-check (key: windows-cross-check)

Note: cache-all-crates: "true" is kept as-is in those jobs. It only affects WHICH crates are cached, not the target/ blob size.

Activity

  1. added
    kilo-triaged
    on Oct 26, 2026
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

    kilo-triaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions