Commit 40c29d1
committed
fix(gate-validator): deterministic tiebreaker for latest-gate sort
When two gate files land in the same millisecond (common on fast CI
filesystems), mtime-only sort is unstable and may pick the wrong
"latest" gate. Add filename localeCompare as a stable secondary sort
so latest-mode validation is reproducible.
Resolves CI flake on tests/gate-validator.test.js:164
"validates every gate when requested".1 parent 016d989 commit 40c29d1
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
0 commit comments