Skip to content

Run the short stress jobs nightly, separate them from long tests - #3919

Merged
Rowlando13 merged 1 commit into
pallets:stablefrom
kdeldycke:nightly-stress-env
Nov 15, 2026
Merged

Rowlando13 merged 1 commit into
pallets:stablefrom
kdeldycke:nightly-stress-env

Conversation

@kdeldycke

@kdeldycke kdeldycke commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

I just realized that we do not have any stress tests running regularly. We skipped them because they were too long.

To get the best of both worlds, this PR:

  • Separate the long stress tests from the short ones
  • Activate nightly stress tests

This should increase our chances to catch funky regressions.

This PR targets stable so we benefits from them right away.

Running time

Here is a comparison between the current Click tests and the ones on my fork with this branch:

Job Before All stress tests Short stress tests only
Stress 3.15 (main) 5.85 s 30 min 18 s 25 s
Stress 3.15 (stable) 5.18 s 1 h 05 min 19 s
Stress 3.15t (main) 6.77 s 17 min 51 s 34 s
Stress 3.15t (stable) 7.69 s 14 min 47 s 21 s
Stress Mac 3.15t (main) 7.63 s 14 min 29 s 48 s
Stress Mac 3.15t (stable) 6.29 s 9 min 56 s 24 s
Sum of the 6 jobs 39 s 2 h 32 min 2 min 51 s

These results are the reasons I revised this PR in the first place to separate the long ones to the short ones.

@kdeldycke kdeldycke added the tests Click's own test suite and CI workflows label Nov 12, 2026
@kdeldycke kdeldycke added this to the 8.6.0 milestone Nov 12, 2026
@kdeldycke
kdeldycke marked this pull request as draft November 12, 2026 13:40
@kdeldycke

Copy link
Copy Markdown
Collaborator Author

Hmm, maybe not. The stress tests are still way too long. I had a secret hope that Python 3.15 could speed them up a bit but no. I still can separate fast stress tests and long ones, and runs the fast ones nightly and the slow ones weekly.

@kdeldycke
kdeldycke changed the base branch from main to stable November 14, 2026 11:35
@kdeldycke kdeldycke changed the title Run the stress tox env in the nightly Stress jobs Run the short stress jobs nightly, separate them from long tests Nov 14, 2026
@kdeldycke
kdeldycke marked this pull request as ready for review November 14, 2026 11:39
@kdeldycke

Copy link
Copy Markdown
Collaborator Author

I just changes my original proposal so it keeps running stress tests nightly, but separate them from long stress tests.

This PR is ready to be reviewed/merged.

@Rowlando13
Rowlando13 merged commit 25b998d into pallets:stable Nov 15, 2026
14 checks passed
@kdeldycke
kdeldycke deleted the nightly-stress-env branch November 16, 2026 10:16
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Dec 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

tests Click's own test suite and CI workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants