Commit e51ad20
committed
Address carbolymer review on PR #1180
- Changelog (.changes/.../fix_haddock_links.yml): collapse the
description block scalar to a single line, removing the hard wraps
Herald renders verbatim (r3159565460).
- derive_name_candidates (scripts/fix-haddock-links.sh): cap at
two-token names. The previous loop emitted a single-token URL like
cardano.cardano.intersectmbo.org as its last candidate; if that
subdomain ever resolves (wildcard DNS, future deploy, catch-all),
probe_site silently accepts it and rewrites every cardano-* link to
the wrong site. Add an early break after the suffix strip so the
heuristic never emits a URL whose subdomain is a single bare token
(r3159784338).
- curl retries (scripts/fix-haddock-links.sh): every probe was a
single-shot attempt (5s connect, 10s max) with no retry. Worst case:
Phase 3 validation downgrades a perfectly valid rewritten URL into
an unclickable <span>, silently shipping a regression. Other failure
modes: probe_site falling through to a wrong candidate, or the CHaP
index fetch killing the whole build on a CDN hiccup. Add
--retry 3 --retry-delay 2 --retry-all-errors to all five curl sites
(r3159784102).
- Workflow assignee 422 (.github/workflows/github-page.yml): the
GitHub API rejects assignees that aren't repo collaborators with a
422. If an external contributor merges a PR that breaks the haddock-
links check on master, the rolling-issue workflow step would crash
there, leaving the issue or comment half-created. Wrap both
addAssignees calls in try/catch and remove assignees from the
issues.create payload, doing assignment as a separate best-effort
call so the issue always lands (r3159784547).1 parent 8637415 commit e51ad20
3 files changed
Lines changed: 36 additions & 23 deletions
File tree
- .changes
- .github/workflows
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
197 | 204 | | |
198 | 205 | | |
199 | 206 | | |
| |||
215 | 222 | | |
216 | 223 | | |
217 | 224 | | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
218 | 228 | | |
219 | 229 | | |
220 | 230 | | |
221 | 231 | | |
222 | 232 | | |
223 | 233 | | |
224 | | - | |
225 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
226 | 245 | | |
227 | 246 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
168 | 169 | | |
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
173 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
174 | 177 | | |
175 | 178 | | |
176 | 179 | | |
| |||
238 | 241 | | |
239 | 242 | | |
240 | 243 | | |
241 | | - | |
| 244 | + | |
| 245 | + | |
242 | 246 | | |
243 | 247 | | |
244 | 248 | | |
| |||
433 | 437 | | |
434 | 438 | | |
435 | 439 | | |
436 | | - | |
| 440 | + | |
437 | 441 | | |
438 | 442 | | |
439 | 443 | | |
| |||
502 | 506 | | |
503 | 507 | | |
504 | 508 | | |
505 | | - | |
| 509 | + | |
506 | 510 | | |
507 | 511 | | |
508 | 512 | | |
| |||
550 | 554 | | |
551 | 555 | | |
552 | 556 | | |
553 | | - | |
| 557 | + | |
554 | 558 | | |
555 | 559 | | |
556 | 560 | | |
| |||
0 commit comments