-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Miscellaneous pip fixes #3158
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
Miscellaneous pip fixes #3158
Conversation
46f5732
to
32aa7d4
Compare
32aa7d4
to
a2ea925
Compare
@@ -66,6 +66,10 @@ path = "src/main.rs" | |||
[profile.dev.package."*"] | |||
opt-level = 3 | |||
|
|||
[profile.test] | |||
opt-level = 3 |
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.
doesn't this obfuscate backtrace and debug information?
how do you think about running tests with release build job if this is desired?
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.
It should still keep debug info I'm pretty sure - the default for test enables debuginfo and I'm pretty sure it's orthogonal to opt-level: https://doc.rust-lang.org/nightly/cargo/reference/profiles.html#test
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.
When opt-level is not 0, the inlined callstacks are omitted, the progress is not linear to the code and some breakpoint doesn't work.
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.
I think the default development environment is better to be friendly to programmers unless there are unavoidable reasons
13 unexpected successes from a test that wasn't in the codebase when you opened this — sounds like another reason for bors. |
Fix pip warnings about inconsistency between distutils' sysconfig and the actual sysconfig; fix error when installing package it would say something like
__env_pip__.zip is not a file