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

Show information about abnormal fix errors. #9799

Merged
merged 1 commit into from
Aug 17, 2021

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented Aug 17, 2021

During a recent crater run, we ran into a few circumstances where cargo fix failed unexpectedly, and we can't reproduce the errors locally. The sequence was:

  1. Cargo ran rustc and collected the diagnostics to apply, and modified the files.
  2. Cargo ran rustc again to verify the fixes. This step failed, but only emitted warnings.
  3. Cargo ran rustc again to show the original diagnostics, and this exited normally with warnings.

We don't know why the second step failed. This change makes it so that cargo will collect any non-diagnostic messages (like ICEs), and will also display the exit code if it is abnormal.

@rust-highfive
Copy link

r? @Eh2406

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 17, 2021
@ehuss ehuss force-pushed the fix-abnormal-error branch from 240ea63 to 5f274b0 Compare August 17, 2021 15:49
@ehuss
Copy link
Contributor Author

ehuss commented Aug 17, 2021

r? @alexcrichton
I'm hoping to have this for the next crater run to diagnose the unexpected errors.

@rust-highfive rust-highfive assigned alexcrichton and unassigned Eh2406 Aug 17, 2021
@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Aug 17, 2021

📌 Commit 5f274b0 has been approved by alexcrichton

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 17, 2021
@bors
Copy link
Contributor

bors commented Aug 17, 2021

⌛ Testing commit 5f274b0 with merge d837917...

@bors
Copy link
Contributor

bors commented Aug 17, 2021

☀️ Test successful - checks-actions
Approved by: alexcrichton
Pushing d837917 to master...

@bors bors merged commit d837917 into rust-lang:master Aug 17, 2021
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 18, 2021
Update cargo

8 commits in b51439fd8b505d4800a257acfecf3c69f81e35cf..e96bdb0c3d0a418e7fcd7fbd69be08abf830b4bc
2021-08-09 18:40:05 +0000 to 2021-08-17 22:58:47 +0000
- Support using rustbot to ping the Windows group (rust-lang/cargo#9802)
- Show information about abnormal `fix` errors. (rust-lang/cargo#9799)
- Bump jobserver. (rust-lang/cargo#9798)
- Render build-std web links as hyperlinks (rust-lang/cargo#9795)
- Teach cargo to failfast on recursive/corecursive aliases (rust-lang/cargo#9791)
- Fix value-after-table error with profiles. (rust-lang/cargo#9789)
- Fix plugin registrar change. (rust-lang/cargo#9790)
- Ability to specify the output name for a bin target different from the crate name (rust-lang/cargo#9627)
@ehuss ehuss added this to the 1.56.0 milestone Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants