Repository navigation
Commit 5f3240b
authored
test: pin the srt-macos probe PATH and scale the BYOK serial timeout budget (#397)
* test(sandbox): pin the probe PATH instead of inheriting the ambient one
The real sandbox-exec probes resolve their command through PATH, so
inheriting the caller's let any wrapper ahead of /bin decide what `rm`
means. On a machine that has run the agent, that is the recoverable-delete
shim MCode installs into agent shells: `rm` resolves to the shim, the shim
execs mavis-trash, the sandbox denies that trash move as a write outside
the policy under test, and a correct allow-probe exits 1. The suite then
reports a sandbox regression where the sandbox behaved correctly.
Pin all three probe environments to the system binaries the probes
actually use, matching the wrapper-argument test above them. This also
drops the unguarded `process.env.PATH` in wrapProfile, which had no
fallback and could hand a real sandbox spawn an undefined PATH.
Fixes #394.
* test(byok): scale the serial BYOK budget by platform
The first case is 30+ serial CLI spawns, each booting the whole runtime,
so its wall-clock cost tracks machine speed rather than the transport it
asserts. The flat 90s budget only held with roughly 1.5x headroom on an
idle machine, so a parallel build, a laptop under load, or a shared CI
runner turned a passing transport into a `testTimeoutFailure` that named a
product failure no assertion had actually observed.
Budget it the way smoke.test.mjs already budgets runtime startup: a base
allowance plus a Windows multiplier for slower process spawn. The test is
not slowed down by a larger ceiling; it only stops failing for reasons
unrelated to what it checks.
Fixes #395.1 parent 1e136bf commit 5f3240b
2 files changed
Lines changed: 23 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1487 | 1487 | | |
1488 | 1488 | | |
1489 | 1489 | | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
1490 | 1501 | | |
1491 | 1502 | | |
1492 | 1503 | | |
| |||
1520 | 1531 | | |
1521 | 1532 | | |
1522 | 1533 | | |
1523 | | - | |
| 1534 | + | |
1524 | 1535 | | |
1525 | 1536 | | |
1526 | 1537 | | |
| |||
1593 | 1604 | | |
1594 | 1605 | | |
1595 | 1606 | | |
1596 | | - | |
| 1607 | + | |
1597 | 1608 | | |
1598 | 1609 | | |
1599 | 1610 | | |
| |||
1712 | 1723 | | |
1713 | 1724 | | |
1714 | 1725 | | |
1715 | | - | |
| 1726 | + | |
1716 | 1727 | | |
1717 | 1728 | | |
1718 | 1729 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
25 | 33 | | |
26 | 34 | | |
27 | 35 | | |
28 | | - | |
| 36 | + | |
29 | 37 | | |
30 | 38 | | |
31 | 39 | | |
| |||
0 commit comments