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

Change opt-level from 3 to 2 for the test profile #1607

Closed
wants to merge 1 commit into from

Conversation

daira
Copy link
Contributor

@daira daira commented Nov 2, 2024

See #1606 (comment) for rationale.

@daira daira requested a review from str4d November 2, 2024 22:51
@daira daira added the testing label Nov 2, 2024
@daira daira marked this pull request as draft November 2, 2024 23:18
@daira
Copy link
Contributor Author

daira commented Nov 2, 2024

There is an improvement to build+test latency on CI, but it's small:

  • "Test on Linux" took 5m 53s with this PR, vs 6m 2s before (a 2.5%, or 9 second improvement)
  • "Test Orchard on Linux" took 7m 23s with this PR, vs 7m 39s before (a 3.5%, or 16 second improvement)

The disadvantage is that testing would not see miscompilations that happen at opt-level 3 but not opt-level 2. On reflection, I think this is a significant downside. Testing at the same optimization level as the code we release (even without LTO, which admittedly could be a source of miscompilations) seems like a good thing to maintain. So I'm inclined to close this without merging.

Copy link

codecov bot commented Nov 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 56.30%. Comparing base (c6db09b) to head (2405364).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1607   +/-   ##
=======================================
  Coverage   56.30%   56.30%           
=======================================
  Files         148      148           
  Lines       19062    19062           
=======================================
  Hits        10732    10732           
  Misses       8330     8330           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant