GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Activate nightly workflow for random and stress tests by kdeldycke · Pull Request #3500 · pallets/click

Conversation

@kdeldycke

@kdeldycke kdeldycke commented May 22, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

In #3139 we added stress tests and in #3151 we added randomization and parallel tests.

We decided to not activate them by default in #3151 (comment) and rely on contributors diligence to run them by hand to catch regressions. In practice nobody does. I even often forget to run them on my own during my sessions, only focused on the task at hand.

I'd like to re-assess this decision in light of regressions that could have been caught if these test were active. See the following PRs:

  • fix I/O operation on closed file error with CliRunner and echo_via_pager #3482
    Regression introduced in 8.4.0, could have been caught by tests/test_stream_lifecycle.py.
  • Fix pager test flackiness and add stress tests for echo_via_pager #3499
    New stress test covering the root cause of fix: Skip flaky pager test on macOS with free-threaded Python 3.14t #3470.
  • fix: Skip flaky pager test on macOS with free-threaded Python 3.14t #3470
    The bug exists because CI doesn't run tests in parallel.
  • fix a race in click.testing.StreamMixer's finalization, seen in a multi-threaded context #2991
    The reason why stress test exist: I originally only hit the race about once in 10k tries, so this seems difficult to test systematically..
  • NamedTextIOWrapper: stop closing buffer #3139
    Fix the regression from fix a race in click.testing.StreamMixer's finalization, seen in a multi-threaded context #2991, where only with the introduction of stress test keeps from recurring.
  • Fix pager test leaks #3238
    The random test already caught a leak nobody noticed via the default suite.

Also why even support parallel tests if we don't exercice them regularly? (ref: #2899)

Currently these tests adds ~15 minutes run-time. If you find this too long and invasive, I propose a compromise and run them nightly. But my preference would be to run them as part of the standard CI to incentivize contributors. And reduce surprises and and follow-up fixes.

Given the reversal in policy this change imply, I'm aiming for the next 8.5.0 minor release. I'm opening this PR as a way to discuss the best strategy forward.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@kdeldycke
Activate nightly workflow for random and stress tests
aa5a8da
@kdeldycke kdeldycke added test runner CliRunner and Click's test utilities feature github_actions labels May 22, 2026
@kdeldycke kdeldycke added this to the 8.5.0 milestone May 22, 2026
@kdeldycke
kdeldycke marked this pull request as draft May 22, 2026 11:07
@kdeldycke
kdeldycke merged commit 5b1aba8 into pallets:main May 23, 2026
23 of 24 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@rickardvh rickardvh mentioned this pull request May 25, 2026
[Evaluation Epic]: Orchestrated long-horizon repo episodes with restart and agent switching rickardvh/agentic-workspace#1124
Closed
@Rowlando13

Rowlando13 commented May 27, 2026

Copy link
Copy Markdown
Member

@kdeldycke I agree with the nightly run.

kdeldycke reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@kdeldycke
kdeldycke deleted the activate-random-and-stress-tests branch May 27, 2026 07:48
@kdeldycke

kdeldycke commented May 27, 2026

Copy link
Copy Markdown
Collaborator Author

I think we were overly cautious just running these tests nightly as in the end they only take 5 minutes, not 15: https://github.com/pallets/click/actions/runs/26496766042/usage . To me the cost-benefit is excellent to trigger on every PR: a 5 minute wait is nothing in comparison to the effort and synchronization time required to fix leaky issues from non-core maintainers. But I will let that decision for later.

Thanks @Rowlando13 for the merge!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@kdeldycke kdeldycke mentioned this pull request Jun 4, 2026
Run nightly tests on both main and stable branches #3553
Merged
Rowlando13 pushed a commit that referenced this pull request Jun 4, 2026
@kdeldycke
Run nightly tests on both main and stable branches
5ec03bd
Follows up on #3500
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 27, 2026
@kdeldycke kdeldycke added tests Click's own test suite and CI workflows and removed github_actions labels Aug 8, 2026
@kdeldycke kdeldycke modified the milestones: 8.5.0, 8.4.2 Aug 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

test runner CliRunner and Click's test utilities feature tests Click's own test suite and CI workflows

Projects

None yet

Milestone

8.4.2

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@kdeldycke @Rowlando13
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.