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

Split test_ptr_try_cast_into_soundness #1308

Merged
merged 2 commits into from
May 19, 2024
Merged

Split test_ptr_try_cast_into_soundness #1308

merged 2 commits into from
May 19, 2024

Conversation

joshlf
Copy link
Member

@joshlf joshlf commented May 19, 2024

This should enable better parallelization, especially under Miri in CI.

Use `cargo nextest` to run Miri tests on twice the number of threads as
there are CPU cores.
@joshlf joshlf requested a review from jswrenn May 19, 2024 16:30
@joshlf joshlf marked this pull request as ready for review May 19, 2024 16:30
@codecov-commenter
Copy link

codecov-commenter commented May 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.71%. Comparing base (8f72b61) to head (0967bed).

Additional details and impacted files
@@                 Coverage Diff                 @@
##           ci-miri-nextest    #1308      +/-   ##
===================================================
- Coverage            87.84%   87.71%   -0.13%     
===================================================
  Files                   15       15              
  Lines                 5191     5138      -53     
===================================================
- Hits                  4560     4507      -53     
  Misses                 631      631              

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

This should enable better parallelization, especially under Miri in CI.

Comparing [1] (run with the parent commit) and [2] (run with this
commit), we see an overall speedup of 22m51s -> 18m28s, or ~19%.

[1] https://github.com/google/zerocopy/actions/runs/9148942749
[2] https://github.com/google/zerocopy/actions/runs/9148952446
joshlf added a commit that referenced this pull request May 19, 2024
Now that we've parallelized the execution of our Miri tests (in #1307
and #1308), our tets should benefit more from underlying parallelism.
Base automatically changed from ci-miri-nextest to main May 19, 2024 16:59
@joshlf joshlf added this pull request to the merge queue May 19, 2024
@joshlf joshlf mentioned this pull request May 19, 2024
Merged via the queue into main with commit 7329607 May 19, 2024
210 checks passed
@joshlf joshlf deleted the ptr-test-parallelize branch May 19, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants