rust-lang / rust-lang/rust

We should build ALL Rust code in this repo in CI

Open
#136,406 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-contributor-roadblock A-test-infra A-testsuite C-enhancement T-bootstrap
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

We should build ALL Rust code in this repo when we do ./x test in CI. Including subtrees. This is needed to ensure that contributors will not occasionally break anything, especially when doing tree-wide changes.

For example, in https://github.com/rust-lang/rust/pull/134420 a contributor replaced tree-wide &PathBuf with &Path. Unfortunately, he broke ./x perf. This was not noticed, because src/tools/rustc-perf-wrapper is not built during ./x test CI. (Later he fixed that problem.)

So, please, build everything in ./x test CI, including subtrees.

I add "contributor roadblock", because I think this is minor contributor roadblock.

@rustbot label A-contributor-roadblock C-enhancement -C-bug

HEAD

fd19773d2f8a070dc03f0072f9bc41a65fd04fed

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 by tracing how ./x test is invoked in CI and how subtrees such as src/tools/rustc-perf-wrapper are handled. Determine the scope of Rust code that the current CI path omits, then verify that the completed CI run builds all such subtrees without breaking existing checks.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.