Repository navigation
Commit 6e8b8ef
authored
Build covdata once before parallel coverage test runs (#4427)
Race Detection shard 3 failed with `go tool covdata: fork/exec
.../covdata: text file busy` and exit code 123, with no test failure.
With `-coverprofile`, the go command runs `go tool covdata` as a
separate process for each package, several at a time. The toolchain
builds covdata on demand into the build cache, and the runners start
with a cold cache (`cache: false`). So one process can try to exec the
binary while another is still writing it.
The race shards and the sei-db race job now run `go tool -n covdata`
once before testing. That builds covdata into the cache and prints its
path, so every later `go tool covdata` reuses the finished binary.
Flaked in:
https://github.com/sei-protocol/sei-chain/actions/runs/36898544519/job/1104916011821 parent 906f2a5 commit 6e8b8ef
2 files changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
| |||
0 commit comments