This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
Commit 96cf3d2
fix(scripts): make the three host-dependent
Three files in `scripts/__tests__` passed on Linux CI and failed on a stock
macOS host on byte-identical bytes. None of the four assertions was about the
tree; each read a host command or a host behaviour.
check-bash32-floor `--self-test` — the sharpest of the three, and fixed in the
GATE rather than in the test that runs it. Every probe, harness and `bash -n`
leg drives a bash-4+ construct through the host's own bash, and the host this
gate exists for is macOS: bash 3.2.57, where `coproc`/`|&`/`&>>` are syntax
errors, `mapfile` is not a builtin there is anything to disable, and `[[ -v ]]`
is a conditional operator `bash -n` also refuses. A floor gate whose battery
cannot run on the floor it declares is a gate asserting something it has never
demonstrated. The self-test now states that premise, detects it by CAPABILITY
(a bash-4 operator and a bash-4 builtin, never a platform name), and narrows
exactly those cases where the host cannot judge them — counted, printed per
case, and carried in the verdict line, because a narrowing is a real coverage
loss. The SCAN is untouched and is not narrowed: it is pure JS and judges a 3.2
host exactly as it judges CI.
check-control-bytes — `expect(declined.stdout).toBe('')` asserted one userland's
way of reporting a refusal rather than the refusal. GNU grep >= 3.5 writes
`grep: <f>: binary file matches` to stderr and leaves stdout empty; BSD grep
writes `Binary file <f> matches` to stdout. Both refuse and both print no line
of the file, which is the search outage the case is about, so the assertion is
now written against matching lines. A shim first on PATH pins the BSD reading
here on Linux.
ensure-chromium-ready.sh — a bare `timeout` is GNU coreutils, and a stock macOS
host has neither it nor Homebrew's `gtimeout`. The bound did not merely go
missing there: the call failed at 127 before `install-deps` ran, so the recovery
path could not recover. `run_bounded` resolves `timeout`, then `gtimeout`, then
bounds the call from bash itself (bash 3.2 clean, as this repo's floor requires)
and reports the same 124 either way. Two cases run under a PATH where both
binaries are genuinely absent, with a control that proves they are.
⛔ Nothing is skipped, disabled or quarantined, and no assertion is weakened to
accommodate a host: the GNU paths are still measured by the same cases on the
same run.
Claude-Session: https://claude.ai/code/session_01FhBNJcLRZLe8M87VcUgpKr
Co-authored-by: Claude <noreply@anthropic.com>scripts/__tests__ files run on a stock macOS host (#8511)1 parent b8b0ac1 commit 96cf3d2
4 files changed
Lines changed: 363 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
310 | | - | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
311 | 316 | | |
312 | 317 | | |
313 | 318 | | |
| |||
356 | 361 | | |
357 | 362 | | |
358 | 363 | | |
359 | | - | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
360 | 373 | | |
361 | 374 | | |
362 | 375 | | |
| |||
375 | 388 | | |
376 | 389 | | |
377 | 390 | | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
378 | 443 | | |
379 | 444 | | |
380 | 445 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
66 | 91 | | |
67 | 92 | | |
68 | 93 | | |
| |||
137 | 162 | | |
138 | 163 | | |
139 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
140 | 240 | | |
141 | 241 | | |
142 | 242 | | |
| |||
0 commit comments