Skip to content

Detect ParallelTestRunner's failure-handling options instead of versioning them - #606

Merged
maleadt merged 1 commit into
mainfrom
ptr-failure-handling-detect
Aug 6, 2026
Merged

Detect ParallelTestRunner's failure-handling options instead of versioning them#606
maleadt merged 1 commit into
mainfrom
ptr-failure-handling-detect

Conversation

@michel2323

Copy link
Copy Markdown
Member

No description provided.

…oning them

The `recycle_on_failure` and `retries` options were gated on
`pkgversion(ParallelTestRunner) >= v"2.7.0"`, betting that
ParallelTestRunner#148 would land in that release. It did not -- that PR is
still open -- so once 2.7.0 hit the registry the guard started passing
keyword arguments the released `runtests` does not accept, and every CI job
failed with a MethodError before running a single test.

Detect the keywords via `Base.kwarg_decl` instead. That is correct against
both the registered releases and a development checkout carrying the PR, and
it does not need updating when the options eventually ship.
@codecov

codecov Bot commented Aug 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.64%. Comparing base (95fa7d3) to head (91d4e41).

Additional details and impacted files
@@            Coverage Diff             @@
##            main     #606       +/-   ##
==========================================
+ Coverage   7.21%   78.64%   +71.42%     
==========================================
  Files         50       50               
  Lines       3452     3488       +36     
==========================================
+ Hits         249     2743     +2494     
+ Misses      3203      745     -2458     

☔ View full report in Codecov by Harness.
📢 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.

@christiangnrd christiangnrd left a comment

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.

kwarg_decl isn't public but this is better than broken tests (here and over at GPUArrays) until JuliaTesting/ParallelTestRunner.jl#148 is finalized.

@maleadt

maleadt commented Aug 6, 2026

Copy link
Copy Markdown
Member
The `recycle_on_failure` and `retries` options were gated on
`pkgversion(ParallelTestRunner) >= v"2.7.0"`, betting that
ParallelTestRunner#148 would land in that release. It did not -- that PR is
still open -- so once 2.7.0 hit the registry the guard started passing
keyword arguments the released `runtests` does not accept, and every CI job
failed with a MethodError before running a single test.

That should have been a revert?

Anyway, let's merge this to unblock CI, but this code is ugly.

@maleadt
maleadt merged commit 1de937a into main Aug 6, 2026
2 of 8 checks passed
@maleadt
maleadt deleted the ptr-failure-handling-detect branch August 6, 2026 18:41
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.

3 participants