Skip to content

Scripts: the testing feed skips PRs whose checks failed before and pass now #3246

Done

Description

@thisguyStan

@raylitebull, the testing feed (testing-feed.yml → scripts/triage_pr.py build-feed) leaves out PRs whose current checks are all green when an earlier run of a check on the same head commit failed or was cancelled.

Cause

cmd_build_feed starts from a search with status:success (scripts/triage_pr.py, added in 954cd69). GitHub's status: qualifier counts every check run on the head commit, including runs that a later run of the same check superseded. A PR whose PR description check failed and passed again after the description was edited therefore stays status:failure in search, so it never reaches the script's own gate check. That check (extract_gate_statuses, the latest run per check name) would let it through, and GitHub's own statusCheckRollup reports SUCCESS for these commits.

Examples

PR head stale runs on the head commit latest runs
#2955 80e2ee45 PR description failure (21:37 UTC), triage cancelled (22:49 UTC) all success
#2070 b6b6ad5d 2× PR description failure (21:38 UTC), 2× triage cancelled all success

Both are open, not drafts, based on main, mergeable (CLEAN), have no duplicate / off-goal label and no merge-check comments, and are missing from queue.json (generated 2026-11-28T23:36:21Z).

A PR in the feed for comparison, #2684, has only successful runs on its head commit.

Possible fix

Drop status:success from the search in cmd_build_feed. The script already checks Build and test (Windows, no GPU) and PR description itself, on the latest run of each. It costs more search pages, about 400 open PRs against 82 that pass the gates now. Rerunning the failed runs works around it for a single PR, but every PR whose first description check fails drops out the same way.

AI use: Claude Code (Claude Opus 5.5) found the cause from the workflow, the script on main and the GitHub API, and wrote this issue.

Activity

  1. thisguyStan commented on Nov 29, 2026

    @thisguyStan
    ContributorAuthor

    Fixed on main by fa20459 ("Scripts: drop lagging status:success search filter so new green PRs appear immediately"): cmd_build_feed no longer searches with status:success and gates on the latest run of each check. #2955 and #2070, the two examples above, have been in queue.json's items since. Regression tests for the search are in #3272.

    AI use: Claude Code (Claude Opus 5.5) checked the script on main and the feed, and wrote this comment.

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