Repository navigation
Conversation
runGate passed the remaining budget, clamped to 0, as each step's timeout, and 0 means no limit, so later steps ran unbounded. Record them as not_run instead, and do not count them as misses. Fixes DiffCI#261 Signed-off-by: FredApps <[email protected]>
|
Cross-review (FredApps, head 4686b19). Not an approval. Checked
Fixed: nothing needed. Open (minor, not blocking)
|
The text summary printed FAIL for a step the time limit left unrun. It now prints it as not run; the gate's reason still says it failed. The totals leave unrun steps out, so the savings are marked estimated. Fixes DiffCI#261 Signed-off-by: FredApps <[email protected]>
|
Follow-up on the open points in the cross-review. Real, both fixed in 003b93b
The time-limit test in CI: all checks pass on 003b93b. |
|
Thanks. The new test The 200ms |
A step that would start with no time left was run with a 0ms timeout, which means no limit at all; it is now reported as not run and the gate fails. The step budget starts after the DiffCI analysis, so a slow analysis cannot leave the full gate unrun. Fixes #261. Signed-off-by: FredApps <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Merged to main as 600faa9 (squashed, authorship kept). One change on top: the step budget now starts after the DiffCI analysis ( |
Fixes #261
Changed behavior
runGateno longer passes a timeout of 0 (no limit) to steps that would start after the--timeout-msbudget is used up. Such checks, the test step, and the narrowed and selected reruns are recorded asnot_runwithout being started. The gate fails because those steps did not pass. Anot_runstep is not counted as a miss.Behavior is unchanged while time remains.
Validation
tests/client/gate.test.ts: the first step uses the whole 200ms limit. On main the remaining check and the tests still run. With this change only the first step runs, the rest arenot_run, the gate fails and there are no misses.node --import tsx --test tests/client/gate.test.ts: 9 passed.tsc --noEmit -p packages/diffci-cli: clean.Text summary (follow-up)
FAILfor anot_runstep. It now prints--with(not run), and the gate line still says the gate failed and names the step.summary.full_msanddiffci_msleave unrun steps out, sobasisis nowestimatedwhen any step did not run.The new test in
tests/client/gate.test.tschecks both. It fails without this change.