-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Bazel tests are flaky #968
Comments
Happened again today, but seems to be bazel consuming too many resources and the host killing the process? Not quite sure. |
My vote is that we activate the Bazel team's CI and deactivate the CircleCI based one. Step 1 in that process is here #983 |
Cool. So, in buildkite.com/bazel, test fail consistently. Like this one: https://buildkite.com/bazel/grpc-ecosystem-grpc-gateway/builds/104#8f57d1c1-3082-4a3d-8ad3-f1c35f0bf987
(from the uploaded test logs in buildkite artifacts) 👀 I guess it's either running test in parallel that shouldn't, or... something else is bound to 8080. Either way, making the tests use a random available port (i.e. binding to |
TIL. Sounds like unintentional parallelism to me. Unfortunately I understand nothing of how this works, so I defer to @achew22. |
Well, I'm sure our tests would be more robust if they could run in parallel. 😃 But yeah, that's the harder route for sure. |
FYI, if you add tags = ["exclusive"] for a Bazel test it will not be run in parallel with other tests, so you can use this for tests that bind to a fixed port. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Flipping stale bot giving me lip |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Sigh |
This aims to reduce/eliminate the CircleCI flakes described in grpc-ecosystem#968. It's based on the approach in https://github.com/angular/angular-cli/blob/master/.circleci/bazel.rc
This aims to reduce/eliminate the CircleCI flakes described in #968. It's based on the approach in https://github.com/angular/angular-cli/blob/master/.circleci/bazel.rc
This aims to reduce/eliminate the CircleCI flakes described in grpc-ecosystem#968. It's based on the approach in https://github.com/angular/angular-cli/blob/master/.circleci/bazel.rc
@johanbrandhorst still there tests which is uses ports (secondary) in test. listener.Close() is not synchronous and never guarantee that port is available for immediate use in other test. Using unique ports fixes the problem. |
This aims to reduce/eliminate the CircleCI flakes described in grpc-ecosystem#968. It's based on the approach in https://github.com/angular/angular-cli/blob/master/.circleci/bazel.rc
Thanks for pointing that out, it could be worth doing something about, but this issue is specifically around the bazel tests, which are failing independently of the other tests (which run the same tests) due to what looks like resource constraints a lot of the time. |
Might be fixed by caching the bazel artifacts and using explicit limits |
The bazel tests fail with connection refused errors every now and then. Seems we might need to wait a little longer for the test server to start.
The text was updated successfully, but these errors were encountered: