Skip to content

fix(ops): merge-when-green commitlint check times out on the main checkout #1564

Closed

Description

@JOY

Found by the PO on 2026-11-01 while merging PR #1563.

Problem

lintHeader in scripts/ops/merge-when-green.mjs runs node_modules/@commitlint/cli/cli.js with a 60 s timeout (LINT_TIMEOUT_MS). On the Windows main checkout the same CLI run on a valid header takes about 110 s of wall time with almost no CPU (user 0.08 s), so the check fails closed with "commitlint could not run or timed out" and every merge stops. The header itself passes (exit 0). PR #1563 was merged with gh pr merge --squash --match-head-commit after a manual commitlint pass.

Expected

  • Find what commitlint waits on (config loading of commitlint.config.ts, a network fetch, a file lock or antivirus scan) and remove the wait, or lint the header in-process with @commitlint/lint and the loaded config instead of spawning the CLI.
  • A valid header lints in a few seconds on this machine; the fail-closed behaviour stays.
  • Optional: an env override for the timeout.

Size: S

Activity

  1. added
    status:readyTask ready to be picked up by an Agent
    status:in-progressTask currently claimed and being worked on by an Agent
    agent:opsClaimed by Agent: Ops
    and removed
    status:readyTask ready to be picked up by an Agent
    on Nov 1, 2026
  2. self-assigned this
    on Nov 1, 2026
  3. added
    status:in-reviewTask completed and waiting for review / PR merge
    and removed
    status:in-progressTask currently claimed and being worked on by an Agent
    on Nov 1, 2026
  4. added
    status:doneTask completed and verified
    and removed
    status:in-reviewTask completed and waiting for review / PR merge
    on Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent:opsClaimed by Agent: Opsstatus:doneTask completed and verified

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions