Skip to content

heal(verify): registry-declared gate deadlines — pytest gates outlive the 300s wave default - #1671

Merged
4444J99 merged 1 commit into
mainfrom
heal/verify-gate-timeout-registry
Jul 30, 2026
Merged

heal(verify): registry-declared gate deadlines — pytest gates outlive the 300s wave default#1671
4444J99 merged 1 commit into
mainfrom
heal/verify-gate-timeout-registry

Conversation

@4444J99

@4444J99 4444J99 commented Jul 30, 2026

Copy link
Copy Markdown
Member

Regression heal for #1666's parallel runner: the flat 300s per-gate deadline kills pytest-cli (1,200+ tests) mid-run — two merge groups and one PR head died on gate-command-timeout within the hour (runs 30564023252, 30564647125, 30565567887), making every cli-touching PR unmergeable (first victim: #1670).

  • verify.py: a gate row may declare timeout_seconds; it can only EXTEND the wave default, never shrink it.
  • gates.yaml: pytest-cli: 1500 · pytest-api: 900 — one registry entry per fact, per the gate-estate law.

Gates: syntax ok · check-gates OK (79 gates) · verify-parallel scheduling fixtures pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VHjMkFUZJ1pK21oyv1ropN

… the 300s wave default

PR #1666's parallel runner capped every gate at 300s; the 1,200-test pytest-cli
suite cannot finish in five minutes, so every cli-touching PR became unmergeable
(two merge groups + one PR head died on gate-command-timeout within the hour).
A gate row may now declare timeout_seconds (GATES registry — one entry per fact);
the row can only EXTEND the wave default, never shrink it. pytest-cli: 1500s,
pytest-api: 900s.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VHjMkFUZJ1pK21oyv1ropN
@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@github-actions

Copy link
Copy Markdown

Multi-agent review roll call
@codex review

(CodeRabbit and Claude review automatically. Reviewers: post substantive findings only. Authors/agents: address every thread, push fixes to this branch, reply and resolve, then re-request review.)

@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@4444J99, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 16 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 4158450b-1d51-4e34-8fdd-bc4e75e4337d

📥 Commits

Reviewing files that changed from the base of the PR and between 25947a4 and aeaedfc.

📒 Files selected for processing (2)
  • institutio/governance/gates.yaml
  • scripts/verify.py

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create a Codex account and connect to github.

@4444J99
4444J99 added this pull request to the merge queue Jul 30, 2026
Merged via the queue into main with commit 875f8af Jul 30, 2026
14 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: aeaedfcdcc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/verify.py
Comment on lines +526 to +527
row_timeout = (gates[gate_id] or {}).get("timeout_seconds")
gate_deadline = max(timeout_seconds, float(row_timeout)) if row_timeout else timeout_seconds

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Validate registry timeout overrides as finite bounded numbers

Validate timeout_seconds in scripts/check-gates.py before consuming it here. The registry schema checker currently accepts this new field without checking its type or range, so a future value such as a string crashes the wave before producing a gate receipt, while YAML .inf creates an unbounded process deadline. That defeats the repository requirement that every gate have a finite deadline; require a positive finite number within an explicit ceiling.

AGENTS.md reference: AGENTS.md:L139-L143

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant