Commit c5bc86b
committed
test: make e2e tests hermetic and load-robust under parallel CTest
Three tests flaked or could collide under `ctest -j`:
- toolset_e2e_test: (1) used a FIXED shared temp root
($TMPDIR/agentty_toolset_e2e) while setting a global HOME and spawning
real subprocesses — every other test in the suite keys its sandbox on
getpid(); made this one match. (2) The process_poll checks raced fixed
wait_ms windows (500 ms for the first poll) against subprocess
scheduling latency; on a loaded box the child hadn't been scheduled to
emit its first line yet, cascading three failures. Replaced with a
poll-until-marker loop on a generous deadline so the assertions test
semantics (initial output, later output once, no replay), not timing.
- mcp_bridge_test / acp_integration_test: same fixed-shared-path
anti-pattern (agentty_mcp_e2e / agentty_acp_it) — made both PID-unique
and remove_all the root up front.
Full suite now 100% green across repeated -j12 runs (was intermittently
1-2 failures).1 parent 35da7ee commit c5bc86b
3 files changed
Lines changed: 41 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | | - | |
60 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
86 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
87 | 94 | | |
88 | 95 | | |
89 | 96 | | |
| |||
265 | 272 | | |
266 | 273 | | |
267 | 274 | | |
268 | | - | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
269 | 298 | | |
270 | | - | |
| 299 | + | |
271 | 300 | | |
272 | 301 | | |
273 | 302 | | |
| |||
0 commit comments