-
Notifications
You must be signed in to change notification settings - Fork 368
Add file locking integration tests for php-wasm/node #2908
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Conversation
|
I had Claude try to fill in the remaining outlined tests. I haven't reviewed or refined the results yet, but one of the failing tests was for a real reason:
|
Motivation for the change, related issues
We have automated tests for our file lock manager but no integration tests to demonstrate locking is working between
@php-wasm/nodeinstances. Let's fix that.Implementation details
This PR adds automated tests for file locking within
@php-wasm/node. It coordinates between two or more concurrent@php-wasminstances using a simple text file to gate the stages. For example, for php instances php1 and php2 testing exclusive locking:Maybe there is a better way to coordinate between instances, but so far, this seemed the most straightforward.
Once these tests are fleshed out, we can probably add nearly identical tests for Playground CLI, but run the scripts via HTTP requests.
Testing Instructions (or ideally a Blueprint)