Skip to content

[ci-scan-feedback] Fix fixer dedup: resolve head.ref via list tools, not search #132967

Description

@github-actions

Triggering signals

Proposed edits

  • .github/workflows/ci-failure-fix.md:164 — Step 3 enumeration: stop parsing head.ref from search results. Resolve the branch key with the non-search tools — list_pull_requests (state: open, fields incl. head) for open candidates, pull_request_read get for specific merged/closed candidates, and a non-integrity-gated list_branches backstop to enumerate every live ci-fix/<kbe>-... branch prefix.
  • .github/workflows/ci-failure-fix.md:166 — Step 3 check 1: clarify that an empty branch map means "not yet enumerated", NOT "no open PR", so the fixer enumerates head branches via list_pull_requests/list_branches before concluding none exists.

Expected behavior change

The next fixer run obtains each candidate [ci-fix] PR's head.ref from list_pull_requests/list_branches (which do expose branches) instead of a search_pull_requests field that is always absent, and treats an unpopulated branch map as "not yet enumerated" rather than "no open PR." This closes the residual self-dedup gap that let help-wanted PR #131981 be filed against KBE #131382 while #131515 was already open on ci-fix/131382-: the fixer will detect the live branch and skip with open fix PR #<n> already exists instead of opening a duplicate.

Note

AI/Copilot-generated (ci-scan-feedback). Prompt-only edit to .github/workflows/ci-failure-fix.md.

Generated by CI Outer-Loop Failure Scanner — Feedback · opus48 · 280.5 AIC · ⌖ 25.7 AIC · ⊞ 20.6K ·


Note

This was originally intended as a pull request, but the git push operation failed.

Original error: The process '/usr/bin/git' failed with exit code 1

Workflow Run: View run details and download bundle artifact

The bundle file is available in the agent artifact in the workflow run linked above.

To create a pull request with the changes:

# Download the artifact from the workflow run
gh run download 33394234113 -n agent -D /tmp/agent-33394234113

# Fetch the bundle into a temporary ref, then update the local branch
git fetch /tmp/agent-33394234113/aw-ci-scan-feedback-fixer-dedup-headref.bundle refs/heads/ci-scan-feedback-fixer-dedup-headref:refs/bundles/create-pr-ci-scan-feedback-fixer-dedup-headref-13d139b40ed0bbf2-50a2e321
git update-ref refs/heads/ci-scan-feedback-fixer-dedup-headref-13d139b40ed0bbf2 refs/bundles/create-pr-ci-scan-feedback-fixer-dedup-headref-13d139b40ed0bbf2-50a2e321
git checkout ci-scan-feedback-fixer-dedup-headref-13d139b40ed0bbf2
# Ensure the working tree matches the updated branch
git reset --hard
# Remove the temporary bundle ref
git update-ref -d refs/bundles/create-pr-ci-scan-feedback-fixer-dedup-headref-13d139b40ed0bbf2-50a2e321

# Push the branch to origin
git push origin ci-scan-feedback-fixer-dedup-headref-13d139b40ed0bbf2

# Create the pull request
gh pr create --title '[ci-scan-feedback] Fix fixer dedup: resolve head.ref via list tools, not search' --base main --head ci-scan-feedback-fixer-dedup-headref-13d139b40ed0bbf2 --repo dotnet/runtime

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions