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

Use process isolation for gradle workers #5068

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

nwagu
Copy link
Contributor

@nwagu nwagu commented Mar 11, 2024

Closes #4414

We found that the intermittent errors reported in the issue linked above happen when multiple generateDatabaseInterface tasks are run in parallel. Specifically, when reading intellij registry properties from a file, the input stream could be closed by another gradle worker running at the same time. This seems like a good use case for process isolation (https://docs.gradle.org/current/userguide/worker_api.html#creating_a_worker_daemon). Changing to process isolation solves the intermittent failures for our builds.

Copy link
Collaborator

@AlecKazakova AlecKazakova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome! thank you

@AlecKazakova AlecKazakova merged commit 9a889f5 into cashapp:master Mar 12, 2024
11 checks passed
hfhbd pushed a commit that referenced this pull request Apr 2, 2024
DVDAndroid added a commit to DVDAndroid/sqldelight that referenced this pull request Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flakey compilation issues resulting in java.lang.ExceptionInInitializerError
2 participants