Commit cf2a748
fix(test): fix flaky ctrl-c e2e test on macOS Rosetta CI (#308)
## Summary
- Remove `println!()` after `mark_milestone` in `exit-on-ctrlc` — the
`\n` was flaky on macOS Rosetta CI (sometimes lost in the PTY, causing
snapshot mismatch)
- Remove labeled mode ctrl-c test (milestones can't flush through the
labeled writer's line buffer without a `\n`)
- Use `OnceLock` to wait for ctrl-c on the main thread instead of
`std::process::exit(0)` in the signal handler
Failed job:
https://github.com/voidzero-dev/vite-task/actions/runs/23702188288/job/69047978201
## Test plan
- [x] All e2e snapshot tests pass on macOS (native + Rosetta)
- [x] ctrl-c tests pass on Windows VM and CI
- [x] CI green on all platforms
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c5aa545 commit cf2a748
File tree
5 files changed
+12
-40
lines changed- crates/vite_task_bin
- src/vtt
- tests/e2e_snapshots/fixtures/ctrl-c
- snapshots
5 files changed
+12
-40
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | 40 | | |
40 | | - | |
41 | | - | |
42 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
43 | 44 | | |
Lines changed: 0 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | 16 | | |
31 | 17 | | |
32 | 18 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
0 commit comments