test: Migrate jobserver to snapbox#14191
Merged
bors merged 2 commits intorust-lang:masterfrom Jul 5, 2024
Merged
Conversation
Collaborator
|
r? @weihanglo rustbot has assigned @weihanglo. Use |
b633f5c to
47fedac
Compare
epage
reviewed
Jul 5, 2024
47fedac to
82477d8
Compare
dieterplex
commented
Jul 5, 2024
Comment on lines
229
to
237
| .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 | ||
|
|
||
| "#]]) |
Contributor
Author
There was a problem hiding this comment.
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
dieterplex
commented
Jul 5, 2024
| 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 | ||
| ... |
Contributor
Author
There was a problem hiding this comment.
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
Contributor
|
@bors r+ |
Contributor
Contributor
Contributor
|
☀️ Test successful - checks-actions |
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Jul 5, 2024
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)
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Jul 7, 2024
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #14039.