-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Tracking issue for bootstrap test step cleanups #137178
Copy link
Copy link
Closed as not planned
Labels
A-test-infraArea: test infrastructure (may span bootstrap/compiletest/more)Area: test infrastructure (may span bootstrap/compiletest/more)A-testsuiteArea: The testsuite used to check the correctness of rustcArea: The testsuite used to check the correctness of rustcC-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Metadata
Metadata
Assignees
Labels
A-test-infraArea: test infrastructure (may span bootstrap/compiletest/more)Area: test infrastructure (may span bootstrap/compiletest/more)A-testsuiteArea: The testsuite used to check the correctness of rustcArea: The testsuite used to check the correctness of rustcC-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Type
Fields
Give feedbackNo fields configured for issues without a type.
This is a tracking issue for efforts related to some cleanups for bootstrap's test steps (related to
./x test). I intend to use this issue to track possible cleanups/follow-ups related to trying to break uptest.rsinto smaller modules by test kind #135072 and improving test step naming, and will be updated as we go.Phase 1: Improve the logical organization of test steps
This phase is focused around to break up the huge
test.rsfile into more logically organized modules. This is to (1) lower cognitive load when trying to figure out what test steps do, and (2) make it easier to fix existing test steps / add new test steps, by grouping similar test steps together (and localizing helpers / macros).Possible cleanups/improvements noticed
tidyselftestto remap./x test tidyto run tidy, not tidy's self-tests).CrateBootstrapis confusingly named (esp. whenBootstrapis also a test step). It doesn't actually test bootstrap (that would beBootstrap), it tests some tools used by bootstrap.compiletestself-test step is named inconsistently asCompiletestTest(versusCrateXXXthat other self-tests seem to use?).Crateis confusingly named and implement: it's shared by compiler crate tests but also std crate stes?TestFloatParseis one step that does two things (self test vs testing std float).Phase 2: Improve consistency of test step naming
See discussion in https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/Renaming.20test.20step.20structs.
Currently, there really isn't any logical naming scheme for bootstrap test steps, which makes it extra confusing because things are inconsistently named. We'd like to investigate if it's possible to rename test steps to better reflect their nature. This phase consist of mostly two steps: