Skip to content

Add support for running in parallel for distinct UIDs#1276

Merged
cristianrgreco merged 1 commit intotestcontainers:mainfrom
seanwu1105:main
Apr 8, 2026
Merged

Add support for running in parallel for distinct UIDs#1276
cristianrgreco merged 1 commit intotestcontainers:mainfrom
seanwu1105:main

Conversation

@seanwu1105
Copy link
Copy Markdown
Contributor

Currently, the lock file is created in /tmp with a constant name testcontainer-node.lock. This makes it global per machine. This PR change this to make the lock file per user by including the name with user ID.

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 21, 2026

Deploy Preview for testcontainers-node ready!

Name Link
🔨 Latest commit 229639f
🔍 Latest deploy log https://app.netlify.com/projects/testcontainers-node/deploys/69bf2804e883b3000833c23a
😎 Deploy Preview https://deploy-preview-1276--testcontainers-node.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@cristianrgreco cristianrgreco added enhancement New feature or request minor Backward compatible functionality labels Mar 24, 2026
@cristianrgreco
Copy link
Copy Markdown
Collaborator

@seanwu1105 I'm sure if I re-ran the failing test it'd pass, but I have not seen this one ever flake. I assume this change has introduced some race condition, which at least affects those tests. Could you have a look?

@seanwu1105
Copy link
Copy Markdown
Contributor Author

Hey @cristianrgreco, I could not figure out the root cause for that issue in CI, unfortunately. The lock file change itself is unlikely to be the root cause. In CI, all processes run as the same user so the lock file with the UID still provides the exact same cross-process synchronization as the old one.

If you believe the PR is dangerous and could still be the cause potentially, feel free to close it.

@cristianrgreco
Copy link
Copy Markdown
Collaborator

I've had a look and agree the test flaking isn't related to this change, will merge this shortly.

@cristianrgreco cristianrgreco changed the title Create lock file per user Add support for running in parallel for distinct UIDs Apr 8, 2026
@cristianrgreco cristianrgreco merged commit 74b2453 into testcontainers:main Apr 8, 2026
688 of 689 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request minor Backward compatible functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants