Skip to content
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

adding locking to prevent two parallel builds of the same installation directory #3009

Merged
merged 32 commits into from
Mar 30, 2020

Conversation

mboisson
Copy link
Contributor

@mboisson mboisson commented Sep 16, 2019

... with an option --wait-on-lock which will cause EB to wait until the lock file is removed, checking every minute for the presence of the lock file.

This implements a feature for #2952

… same installation directory, with an option --wait-on-lock which will cause EB to wait until the lock file is removed, checking every minute for the presence of the lock file.
easybuild/tools/options.py Outdated Show resolved Hide resolved
easybuild/framework/easyblock.py Outdated Show resolved Hide resolved
easybuild/framework/easyblock.py Outdated Show resolved Hide resolved
easybuild/framework/easyblock.py Outdated Show resolved Hide resolved
@mboisson
Copy link
Contributor Author

Mmmm, so I understand that this new code caused tests to fail, but I have trouble figuring out why... Is it because of additional output in the build output ?

@mboisson
Copy link
Contributor Author

Seeking guidance here @boegel and @akesandgren. I believe we want to add the mention of the lock file in the interactive output of EB, but it seems to make all sorts of tests fail because it is unexpected output. How do I fix that ?

@mboisson
Copy link
Contributor Author

I think I found it. I noticed I missed a parameter for print_msg, which (presumably) makes the output silent while in test mode. Submitted a new commit and testing with travis now.

@mboisson mboisson closed this Sep 16, 2019
@mboisson mboisson reopened this Sep 16, 2019
@easybuilders easybuilders deleted a comment from boegelbot Mar 9, 2020
@easybuilders easybuilders deleted a comment from boegelbot Mar 9, 2020
@boegel boegel added this to the 4.x milestone Mar 9, 2020
easybuild/framework/easyblock.py Outdated Show resolved Hide resolved
@easybuilders easybuilders deleted a comment from boegelbot Mar 10, 2020
@boegel boegel changed the title adding a locking feature that will prevent two parallel builds of the same installation directory adding locking to prevent two parallel builds of the same installation directory Mar 29, 2020
easybuild/framework/easyblock.py Outdated Show resolved Hide resolved
easybuild/framework/easyblock.py Outdated Show resolved Hide resolved
@easybuilders easybuilders deleted a comment from boegelbot Mar 30, 2020
@boegel boegel modified the milestones: 4.x, next release (4.2.0) Mar 30, 2020
sort lists before comparing them in test_toy_modaltsoftname
@easybuilders easybuilders deleted a comment from boegelbot Mar 30, 2020
@boegel boegel dismissed akesandgren’s stale review March 30, 2020 19:53

suggestions taken into account

@boegel boegel merged commit 2473b71 into easybuilders:develop Mar 30, 2020
@mboisson mboisson deleted the build_lock branch May 6, 2020 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants