You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dump JVM output when bazel fails on Windows (#41844)
### What does this PR do?
This is to diagnose
[recurring](https://gitlab.ddbuild.io/DataDog/datadog-agent/-/jobs/1166997067):
```
Starting local Bazel server (8.3.1) and connecting to it...
... still trying to connect to local Bazel server (45008) after 10 seconds ...
... still trying to connect to local Bazel server (45008) after 20 seconds ...
... still trying to connect to local Bazel server (45008) after 30 seconds ...
... still trying to connect to local Bazel server (45008) after 40 seconds ...
... still trying to connect to local Bazel server (45008) after 50 seconds ...
... still trying to connect to local Bazel server (45008) after 60 seconds ...
... still trying to connect to local Bazel server (45008) after 70 seconds ...
... still trying to connect to local Bazel server (45008) after 80 seconds ...
... still trying to connect to local Bazel server (45008) after 90 seconds ...
... still trying to connect to local Bazel server (45008) after 100 seconds ...
... still trying to connect to local Bazel server (45008) after 110 seconds ...
FATAL: couldn't connect to server (45008) after 120 seconds.
```
### Motivation
The change hopefully provides more actionable material when it happens,
see #incident-42947.
### Additional Notes
There's no need to wait for 2 minutes prior to bailing out, so
decreasing to 30 seconds will probably allow us to reproduce more
frequently.
Also, we'll print any running `bazel.exe` or `java.exe` before and after
the `bazel` command to know whether there should be additional cleanup
to consider adding.
0 commit comments