Repository navigation
Add regression test for binary size regression in derive(Debug) - #166625
panstromek wants to merge 1 commit into
Conversation
This comment has been minimized.
This comment has been minimized.
|
I guess we ignore arm then? 😆 66928 is suspiciously big, though, I wonder what's happening there |
|
Locally the aarch64 test fails with Overall I think binary size is really difficult to pin down in a reliable, cross-platform way. Maybe it makes more sense to measure the size of the generated MIR/LLVM IR? |
|
I think checking MIR or LLVM IR would be too early, this code is eliminated further down the line, maybe even during link-time (I'm not exactly sure now). Maybe we should limit this to x64 Linux then, where we know it works. I don't think we need to do it perfectly for now, I just want start somewhere. Right now there's no signal about this at all, so one test for one platform is at least something. |
99a55de to
aa19a9a
Compare
|
I restricted this to Linux x86-64 for now. |
|
@bors try jobs=test-various Just to check if there is anything weird in our CI (musl maybe?) |
This comment has been minimized.
This comment has been minimized.
Add regression test for binary size regression in derive(Debug) try-job: test-various
|
💔 Test for 39c1a52 failed: CI. Failed job:
|
This comment has been minimized.
This comment has been minimized.
aa19a9a to
6ff0a43
Compare
|
@rustbot ready |
|
@bors r+ rollup |
…size, r=folkertdev Add regression test for binary size regression in derive(Debug) Regression test for rust-lang#165189 closes rust-lang#165189 This is a first time I'm adding a test like this, so there are two things I'm not sure about: - do I need to restrict this to some platforms? I don't know where this can blow up unexpectedly. - the threshold is current binary size + 10%, which is just intuition, I don't know how strict we should be here. r? folkertdev
…uwer Rollup of 4 pull requests Successful merges: - #166355 (implement OpenOptions::nofollow) - #162570 (Use correct source parameter spans in async closure inference diagnostics) - #165670 (Provide suggestion from old trait solver in next trait solver on closure lifetime mismatch) - #166625 (Add regression test for binary size regression in derive(Debug))
|
💔 I suspect this PR failed tests as part of a rollup After fixing the problem, consider running a try job for the failed job before re-approving. Link to failure: #166749 (comment) |
|
This pull request was unapproved. This PR was contained in a rollup (#166749), which was unapproved. |
|
Hm, this blew up sooner than I expected. The failing job is llvm-22, so I guess we need to ignore that one as well? Altough it seems weird that this one would suddenly have much worse binary size outcome. |
Regression test for #165189
closes #165189
This is a first time I'm adding a test like this, so there are two things I'm not sure about:
r? folkertdev