-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
Build console with make bundle #6031
Conversation
@chuckwagoncomputing do we expect this to be happy on Windows? |
shall we disable parallel gradle? can you elaborate on the problem statement what is interfering with what how and when? |
When you try to run a Gradle task when another one is already running, they fail in all sorts of ways. Making each Gradle worker do its work sequentially wouldn't solve the problem because you would still have multiple Gradle workers running at the same time. I have solved this by using flock to make sure only one is running at any time. |
@chuckwagoncomputing please ELI5 for me. Who is invoking multiple gradle instances in parallel? |
If you pass the |
I am concerned about long term maintainability of this complex bespoke solution At least it should be documented as a code comment right next to magic Ideally we need a much more official way of doing same. Not sure of " --no-daemon" is relevant but hopefully gradle has something official remedy for that? random https://discuss.gradle.org/t/using-gradle-build-cache-in-parallel-ci-cd-pipeline-runs/44614 |
The official guidance is "please for the love of god don't call |
@chuckwagoncomputing FYI pick 2e6f218 |
I expect it to work with Cygwin or WSL, if that's what you mean.
@mck1117 Do you have a source, or can you explain why not? |
flock
waits for a lock on a file; once it's unlocked, it locks it and holds the lock until the command is completed. This is necessary because parallel Gradle builds interfere with each other.Green custom: https://github.com/chuckwagoncomputing/fw-custom-example/actions/runs/8020089442