Skip to content

runtests: divide minimum required tests by subsets - #22619

Closed
vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:t-divmin
Closed

vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:t-divmin

Conversation

@vszakats

@vszakats vszakats commented Aug 18, 2026 •

Copy link
Copy Markdown
Member

When the minimum comes from CURL_TEST_MIN, to improve the default
behavior. It may still need manual adjustment in cases.

Follow-up to e669179 #22616
Follow-up to 58cb1e2 #22618
Cherry-picked from #22617

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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adjusts minimum-test enforcement when running test subsets.

Changes:

  • Divides the configured minimum test count by the number of subsets.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread tests/runtests.pl Resolved
@vszakats
vszakats marked this pull request as draft August 18, 2026 13:15
Move back defaulting post command-line processing, keep
accepting an explicit zero without applying env default.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Suppressed comments (1)

tests/runtests.pl:2763

  • This now overwrites -o mintotal=... whenever CURL_TEST_MIN is set. The documented -o contract allows internal variables to be overwritten (docs/runtests.md:196-200), and before this move the environment default was loaded before option parsing, so -o took precedence. Preserve an already assigned $mintotal here (or explicitly track the -o assignment) so this existing override continues to work.
if(!$mintotalany && $ENV{"CURL_TEST_MIN"}) {

@vszakats
vszakats marked this pull request as ready for review August 18, 2026 13:42
@vszakats vszakats closed this in 6648669 Aug 18, 2026
@vszakats
vszakats deleted the t-divmin branch August 18, 2026 13:45
vszakats added a commit that referenced this pull request Aug 18, 2026
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
vszakats added a commit that referenced this pull request Oct 1, 2026
To avoid random fallouts and micro-management of limits.

Fixing, seen in 'AM curl_global_init_mem debug valgrind 2':
```
TESTDONE: 899 tests out of 899 reported OK: 100%
TESTFAIL: number of tests run (899) was below the minimum of: 900
```
Ref: https://github.com/curl/curl/actions/runs/36842851539/job/110305788106?pr=23209

Also: drop manual workarounds from CI.

Follow-up to 6648669 #22619

Closes #23211
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants