Skip to content

fix: resolve race condition in cli_tests create_fixture()#54

Merged
Nebu1eto merged 1 commit into
mainfrom
claude/fix-cli-tests-UThKJ
Feb 13, 2026
Merged

fix: resolve race condition in cli_tests create_fixture()#54
Nebu1eto merged 1 commit into
mainfrom
claude/fix-cli-tests-UThKJ

Conversation

@Nebu1eto

Copy link
Copy Markdown
Owner

Multiple test threads calling create_fixture() concurrently could read a
partially-written xlsx file. One thread starts writing the fixture while
another sees path.exists() == true and returns the incomplete file,
causing "invalid Zip archive: Could not find EOCD" errors.

Wrap the initialization in std::sync::OnceLock so only one thread
creates the file and all others block until it is fully written.

https://claude.ai/code/session_01Bjb6FrfgvHaS4RUtMsmNQk

Multiple test threads calling create_fixture() concurrently could read a
partially-written xlsx file. One thread starts writing the fixture while
another sees path.exists() == true and returns the incomplete file,
causing "invalid Zip archive: Could not find EOCD" errors.

Wrap the initialization in std::sync::OnceLock so only one thread
creates the file and all others block until it is fully written.

https://claude.ai/code/session_01Bjb6FrfgvHaS4RUtMsmNQk
@Nebu1eto
Nebu1eto merged commit 1c317e2 into main Feb 13, 2026
7 checks passed
@Nebu1eto
Nebu1eto deleted the claude/fix-cli-tests-UThKJ branch February 13, 2026 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants