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
Allow concurrency (e.g. multiple integration tests at once) out-of-box #231
Comments
Example Usage: Imagine the CI/build environment sets PIPELINE_ID to something like GIT_BRANCH-BUILD_NUMBER, e.g. master-88. We can use this to prefix our compose project name and support concurrent builds via:
|
Hello, thank you for suggesting this improvement! Actually, I'm not sure if I fully understand your use-case. Why is it not please just |
Thanks Augi and yes -- a great question. The main reason is I wanted to maintain the nested configuration name without having to repeat it. So given the following configuraton;
our project name automatically will end in " the second reason is to allow us to use something other than the MD5 if we prefer. It also restores the functionality of using compose defaults when setting projectName = null make sense? |
Btw. if you understand it correctly - you are executing the same project (from exactly the same file-system location) more times in parallel, right? This means that you have project name conflict, right? Speaking about preserving the previous naming by setting I could prepare another PR that would solve your issue in proper (~backward compatible) way - would it be OK for you? |
Yes we are executing concurrently from the same pseudo FS location. FWIW I Imagine whoever has set |
Thanks for the awesome plugin!
I'm using it in our CI build process, and have to manually set the projectName to ensure it's unique to support concurrent builds.
It would be convenient to support concurrency out of box by allowing us to provide a prefix to be used when the compose project name is generated versus relying on the MD5 sum of the project directory as a prefix. It also gives us something more friendly to see and debug when using
docker ps
and such.The text was updated successfully, but these errors were encountered: