Skip to content

Commit 33cdbf4

Browse files
authored
Merge pull request #3455 from epage/test
Create a Testing sub-team
2 parents 2b78d7b + aee3898 commit 33cdbf4

File tree

1 file changed

+111
-0
lines changed

1 file changed

+111
-0
lines changed

text/3455-t-test.md

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
- Feature Name: n/a
2+
- Start Date: (2023-06-27)
3+
- RFC PR: [rust-lang/rfcs#3455](https://github.com/rust-lang/rfcs/pull/3455)
4+
- Rust Issue: n/a
5+
6+
# Summary
7+
[summary]: #summary
8+
9+
Create a new subteam focused on testing in the development workflow and to be responsible for
10+
ensuring Rust has a high quality automated testing experience that includes the capabilities
11+
developers expect when working with a modern programming language.
12+
13+
# Motivation
14+
[motivation]: #motivation
15+
16+
Currently, the overall automated testing experience spans multiple components owned by different
17+
teams across the Rust Project (e.g. T-cargo with `cargo test` being the primary
18+
touch point for most users, T-libs for libtest, T-rustdoc for doctests, etc.).
19+
This makes it more difficult to establish a vision and coordinate efforts to achieve that vision.
20+
However, there isn't any single team focused on the testing picture holistically.
21+
Simultaneously, there are a number of well known needs and feature requests in the space that do not have an explicit
22+
owner driving the efforts to completion.
23+
24+
For example, there's been some long standing requests to have additional test output
25+
formats, such as JSON ([#49359]) and JUnit, available on Stable Rust.
26+
While some of these are available as unstable features in Nightly Rust,
27+
in [Rust 1.70.0](https://blog.rust-lang.org/2023/06/01/Rust-1.70.0.html), a bug was fixed
28+
so unstable test features, like `cargo test -- --format json`, require using a nightly
29+
toolchain, like other unstable features. This caused breakage in certain editor/IDE and CI
30+
related tooling as they had been relying on the prior behavior to get test data
31+
programmatically, and little progress has been made in the last 5 years ([#49359]).
32+
33+
Furthermore, there's been a growing interest in improving testing generally, like [better CI integration][ci] as well as requests for things like better support for custom test harnesses and frameworks (.e.g [#2318]).
34+
35+
The new Testing team is intended to establish an overarching vision and provide focused attention on these areas.
36+
37+
[#49359]: https://github.com/rust-lang/rust/issues/49359
38+
[#50297]: https://github.com/rust-lang/rust/issues/50297
39+
[#2318]: https://github.com/rust-lang/rfcs/pull/2318
40+
[ci]: (https://internals.rust-lang.org/t/pre-rfc-implementing-test-binary-list-format-json-for-use-by-ide-test-explorers-runners/18308)
41+
42+
## Mission and responsibilities
43+
[mission]: #mission
44+
45+
This team would be primarily focused on iterating on the test writing and analysis experience, `cargo test`, and enabling integration points and features for external tools like CI or IDEs.
46+
47+
Examples of issues to resolve:
48+
- [Stabilize support for programmatic (json) test output](https://github.com/rust-lang/rust/issues/49359)
49+
- What parts of [cargo nextest](https://nexte.st/) can we stabilize?
50+
- With the proliferation of test frameworks (e.g. [rstest], [trybuild], [trycmd], [cargo_test_support], [criterion]), are there underlying needs we can resolve?
51+
52+
## Relationships to other teams
53+
54+
With the aforementioned breadth across the Project, the Testing team will need to have collaborative relationships with many other teams, and is conceptually a subteam of both the Libs and Dev Tools teams.
55+
56+
The rust-lang/team repo does not currently support representing dual-parent subteams, so for now the Testing team will be primarily under the Dev Tools team
57+
58+
T-devtools: This will be the primary top level parent team.
59+
60+
**T-cargo**: This is a sibling team that T-testing will need to work with similarly to T-rustfmt, T-clippy, etc.
61+
62+
**T-rustdoc**: This is a sibling team that T-testing will likely coordinate with if any changes are need to how we do doctesting
63+
64+
**T-IDEs and Editors**: This is a sibling team that T-testing will likely coordinate with to understand the needs of IDEs/editors related to incorporating test related capabilities
65+
66+
**T-libs**: This will be a second/secondary top level parent team as they are ultimately responsible for libtest.
67+
68+
## Processes
69+
70+
For decisions on vision and direction, T-testing will use a standard FCP process. T-testing will be subject to [T-cargo's processes](https://doc.crates.io/contrib/team.html#decision-process) when dealing with `cargo test` and T-libs's processes for libtest. For any newly developed crates and libraries, we will follow [T-cargo's processes](https://doc.crates.io/contrib/team.html#decision-process).
71+
72+
## Membership
73+
74+
Team members are expected to shepherd testing discussions and vote on FCPs. Team membership is independent of regular code contributions though contributing can help build up the relevant experience and/or demonstrate the qualities for team membership.
75+
76+
Qualifications that will be taken into account for membership include:
77+
78+
- Does the person have the judgement for when deciding when a larger consensus is needed?
79+
- Does the person understand the constraints of backwards compatibility within `cargo test` and libtest and exercise caution when extending the compatibly constraints?
80+
81+
Someone can become a member of the Testing Team by requesting a review or being nominated by one of the existing members. They can be added by unanimous consent of the team. The team lead or another member of the team will also confirm with the moderation team that there are no concerns involving the proposed team member.
82+
83+
Team Leads are responsible for scheduling and facilitating team meetings and will be selected from the team members by consensus.
84+
85+
The initial members of the Testing team shall be:
86+
- Lead: Caleb Cartwright (@calebcartwright)
87+
- Ed Page (@epage)
88+
- Weihang Lo (@weihanglo)
89+
- Scott Schafer (@Muscraft)
90+
- Thom Chiovoloni (@thomcc)
91+
92+
## Drawbacks
93+
94+
The proposed Testing team bears some similarity to other Rust teams (e.g. Types team) in the sense
95+
that it would complicate and muddle the ownership of specific problems.
96+
For example, there would be two teams dealing with `cargo test` and two dealing with libtest.
97+
98+
## Rationale and alternatives
99+
100+
- This could be a working group instead of a team. However, we believe the [reasoning articulated in the Types team RFC][team-not-wg] is applicable here as well. There is a need for focused effort on driving work to completion along with associated maintenance work; not a shorter-lived initiative to create recommendations.
101+
- The Testing team could be a dual-parent subteam, but with the primary team under the Libs team. However, we believe Dev Tools is the better primary parent given the purview of the Testing team would extend well beyond libtest
102+
- The Testing team could be a single-parent subteam. We think there's too much overlap with too many teams across multiple top level teams to be a single-parent subteam.
103+
- We could do nothing and not form a new subteam nor a new working group. This would perpetuate the status quo and would most likely result in continued stagnation/lack of progress on the aforementioned focus areas.
104+
105+
106+
[team-not-wg]: https://rust-lang.github.io/rfcs/3254-types-team.html#why-a-team-and-not-a-working-group-what-is-the-difference-between-those-anyway
107+
[rstest]: https://crates.io/crates/rstest
108+
[trybuild]: https://crates.io/crates/trybuild
109+
[trycmd]: https://crates.io/crates/trycmd
110+
[cargo_test_support]: https://doc.rust-lang.org/nightly/nightly-rustc/cargo_test_support/
111+
[criterion]: https://crates.io/crates/criterion

0 commit comments

Comments
 (0)