-
Notifications
You must be signed in to change notification settings - Fork 92
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
Categorize container creation failure and other docker errors #760
base: master
Are you sure you want to change the base?
Categorize container creation failure and other docker errors #760
Conversation
728335d
to
88cc188
Compare
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.
Looks good! Just a minor nit.
src/report/display.rs
Outdated
@@ -13,6 +13,7 @@ impl ResultName for FailureReason { | |||
FailureReason::Unknown => "failed (unknown)".into(), | |||
FailureReason::Timeout => "timed out".into(), | |||
FailureReason::NetworkAccess => "network access".into(), | |||
FailureReason::Docker => "docker".into(), |
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.
Nit: can we have a slightly better message here? This would result in "build docker" as the outcome, which is puzzling. Would be better to have "failed (docker error)" as the message here, to have "build failed (docker error)" as the outcome.
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.
That makes sense similar to unknown is failed (unknown)
rather than just unknown
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.
Ok, I have pushed a commit fixing this.
- as requested in rust-lang#760 (comment)
Thanks! ❤️ |
CI seems to have failed. |
Yeah, I noticed the PR being auto-removed from the merge queue. I will look into why those Minicrater tests are failing. |
-switching as rustwide switched to anyhow
- as requested in rust-lang#760 (comment)
e224ce0
to
a0f9b71
Compare
a0f9b71
to
9b2abe2
Compare
The problem was that anyhows |
My local minicrater test run finished just now and it looks like my changes only fixes |
a1c5cdd
to
8b03dc9
Compare
I found the problem (another difference in behaviour between anyhow and failure) and the local minicrater run now passes. |
See #700 (comment) for some context
Most of the changes here are due to rustwide switching from failure to anyhow and as such this swicthes crater to anyhow as well.