Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi, we're having troubles with sometimes unreliable macOS sockets in our bazel monorepo, protoc-bridge version 0.9.8. We have about 3k scala proto targets, and every once in a week a socket problem causes a build to stuck with:
It's non-retryable, though deleting an empty bazel-out/darwin_arm64-fastbuild/bin/some_path/my_file_proto_scala_scalapb.srcjar and rebuilding w/o remote cache helps.
This bug is also causing other problems, such as:
and
but these could be fixed by a retry.
I've added a hack to get a free socket with more reliability by simply retrying new ServerSocket(0). Socket availability check is copied from socket stress test. This hack passes 100k iterations of stress test (actually even 3 retries would be sufficient) and helps our team with proto-on-mac problems.
Would you accept it as a temporary solution? These was not much action around mac problem for a half of a year and the problem is still visible to end users, although it's not as frequent as it was with named pipes.