Repository navigation
Commit d014bf6
authored
test: make CLI goldens timezone- and CRLF-independent, gate scale test to Unix (#509)
Follow-up to #508. With release builds and `--no-fail-fast`, the Windows
run showed exactly two remaining failures out of the full suite.
## cli_simplify goldens
The fixture commits with `GIT_AUTHOR_DATE=@1700000000` and no offset, so
git stamps the machine's local timezone into each commit and the SHAs
change with it. The goldens were generated at +0530, so the test only
passed on machines in that zone. It failed on the UTC Windows runner and
on a US-timezone Mac. The fixture now pins `+0530`, which matches the
existing goldens without regenerating them. Golden files are also read
with CRLF normalized, since a Windows checkout converts them.
Verified locally: 15/15 pass with TZ unset (America/Los_Angeles), TZ=UTC
and TZ=America/New_York.
## arch_diff_scale
The test exists to hold arch-diff under 1 GB on a 50k-file repo, and it
reads peak memory with `ps`, which Windows does not have (the run
reported `peak 0 MB`). Generating the 50k files also took 465s on the
Windows filesystem. Gated to `#[cfg(unix)]`, matching how the
memory-budget test in arch_diff_review was gated.1 parent dc2cc4d commit d014bf6
3 files changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
123 | 126 | | |
124 | 127 | | |
125 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
| 392 | + | |
392 | 393 | | |
393 | | - | |
| 394 | + | |
| 395 | + | |
394 | 396 | | |
395 | 397 | | |
396 | 398 | | |
| |||
795 | 797 | | |
796 | 798 | | |
797 | 799 | | |
798 | | - | |
| 800 | + | |
799 | 801 | | |
800 | 802 | | |
801 | 803 | | |
| |||
0 commit comments