Commit afe10d8
authored
Fix CI diagnostics for failed
### What does this PR do?
CI diagnostics for failed `bazel` builds on Windows didn't work as
expected (see #41844 for more details).
The change consists in:
- removing the pseudo-shebang that was preventing from resolving paths
relative to the source script's location,
- making sure the output is UTF-8 (`chcp 65001`) to echo non-ASCII
characters from dumped contents,
- using the right `bazel` startup flag (`--local_startup_timeout_secs`)
to limit the total retry loop to 30s,
while making the retries more frequent (`--connect_timeout_secs`) inside
the loop,
- no longer assuming `$CI_PROJECT_DIR` resolves to the workspace's root,
- payload: fixing/discovering base location for server logs which happen
to be under a subdirectory whose name is a hash (`jgkidtko` on my VM).
### Motivation
Really get actionable outputs for addressing `FATAL: couldn't connect to
server` errors.
### Describe how you validated your changes
Reproduced CI layout locally and fixed the script to make it provide
with available info on `bazel` build failures.
### Additional Notes
This is of course temporary until we figure out what's preventing the
`bazel` CLI from contacting the server.bazel builds on Windows (#42006)1 parent 4a24410 commit afe10d8
1 file changed
+15
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | | - | |
| 43 | + | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | | - | |
61 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
62 | 68 | | |
63 | 69 | | |
64 | 70 | | |
65 | 71 | | |
66 | 72 | | |
67 | | - | |
| 73 | + | |
68 | 74 | | |
69 | 75 | | |
70 | 76 | | |
| |||
0 commit comments