Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove rustc-test dependency #528

Merged
merged 4 commits into from
Apr 2, 2024
Merged

Remove rustc-test dependency #528

merged 4 commits into from
Apr 2, 2024

Conversation

rillian
Copy link
Contributor

@rillian rillian commented Apr 2, 2024

The rustc-test crate v0.3.1 depends on rustc-serialize v0.3 which is unmaintained and unfortunately no longer compiles under rust 1.77.1.

Remove this crate in favour of a trivial test runner. This drops many nice features of the rustc test runner like parallelization, colour output, per-subtest command line selection support, and output capture on failure. On the other hand, it reduces the maintenance surface and unbreaks the build.

Resolves #526

rillian added 4 commits April 2, 2024 13:34
This isn't actually used by any code in the crate.
This doesn't distribute the individual tests across the build-in
harness, hurting parallelism and process isolation. On the other
hand it's a minimal change to port off the rustc-test dependency
which hasn't been actively maintained and currently doesn't compile.
Move the custom test runner into its own `util::runner` module
and use it instead of rustc_test for the other test files.
This allows `cargo test` to complete under rust 1.77.1.
This is no longer available since the depdendency has been
removed.
@rillian
Copy link
Contributor Author

rillian commented Apr 2, 2024

force-pushed a rebase with fixes for ci failures.

@rillian rillian changed the title Remove rustc-test Remove rustc-test dependeny Apr 2, 2024
@rillian rillian changed the title Remove rustc-test dependeny Remove rustc-test dependency Apr 2, 2024
Copy link
Member

@jdm jdm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks reasonable. Thanks!

@jdm jdm added this pull request to the merge queue Apr 2, 2024
Merged via the queue into servo:main with commit a3338ef Apr 2, 2024
6 checks passed
@rillian rillian deleted the rustc-test branch April 2, 2024 22:19
@rillian rillian mentioned this pull request Apr 3, 2024
@untitaker
Copy link
Contributor

Recommend to move to https://github.com/LukasKalbertodt/libtest-mimic -- currently hacking around the testsuite and the DX is really not good.

untitaker added a commit to untitaker/html5ever that referenced this pull request Oct 28, 2024
servo#528 regressed the DX
significantly, add a lighter and more maintained test harness to get
basic functionality like "run one test" back.
@untitaker untitaker mentioned this pull request Oct 28, 2024
github-merge-queue bot pushed a commit that referenced this pull request Oct 28, 2024
* Add libtest-mimic

#528 regressed the DX
significantly, add a lighter and more maintained test harness to get
basic functionality like "run one test" back.

* appease clippy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tests fail under rust 1.77.1 to build because of rustc-test
3 participants