Skip to content

Serialize concurrent rewrites of schema test files - #28

Merged
lazyatom merged 2 commits into
mainfrom
parallel-safe-rewrite
Jul 22, 2026
Merged

lazyatom merged 2 commits into
mainfrom
parallel-safe-rewrite

Conversation

@GabrielNagy

Copy link
Copy Markdown
Contributor

Use an exclusive file lock for each read-modify-write cycle. This prevents parallel test processes from overwriting changes from another process.

Add a concurrency test for the locked rewrite helper.

Use an exclusive file lock for each read-modify-write cycle _and_ a
mutex to account for multi-threaded scenarios. This prevents parallel
test execution from overwriting changes from another process/thread.

Add a concurrency test for the locked rewrite helper.
@GabrielNagy
GabrielNagy force-pushed the parallel-safe-rewrite branch from bfe017c to 0fd55cc Compare July 22, 2026 14:49

@lazyatom lazyatom left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@lazyatom
lazyatom merged commit 831c51d into main Jul 22, 2026
3 checks passed
@GabrielNagy
GabrielNagy deleted the parallel-safe-rewrite branch July 22, 2026 15:12
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.

3 participants