-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
test: Migrate jobserver to snapbox #14191
Conversation
r? @weihanglo rustbot has assigned @weihanglo. Use |
b633f5c
to
47fedac
Compare
47fedac
to
82477d8
Compare
tests/testsuite/jobserver.rs
Outdated
.with_stderr_data(str![[r#" | ||
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s | ||
[RUNNING] `target/debug/cargo-jobserver-check[EXE]` | ||
thread 'main' panicked at src/main.rs:5:43: | ||
no jobserver from env: NotPresent | ||
[NOTE] run with `RUST_BACKTRACE=1` environment variable to display a backtrace | ||
|
||
"#]]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/rust-lang/cargo/actions/runs/9803086601/job/27068710146#step:11:4061
running `D:\a\cargo\cargo\target\debug\cargo.exe run -j2`
thread 'jobserver::runner_inherits_jobserver' panicked at tests\testsuite\jobserver.rs:237:10:
---- expected: tests\testsuite\jobserver.rs:229:27
++++ actual: stderr
1 1 | [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
2 2 | [RUNNING] `target/debug/cargo-jobserver-check[EXE]`
3 3 | thread 'main' panicked at src/main.rs:5:43:
4 4 | no jobserver from env: NotPresent
5 5 | [NOTE] run with `RUST_BACKTRACE=1` environment variable to display a backtrace
6 + [ERROR] process didn't exit successfully: `target/debug/cargo-jobserver-check[EXE]` ([EXIT_STATUS]: 101)
I don't get it why it got passed with or without the error line at local win host, but fails at CI env.
8571b21
to
b336242
Compare
thread 'main' panicked at src/main.rs:6:17: | ||
assertion failed: status.success() | ||
[NOTE] run with `RUST_BACKTRACE=1` environment variable to display a backtrace | ||
... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
globbing the error line.
https://github.com/rust-lang/cargo/actions/runs/9803335785/job/27069355328#step:11:4063
running `D:\a\cargo\cargo\target\debug\cargo.exe run -j2 --config 'target.x86_64-pc-windows-msvc.runner = "runner"'`
thread 'jobserver::runner_inherits_jobserver' panicked at tests\testsuite\jobserver.rs:256:10:
---- expected: tests\testsuite\jobserver.rs:244:27
++++ actual: stderr
1 1 | [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
2 2 | [RUNNING] `runner target/debug/cargo-jobserver-check[EXE]`
3 3 | this is a runner
4 4 | thread 'main' panicked at src/main.rs:5:43:
5 5 | no jobserver from env: NotPresent
6 6 | [NOTE] run with `RUST_BACKTRACE=1` environment variable to display a backtrace
7 7 | thread 'main' panicked at src/main.rs:6:17:
8 8 | assertion failed: status.success()
9 9 | [NOTE] run with `RUST_BACKTRACE=1` environment variable to display a backtrace
10 + [ERROR] process didn't exit successfully: `runner target/debug/cargo-jobserver-check[EXE]` ([EXIT_STATUS]: 101)
b336242
to
3c17ca0
Compare
This is a follow up to 14646e6 and it would fix warnings while migrating jobserver tests to snapbox. see [feat(toml): Warn on unset Edition rust-lang#13505](rust-lang#13505)
3c17ca0
to
58fce87
Compare
@bors r+ |
☀️ Test successful - checks-actions |
Update cargo 13 commits in a515d463427b3912ec0365d106791f88c1c14e1b..f86ce56396168edf5d0e1c412ddda0b2edba7d46 2024-07-02 20:53:36 +0000 to 2024-07-05 17:52:05 +0000 - test: Migrate jobserver to snapbox (rust-lang/cargo#14191) - chore(deps): update msrv (3 versions) to v1.77 (rust-lang/cargo#14186) - test: migrate build_plan and build_script to snapbox (rust-lang/cargo#14193) - test: migrate cfg and check to snapbox (rust-lang/cargo#14185) - test: migrate install* and inheritable_workspace_fields to snapbox (rust-lang/cargo#14170) - Pass rustflags to artifacts built with implicit targets when using target-applies-to-host (rust-lang/cargo#13900) - test: Migrate network tests to snapbox (rust-lang/cargo#14187) - test: migrate some files to snapbox (rust-lang/cargo#14113) - test: Auto-redact `... after last build at ...`; Migrate `freshness` to Snapbox (rust-lang/cargo#14161) - chore: fix some typos (rust-lang/cargo#14182) - fix: improve message for inactive weak optional feature with edition2024 through unused dep collection (rust-lang/cargo#14026) - test:migrate `doc/directory/docscrape` to snapbox (rust-lang/cargo#14171) - test: Migrate git_auth to snapbox (rust-lang/cargo#14172)
Update cargo 20 commits in a515d463427b3912ec0365d106791f88c1c14e1b..154fdac39ae9629954e19e9986fd2cf2cdd8d964 2024-07-02 20:53:36 +0000 to 2024-07-07 01:28:23 +0000 - test: relax redactions for rust-lang/rust (rust-lang/cargo#14203) - use "bootstrap" instead of "rustbuild" (rust-lang/cargo#14207) - test: migrate serveral files to snapbox (rust-lang/cargo#14180) - Add rustdocflags to Unit's Debug impl (rust-lang/cargo#14201) - Allow enabling `config-include` feature in config (rust-lang/cargo#14196) - fix(test): Restore `does_not_contain` for check (rust-lang/cargo#14198) - test: migrate patch, pkgid, proc_macro and progress to snapbox (rust-lang/cargo#14181) - test: Migrate jobserver to snapbox (rust-lang/cargo#14191) - chore(deps): update msrv (3 versions) to v1.77 (rust-lang/cargo#14186) - test: migrate build_plan and build_script to snapbox (rust-lang/cargo#14193) - test: migrate cfg and check to snapbox (rust-lang/cargo#14185) - test: migrate install* and inheritable_workspace_fields to snapbox (rust-lang/cargo#14170) - Pass rustflags to artifacts built with implicit targets when using target-applies-to-host (rust-lang/cargo#13900) - test: Migrate network tests to snapbox (rust-lang/cargo#14187) - test: migrate some files to snapbox (rust-lang/cargo#14113) - test: Auto-redact `... after last build at ...`; Migrate `freshness` to Snapbox (rust-lang/cargo#14161) - chore: fix some typos (rust-lang/cargo#14182) - fix: improve message for inactive weak optional feature with edition2024 through unused dep collection (rust-lang/cargo#14026) - test:migrate `doc/directory/docscrape` to snapbox (rust-lang/cargo#14171) - test: Migrate git_auth to snapbox (rust-lang/cargo#14172)
Part of #14039.