Commit af5499f
committed
Stop the metrics check failing on its own pipe, and retry flaky pulls
Two ways CI went red on amd64 without the commit being at fault.
The metrics assertions piped a Prometheus scrape into `grep -q`, which exits
the instant it matches and never drains the rest. Once the scrape outgrows the
pipe buffer that leaves `echo` writing into a closed pipe, and pipefail reports
the EPIPE as the pipeline's status — so the check failed with the series
sitting right there in the payload. Measured on Linux: clean at 82 KB, fails
every time at 123 KB, and a scrape grows with every route and bucket, so it
only bites once a suite is busy enough to cross the line. Both checks now use
herestrings, which take the pipe out of it at any size.
Only these two moved. The same `echo … | grep -q` shape appears throughout both
suites, but every other payload measures well under a kilobyte — /api/sites is
316 bytes, the apex homepage 989 — so none are near the threshold, and a
mechanical sweep is a good way to break a working suite for no gain.
The other failure was Docker Hub answering 502 mid-`make up-auth`. Nothing to
fix in the tree, but the stack pulls six images from Docker Hub anonymously,
from a runner IP shared with every other public repo, so 429s and 502s will
keep arriving now that this one is public. Both bring-ups retry three times
with backoff, tearing down volumes in between. The retry wraps only the pull
and start, never the suite, so a stack that is genuinely broken still fails
three times and reports it.
Worth knowing if this recurs: authenticating to Docker Hub raises the pull
limit far more than retrying works around it, but that needs credentials in
repo secrets, so it is left as a deliberate choice rather than assumed.1 parent 931d516 commit af5499f
2 files changed
Lines changed: 35 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
87 | 99 | | |
88 | 100 | | |
89 | 101 | | |
| |||
112 | 124 | | |
113 | 125 | | |
114 | 126 | | |
115 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
116 | 138 | | |
117 | 139 | | |
118 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
179 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
180 | 189 | | |
181 | 190 | | |
182 | 191 | | |
| |||
0 commit comments