Fix Bugbot gate contract and rollout docs#1
Merged
Conversation
Select the latest matching Bugbot check run before evaluating status, and derive job timeout from the reusable input with a buffer so script-level timeouts surface reliably. Made-with: Cursor
Synchronize naming and downstream check examples with the implemented gate contract, document workflow_run head_sha checkout requirements, and clarify conservative fork PR expectations for v1 rollout. Made-with: Cursor
Member
Author
|
@cursor review |
Member
Author
|
@BugBot run |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit cbd04ea. Configure here.
Pass workflow inputs through environment variables and validate required/typed values before use, avoiding direct interpolation into JavaScript literals. Made-with: Cursor
Document the env/process.env pattern to avoid direct input interpolation in script literals. Made-with: Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Bugbot Gateworkflow to evaluate the latest matching Bugbot check run for a SHA, avoiding stale rerun conclusionstimeout_minuteswith a buffer so script-level timeout failures are surfaced consistentlygate.mdand rollout handoff docs with the implemented contract (canonical names,workflow_run.head_shacheckout, downstream check names, and explicit conservative fork guidance)Test plan
.github/workflows/bugbot-gate.ymlto confirm latest-run polling and success-only completion behaviortimeout-minutes: ${{ inputs.timeout_minutes + 2 }})gate.mdanddocs/bugbot-gate-rollout.mdexamples to ensure naming and ruleset guidance correspond to emitted checksMade with Cursor
Note
Medium Risk
Changes CI gating behavior and required-check naming conventions, which can block PRs or waste minutes if misconfigured. Logic is straightforward but depends on correct check names/timeouts and GitHub Checks API behavior.
Overview
Introduces a shared reusable
Bugbot Gateworkflow (workflow_call) that polls GitHub Checks for the latest matching Bugbot check run on a provided SHA, failing on non-successconclusions or after a configurable timeout (with job timeout buffered viatimeout_minutes + 2).Adds rollout/hand-off documentation (
docs/bugbot-gate-rollout.mdandgate.md) that standardizes canonical check/workflow names, shows the thin per-repo caller pattern, and moves expensive CI behind aworkflow_runtrigger usinggithub.event.workflow_run.head_sha(with explicit fork-safety guidance).Reviewed by Cursor Bugbot for commit 3d386ab. Bugbot is set up for automated code reviews on this repo. Configure here.