Skip to content

verify: a gate check the time limit left no room for is skipped and the verdict passes #259

Closed

Description

@FredApps

What went wrong?

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.

DiffCI version

main at 40aa308

Command you ran

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:

diffci verify --changed --timeout-ms 0 --json
diffci verify --changed --timeout-ms 600000 --json

Environment

Linux, Node 24, npm.

Output

With --timeout-ms 0:

"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

  1. added a commit that references this issue on Nov 17, 2026
    977110d
  2. added a commit that references this issue on Nov 18, 2026
    ca294d2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions