Skip to content

Update to ParallelTestRunner v2 - #2690

Merged
giordano merged 2 commits into
EnzymeAD:mainfrom
giordano:mg/paralleltestrunner-2
Oct 25, 2025
Merged

Update to ParallelTestRunner v2#2690
giordano merged 2 commits into
EnzymeAD:mainfrom
giordano:mg/paralleltestrunner-2

Conversation

@giordano

Copy link
Copy Markdown
Member

No description provided.

@giordano
giordano requested a review from vchuravy October 25, 2025 11:40
@codecov

codecov Bot commented Oct 25, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.57%. Comparing base (b02a7b5) to head (7d8562d).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2690      +/-   ##
==========================================
- Coverage   72.58%   72.57%   -0.02%     
==========================================
  Files          58       58              
  Lines       18739    18739              
==========================================
- Hits        13602    13600       -2     
- Misses       5137     5139       +2     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@giordano
giordano force-pushed the mg/paralleltestrunner-2 branch from 8914dc3 to 771637c Compare October 25, 2025 11:41
@giordano giordano changed the title [CI] Run macOS tests with 2 jobs instead of only one Update to ParallelTestRunner v2 Oct 25, 2025
Comment thread .github/workflows/CI.yml

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@icweaver I feel like you may be interested in the changes in this file: you can easily run tests in verbose mode in CI with

      - uses: julia-actions/julia-runtest@v1
        with:
          test_args: '--verbose'

The other changes in this PR are for using multiple jobs on macOS (we need to see if we have enough memory for running them though)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh nice, appreciate the tip!

@giordano giordano left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vchuravy now that the threads.jl testset is run directly, instead of through multi-threads.jl, there's no clear indication of how many threads are run. Only hint is the messed up printing:

Output generated during execution of 'threads/2':
┌ The number of this iteration is 11
│ The number of this iteration is 16
│ The number of this iteration is 1
│ The number of this iteration is 6
│ The number of this iteration is 1
│ The number of this iteration is 11
│ The number of this iteration is 16
└ The number of this iteration is 6

Maybe that's not a big deal and we simply trust that the tests are configured correctly?

One the bright side, using multiple macOS jobs brought some nice speedup:

Comment thread test/runtests.jl Outdated
@giordano
giordano force-pushed the mg/paralleltestrunner-2 branch from 771637c to 7d8562d Compare October 25, 2025 12:54
@giordano
giordano merged commit 2cd186b into EnzymeAD:main Oct 25, 2025
47 of 53 checks passed
@giordano
giordano deleted the mg/paralleltestrunner-2 branch October 25, 2025 18:45
Comment thread test/runtests.jl

if filter_tests!(testsuite, args)
# Skip GPU-specific tests by default.
delete!(testsuite, "metal")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we're running these at least in gpu ci right?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was skipped already before.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not the cuda one tho?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I understand, the CUDA one is run at

julia --color=yes test/cuda.jl

Comment thread test/runtests.jl
using ParallelTestRunner: addworker, filter_tests!, find_tests, parse_args, runtests

function test_filter(test)
if test ∈ ("metal", "cuda", "amdgpu")

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wsmoses the cuda one was skipped here

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.

4 participants