-
Notifications
You must be signed in to change notification settings - Fork 20
fix: treat failing commit statuses and pending checks as preflight blockers #340
Copy link
Copy link
Open
Labels
P2Normal priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Description
Activity
Metadata
Metadata
Assignees
Labels
P2Normal priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Priority
None yet
External merge preflight can clear a pull request whose required commit status is red, or whose checks are still running.
From reading
scripts/preflight-external-pr-merge.mjsand fromnode --test --test-name-pattern "legacy status|pending checks" test/preflight-external-pr-merge.test.mjs. This was not reproduced against a live pull request.isFailingCheckcounted a rollup entry as failing only whenstatuswasCOMPLETEDorSUCCESSandconclusionwas a non-passing value. A GitHub status context usesstate(FAILURE,ERROR,PENDING) and has noconclusion. An in-progress CheckRun usesIN_PROGRESS. Both returned false.isAcceptableMergeStatethen acceptedUNSTABLE,BLOCKED, orBEHINDwhenmergeablewasMERGEABLE, and an empty blocker list continued intosecurity_status: "cleared".apply-result.mjsvalidateStatusChecksalready blocksFAILURE/ERRORstates and pending checks. The inventory copy ofisFailingCheckinscripts/import-github-pr-inventory.mjshad the same predicate.The fork branch treats only
SUCCESS, andCOMPLETEDwith a passing conclusion (SUCCESS,SKIPPED,NEUTRAL), as clean. Ignored checks stay ignored.Upstream pull requests are limited to collaborators (
pull_request_creation_policyiscollaborators_only), so the patch is on the fork:cab1ac31f4d60581b0b57a6e4f13555eb91026a5SebTardif:fix/failing-check-status