Skip to content

runtests: add with/without-server test feature tags - #23492

Closed
vszakats wants to merge 5 commits into
curl:masterfrom
vszakats:t-limit-retries-to-networked-tests
Closed

vszakats wants to merge 5 commits into
curl:masterfrom
vszakats:t-limit-retries-to-networked-tests

Conversation

@vszakats

@vszakats vszakats commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Automatically tag each test with "needs-servers"/"does-not-need-servers"
tags based on whether their servers section has items. Then make
runtests advertise supporting both, to continue running them all by
default. This in turn allows to manually exclude tests based on this
property, e.g. to run only standalone tests that do not need a server,
by passing !feat:with-server.

Also:

  • use in AppVeyor CI. It bumps the 80-test jobs to ~240.
    Taking 20-40 seconds (up from ~15) per job.
    Existing rule applies: if too annoying, slows down cycles, I tune it
    down. The option remains useful regardless, I think.
  • runtests: omit retrieving the test feature list twice via getpart().
    It offsets the new getpart() call that was necessary to implement
    this feature.

Follow-up to 18c48e0 #23306


  • see how the perform or if they perform at all in AppVeyor CI.
    Takes more time of course, perhaps still fine.
  • restrict the --retry= option to with-server tests. For
    standalone tests, a retry should not work as a remedy.
    It's also mostly pointless, reduces performance and takes
    away retry slots from tests that may need it.
    make the logic: retry if with-server or flaky or timing-dependent.
    Perhaps in a separate PR. → runtests: apply --retry= only to tests that may benefit from it #23496
  • test 1592 is a standalone test that's timing-dependent.
    aha, relies on the envs DNS server. So that's a thing.

@vszakats vszakats added the tests label Oct 19, 2026
@github-actions github-actions Bot added the CI Continuous Integration label Oct 19, 2026
@vszakats vszakats closed this in d1ffc4d Oct 19, 2026
@vszakats
vszakats deleted the t-limit-retries-to-networked-tests branch October 19, 2026 16:36
Comment thread docs/runtests.md
`!feat:<feature>`, like `!feat:proxy`, to disable tests which depend on that
feature.

With special keywords `!feat:with-server` and `!fear:without-server` you can

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Typo: fear

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.

Thanks, will fix!

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.

→ eb2b201

vszakats added a commit that referenced this pull request Oct 19, 2026
Reported-by: Dan Fandrich
Bug: #23492 (comment)
Follow-up to d1ffc4d #23492
vszakats added a commit to vszakats/curl that referenced this pull request Oct 21, 2026
…om it

Before this patch `--retry=` applied to all tests. Certain tests though,
such as standalone ones or unit tests, are meant to be deterministic: a
retry should not (and does not) work as a remedy. A retry mostly likely
just fails repeatedly, taking away retry slots from tests may actually
benefit from it. It also makes the log busy with useless duplicate test
results.

Refine the option to only apply to tests that use a test server, are
tagged `timing-dependent`, `flaky` or `may-retry`.

Follow-up to d1ffc4d curl#23492
Follow-up to 3f297f1 curl#17091
vszakats added a commit that referenced this pull request Oct 21, 2026
Before this patch `--retry=` applied to all tests. Certain tests
though,. such as standalone ones or unit tests, are meant to be
deterministic: a retry should not work as a remedy. A retry most likely
fails repeatedly, taking time and retry slots away from tests may
actually benefit from it. It also makes the log busy with useless
duplicate test results.

Refine the option to only apply to tests that use a test server, or has
any of the features `timing-dependent`, `flaky`, `may-retry` or
`may-retry-on-valgrind`. The latter allows retries in valgrind runs
only.

Caveat: This update may uncover tests that were not supposed to be
flaky, but this was masked by retries.

Also:
- test3300: add feature `may-retry-on-valgrind`. It's documented and
  seen flaky failing there.
  https://github.com/curl/curl/actions/runs/39312273981/job/118264659474?pr=23496#step:45:1964
  https://github.com/curl/curl/actions/runs/39248893874/job/118047513598

Follow-up to d1ffc4d #23492
Follow-up to 3f297f1 #17091

Closes #23496
vszakats added a commit to vszakats/curl that referenced this pull request Oct 21, 2026
Make them 'keywords' instead of 'features'.

Follow-up to 8887d14 curl#23496
Follow-up to d1ffc4d curl#23492
vszakats added a commit that referenced this pull request Oct 21, 2026
Make them 'keywords' instead of 'features'.

Follow-up to 8887d14 #23496
Follow-up to d1ffc4d #23492

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

Labels

CI Continuous Integration tests

Development

Successfully merging this pull request may close these issues.

2 participants