You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
verify: a gate check the time limit left no room for is skipped and the verdict passes #259
When the --timeout-ms budget is used up before a gate check starts, diffci verify reports passed even though the check never ran. The check is recorded as not_run, the tests then run with no time limit, and the reason says the check was skipped because the change does not affect it.
runChecks (packages/diffci-cli/src/client/gate-checks.ts, lines 113–145) marks every remaining check not_run when remaining <= 0 without setting failure, and returns outOfTime: true. executeWithPolicy in packages/diffci-cli/src/client/verify.ts never reads outOfTime: it runs the tests with timeoutMs: Math.max(options.timeoutMs - checkRun.wallMs, 0), and a timeout of 0 means no limit for spawnSync. checkSummary then counts the not_run check as "skipped ... the change does not affect".
The simplest trigger is --timeout-ms 0. The same path is reached whenever the checks (or a --baseline-on-failure rerun of a check that already fails at the base) use up the remaining budget.
A repository with "check": "npm run lint", "lint": "node -e \"process.exit(3)\"" and "test": "node --test", and an uncommitted change to a source file:
"verification": "passed",
"reason": "dependency impact; ran 0 gate check(s) first, skipped 1 the change does not affect",
"checks": [{ "id": "lint", "status": "not_run", ... }]
With --timeout-ms 600000:
"verification": "failed",
"reason": "gate check lint failed with exit code 3; tests were not run (npm run lint)"
What you expected
A gate check that did not run because the time limit ran out should not produce a passing verdict. Verification should stop before the tests and report that the check did not run within the time limit, as it does when a check times out.
Activity
fix(cli): stop verify when gate checks use the whole time limit
fix(cli): fail verify when the time limit leaves gate checks unrun (D…