Skip to content

Workaround for expanded lock on Windows #189

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

Merged
merged 4 commits into from
Jul 21, 2023

Conversation

fzhinkin
Copy link
Collaborator

After upgrading the Gradle, jobs are intermittently failing on Windows with the following error:

Execution failed for task ':kotlinx-io-benchmarks:clean'. org.gradle.api.UncheckedIOException: java.io.IOException: Unable to delete directory 'Z:\BuildAgent\work\22e3a7db6b861ba7\benchmarks\build'
  Failed to delete some children. This might happen because a process has files open or has its working directory set in the target directory.
  - Z:\BuildAgent\work\22e3a7db6b861ba7\benchmarks\build\tmp\.cache\expanded\expanded.lock
  - Z:\BuildAgent\work\22e3a7db6b861ba7\benchmarks\build\tmp\.cache\expanded
  - Z:\BuildAgent\work\22e3a7db6b861ba7\benchmarks\build\tmp\.cache
  - Z:\BuildAgent\work\22e3a7db6b861ba7\benchmarks\build\tmp

Picked the workaround from kotlinx-datetime: https://github.com/Kotlin/kotlinx-datetime/blob/94bcc6ff1733c22ef4f937a25a276d3fd728a301/core/build.gradle.kts#L297C19-L297C19

Picked the workaround from kotlinx-datetime
@fzhinkin fzhinkin added the infra label Jul 20, 2023
@fzhinkin fzhinkin force-pushed the workaround-for-expanded-lock-on-windows branch from d46315d to bceba05 Compare July 20, 2023 13:27
@fzhinkin fzhinkin requested a review from shanshin July 20, 2023 13:27
@fzhinkin fzhinkin marked this pull request as ready for review July 20, 2023 13:27
@shanshin shanshin self-requested a review July 21, 2023 09:20
@fzhinkin fzhinkin merged commit cbeb279 into develop Jul 21, 2023
@fzhinkin fzhinkin deleted the workaround-for-expanded-lock-on-windows branch July 21, 2023 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants