rust-lang / rust-lang/rust-clippy

[build] caching on Ubuntu builders of GH actions does nothing

Open
#6,155 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-infra
Dominant language
Rust
Stars
13.5k
Forks
2.2k
Avg merge
2d 10h
Merged PRs (30d)
32

Description

See this build log: https://github.com/rust-lang/rust-clippy/pull/6154/checks?check_run_id=1235351421#step:6:1

A solution is to cache only need files and subdirs: https://doc.rust-lang.org/nightly/cargo/guide/cargo-home.html#caching-the-cargo-home-in-ci.
We might also want to cache .crates.toml if we use cargo install.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked GitHub Actions build log and the repository's current Ubuntu builder cache configuration. Compare the cached paths with Cargo's CI guidance, including the mentioned .crates.toml if cargo install is used. Done means the workflow caches only useful Cargo files and directories and restores them effectively on later builds.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, rust
Domain
build-system, ci-cd
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.