tests: make UserConfig unit tests concurrency-safe with unique tempiles#11759
tests: make UserConfig unit tests concurrency-safe with unique tempiles#11759ulysses4ever wants to merge 6 commits intohaskell:masterfrom
Conversation
Rather than work around it in the test suite, let's fix |
|
FWIW I agree with Bodigrim. |
|
@Bodigrim done. There's also a new test that tries to concurrently create user configs. Let me know if it doesn't make sense, I can remove it. |
It does not make sense to me. |
|
@Bodigrim very well, the test is removed. The only potentially slippery spot I can think of is the bytestring-management business that had to be added for |
One can construct |
|
@ulysses4ever this seems to have fixed the problem with #11686. After a few runs, maybe the 4th, I got this error: |
AFAICT this is not a regression caused by this PR, but rather another facet of upgrade to |
I'd then stick to what's there currently. |
…iles (#26) tests: use unique temp files in UserConfig bracketTest Agent-Logs-Url: https://github.com/ulysses4ever/cabal/sessions/043e3696-3cda-43aa-aa50-e483ec531d13 Co-authored-by: ulysses4ever <6832600+ulysses4ever@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ulysses4ever <6832600+ulysses4ever@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ulysses4ever <6832600+ulysses4ever@users.noreply.github.com>
Fix #11686. Created with Copilot.
Template B: This PR does not modify behaviour or interface
E.g. the PR only touches documentation or tests, does refactorings, etc.
Include the following checklist in your PR: