Commit 24fbcbf
The outage skip I added this morning was too generous in three ways (#210)
An adversarial review found three paths by which a genuine report defect could take the skip I added
in #206. All three reproduce by reading the code, and all three are mine.
**Uncaught JS was swallowed.** `unreachable_external_host` looked only at `console_errors`, and the
callers skip *before* asserting `page_errors`. So a report throwing an uncaught exception was skipped
whenever its console errors happened to be outage-shaped — the single worst outcome for a guard whose
entire job is deciding whether CI may fail. A remote host refusing a connection cannot cause an
uncaught exception in page code, so one is now disqualifying on its own. The assertion also moved
*before* the skip: redundant now, but the ordering was the root cause and is what a future edit is
most likely to get wrong again.
**Any failing external URL counted.** The old version required only that *some* external request had
been attempted — and since all 19 reports contact UCSC, that was satisfied essentially always. One
unrelated refused request therefore disabled every verdict for that report: blank-canvas,
`_MIN_CANVASES`, convergence and the load budget. The URLs implicated in the failures must now all
resolve to a reference-sequence host.
**A wrong host committed inside a report looked like weather.** A typo'd or third-party host baked
into a report is a permanent defect for every reader, and it produced the same console error as an
outage — so it would have been skipped forever. Restricting the skip to `REFERENCE_SEQUENCE_HOSTS`
makes a report citing anything else fail.
My first attempt at that last fix was itself wrong, and this file's own new test caught it: I compared
with `host in url`, which also matches `hgdownload.soe.ucsc.edu.example.net` — letting a hijacked
domain inherit the trusted host's exemption. Now an exact netloc comparison via `urlparse`.
One case stays genuinely undecidable and is documented rather than papered over: a *correct* reference
URL that is permanently dead is indistinguishable from a transient outage in a single render. It
skips, and the docstring says where to look if UCSC ever retires that path.
5 new tests, one per hole plus the message accuracy and the case the skip exists for. Browser suite
46 passed with UCSC reachable; fast suite 2,013 passed / 30 skipped.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent c6c86ef commit 24fbcbf
3 files changed
Lines changed: 133 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
145 | 162 | | |
146 | 163 | | |
147 | 164 | | |
148 | 165 | | |
149 | 166 | | |
150 | | - | |
151 | | - | |
| 167 | + | |
| 168 | + | |
152 | 169 | | |
153 | 170 | | |
154 | 171 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
160 | 194 | | |
161 | 195 | | |
162 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
163 | 202 | | |
164 | 203 | | |
165 | 204 | | |
166 | 205 | | |
167 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
168 | 218 | | |
169 | | - | |
170 | | - | |
171 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
172 | 222 | | |
173 | 223 | | |
174 | 224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
132 | 138 | | |
133 | 139 | | |
134 | 140 | | |
135 | | - | |
136 | | - | |
137 | 141 | | |
138 | 142 | | |
139 | 143 | | |
| |||
0 commit comments