Repository navigation
Conversation
|
@vszakats thoughts? |
|
@bagder I like it! |
There was a problem hiding this comment.
Pull request overview
This PR adds a --subset=<section>/<parts> option to tests/runtests.pl to allow splitting a selected test set into multiple invocations (useful for parallelizing runs), along with user-facing documentation in docs/runtests.md.
Changes:
- Add
--subset=<section>/<parts>command-line parsing totests/runtests.pl. - Implement logic to slice the computed
$TESTCASESlist into a specific subset “part”. - Document the new option and provide usage examples in
docs/runtests.md.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| tests/runtests.pl | Adds --subset option parsing and implements subset selection on $TESTCASES. |
| docs/runtests.md | Documents --subset behavior and examples. |
Suppressed comments (3)
docs/runtests.md:269
- Wording: "zero prefixed" is misleading here; the docs describe a zero-based index.
*section* is zero prefixed so it must be smaller than *parts*.
docs/runtests.md:271
- Spelling: "rest run" looks like a typo; should be "test run".
Using this option you can for example split up an identical rest run into
docs/runtests.md:272
- Grammar: "combined runs" should be "combined run".
three separate invokes that combined runs all the tests:
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
To make it easier to run different subsets of the tests in separate invokes. Closes #22616
5807e96 to
bf33f6e
Compare
|
It's working great as tested in #22617, (I disable minimums since it's not strictly critical to check in all jobs, but also testing now if it works to divide by total subsets, rough method, but maybe.) |
|
Excellent, I'll merge this. |
When both are set, to improve the default. It may still need manual adjustment in cases (in CI for example, the Windows job was like this, and the planned riscv64 one). Ref: curl#22617 Follow-up to e669179 curl#22616
Also: - drop most hand-tuned `--min` options, in favor of defaults. - enable tests on emulated riscv64. Suggested-by: Dan Fandrich Ref: #22590 (comment) - drop building examples on emulated riscv64. Adding around 3.5 minutes to the riscv64 job: 0.5 Perl install, 2 minutes to build tests, 1 minute to run 100 tests. Follow-up to 6648669 #22619 Follow-up to e669179 #22616 Follow-up to 58cb1e2 #22618 Follow-up to d000006 #22602 Closes #22617
|
This looks like a great solution for running a representative portion of tests.
I think a 1-based subset index is more the expected behaviour, though, since
the option mathematically divides the set of tests and the notation (slash)
reinforces that. 4/4 visually reads as complete, whereas 3/4 does not.
Likewise, 0/4 implies that nothing is going to be run.
|
To make it easier to run different subsets of the tests in separate invokes.