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 — Bad attempt: Deprecate `isolated_filesystem` and document its limits by kdeldycke · Pull Request #3701 · pallets/click

Conversation

@kdeldycke

@kdeldycke kdeldycke commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

This is an attempt to deprecate isolated_filesystem from the CliRunner. It has been discussed in #3501.

In addition to the deprecation, I added some explicit documentation about thread-safety as discussed in #3501. I used our own usage of pytest-xdist as a good example to follow.

All occurrences of isolated_filesystem in our own test suite have been removed and we are now relying on Pytest's tmp_path.

I also inaugurated the docs/upgrade-guides.md section introduced a while ago by @Rowlando13 .

This PR closes #3700.

Sorry, something went wrong.

Uh oh!

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

All reactions
@kdeldycke
Deprecate isolated_filesystem and document its limits
fbdd434
Fix #3700
Refs #3501
@kdeldycke kdeldycke added this to the 8.5.0 milestone Jul 17, 2026
@kdeldycke kdeldycke added test runner CliRunner and Click's test utilities feature docs Updates to documentation, readme, docstrings, typos labels Jul 17, 2026
@kdeldycke kdeldycke linked an issue Jul 17, 2026 that may be closed by this pull request
isolated_filesystem() is not thread safe #3501
Closed
@kdeldycke
kdeldycke marked this pull request as draft July 17, 2026 20:49
@kdeldycke

kdeldycke commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator Author

Ouch. I fucked up. This PR has been pushed to stable and not my own fork... 😖 Let me fix it...

All reactions

Sorry, something went wrong.

Uh oh!

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

@kdeldycke

kdeldycke commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator Author

OK, I cannot revert back stable to its initial state as there is a protection rule on the branch to prevent forced pushed:

$ git push upstream 9ab346f6b57f2c99388b4e9db58a0961bc3027c8:refs/heads/stable --force-with-lease=refs/heads/stable:fbdd434028fe07ecf35084c945b43b938dfd639f
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
remote: error: GH013: Repository rule violations found for refs/heads/stable.
remote: Review all repository rules at https://github.com/pallets/click/rules?ref=refs%2Fheads%2Fstable
remote: 
remote: - Cannot force-push to this branch
remote: 
To github.com:pallets/click.git
 ! [remote rejected]   9ab346f6b57f2c99388b4e9db58a0961bc3027c8 -> stable (push declined due to repository rule violations)
error: failed to push some refs to 'github.com:pallets/click.git'

@davidism should I just fast forward to sync main and stable? Or just revert the 50+ commits in stable?

All reactions

Sorry, something went wrong.

Uh oh!

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

@kdeldycke
kdeldycke requested review from Rowlando13 and davidism and removed request for Rowlando13 July 17, 2026 20:58
@kdeldycke

kdeldycke commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator Author

As for the root cause, as I was explaining in #3700 (comment) , I attempted to delete isolated_filesystem a while ago when we started discussing it, and did my experimentation locally, on a branch from stable. Then I reused a cleanup that branch, but it was tied to the upstream stable. I did not realized this when I pushed.

All reactions

Sorry, something went wrong.

Uh oh!

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

@davidism

davidism commented Jul 17, 2026

Copy link
Copy Markdown
Member

It looks like you made one commit, where are the 50 you're referring to? Push a revert commit, then open a PR from a separate branch.

All reactions

Sorry, something went wrong.

Uh oh!

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

@kdeldycke

kdeldycke commented Jul 17, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Collaborator Author

It looks like you made one commit, where are the 50 you're referring to? Push a revert commit, then open a PR from a separate branch.

Yes, there is only one commit difference between stable and main. But stable was supposed to be stuck further away as we moved our focus to preparing 8.5.0. So we got a free sync of main to stable because of my mistake. But that's not the first time I do it and not the first time @Rowlando13 is also doing it! 😅

Ok so I'll just revert the last one and keep the free main to stable sync.

All reactions

Sorry, something went wrong.

Uh oh!

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

@kdeldycke
Revert "Deprecate isolated_filesystem and document its limits"
8ee83dd
This reverts commit fbdd434.
@kdeldycke

kdeldycke commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator Author

Just reverted commit fbdd434 from stable in 8ee83dd

All reactions

Sorry, something went wrong.

Uh oh!

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

@kdeldycke kdeldycke closed this Jul 17, 2026
@kdeldycke kdeldycke changed the title Deprecate isolated_filesystem and document its limits Bad attempt: Deprecate isolated_filesystem and document its limits Jul 17, 2026
@kdeldycke kdeldycke removed a link to an issue Jul 17, 2026
isolated_filesystem() is not thread safe #3501
Closed
@kdeldycke

kdeldycke commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator Author

OK just fixed it. New PR is at: #3704

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@davidism davidism Awaiting requested review from davidism
@Rowlando13 Rowlando13 Awaiting requested review from Rowlando13

Uh oh!

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

Assignees

No one assigned

Labels

docs Updates to documentation, readme, docstrings, typos test runner CliRunner and Click's test utilities feature

Projects

None yet

Milestone

8.5.0

Development

Successfully merging this pull request may close these issues.

Deprecate isolated_filesystem()

Uh oh!

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

2 participants

@kdeldycke @davidism
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.