Skip to content

Fix PR Sous Chef refresh failing on same-repo bot PRs behind the integrity proxy - #78203

Merged
pelikhan merged 2 commits into
mainfrom
copilot/fix-github-actions-job-failure
Nov 16, 2026
Merged

pelikhan merged 2 commits into
mainfrom
copilot/fix-github-actions-job-failure

Conversation

@pelikhan

@pelikhan pelikhan commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

The PR Sous Chef conclusion job failed because the agent reported report_incomplete. Inside the agent, node scripts/pr-sous-chef.mjs 78187 exited with could not refresh PR metadata. The unproxied prefilter job had already marked #78187 eligible.

Root cause

The gateway guard (pr_integrity in gh-aw-mcpg) looks up REST PR facts (author association, fork status) only when the PR item has no authorAssociation.

  • Both PR-level GraphQL queries selected authorAssociation, so the guard skipped that REST lookup.
  • GraphQL responses lack base/head.repo.full_name, so the guard could not tell whether the PR came from a fork.
  • Restrict MCP log cache permissions #78187 is a same-repo PR from github-agentic-autofix[bot], whose association is NONE. It got no integrity and was filtered out under min-integrity: approved. The script then saw pullRequest missing or empty.

Changes

  • scripts/pr-sous-chef.mjs: drop PR-level authorAssociation from the fetchCandidate and inspect queries. The script never read it. The guard now does the REST lookup and labels same-repo PRs approved. Comment- and review-level authorAssociation, which the script does use, is unchanged.

    - createdAt updatedAt changedFiles mergeStateStatus author{login} authorAssociation
    + createdAt updatedAt changedFiles mergeStateStatus author{login}
  • scripts/pr-sous-chef.test.mjs: the test that asserted the PR-level authorAssociation now asserts that no PR-level query selects it.

The guard behaviour comes from reading the gh-aw-mcpg source; proxy logs for the failing run were not available. The next run that refreshes a same-repo bot PR will confirm the fix.

…roxy

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@pelikhan pelikhan changed the title [WIP] Fix failing GitHub Actions job by analyzing logs and implementing a fix Fix PR Sous Chef refresh failing on same-repo bot PRs behind the integrity proxy Nov 16, 2026
@pelikhan
pelikhan marked this pull request as ready for review November 16, 2026 01:54
Copilot AI adaptive review requested due to automatic review settings November 16, 2026 01:54
@pelikhan
pelikhan merged commit 50db120 into main Nov 16, 2026
53 of 54 checks passed
@pelikhan
pelikhan deleted the copilot/fix-github-actions-job-failure branch November 16, 2026 01:55
Copilot stopped reviewing on behalf of pelikhan due to an error November 16, 2026 01:55
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~7 AIC · ⌖ ~2 AIC · ⊞ 6.7K · ◷

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Specification Reviewer completed successfully!

PR Specification Reviewer

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated by PR Specification Reviewer for #78203 · copilot · gpt56 · ~2 AIC · ⌖ ~2 AIC · ⊞ 1.6K · ◷

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft.

Design Decision Gate 🏗️

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

🏗️ ADR gate enforced by Design Decision Gate 🏗️ · pi · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ⊞ 8.6K · ◷

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated by Ponytail Reviewer for #78203 · codex · routed: gpt61 medium · ~4 AIC · ⌖ ~1 AIC · ⊞ 185 · ◷

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

🧪 Test quality analysis by Test Quality Sentinel · copilot · routed: haiku55 xhigh · ~5 AIC · ⌖ ~2 AIC · ⊞ 7.3K · ◷

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

PR Code Quality Reviewer

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt56 · ~2 AIC · ⌖ ~1 AIC · ⊞ 1.5K · ◷

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The pinned proxy re-adds authorAssociation, preventing REST enrichment and leaving same-repo bots with NONE filtered out.

1 open issue
What changed in this PR

This PR aims to restore PR Sous Chef refreshes for same-repository bot PRs behind the integrity proxy by changing its GraphQL field selections.

Changes:

  • Remove PR-level authorAssociation from metadata and inspection queries while preserving comment- and review-level associations.
  • Update the regression assertion and document the intended proxy behavior.
File Description
scripts/​pr-sous-chef.test.mjs Checks that query strings omit the previous PR-level field selection.
scripts/​pr-sous-chef.mjs Removes PR-level association selections and adds explanatory comments.

Review effort: Max (dynamic)

Comment thread scripts/pr-sous-chef.mjs
repository(owner:$owner,name:$name){pullRequest(number:$number){
number title url state isDraft headRefOid headRefName baseRefName
createdAt updatedAt changedFiles mergeStateStatus author{login} authorAssociation
createdAt updatedAt changedFiles mergeStateStatus author{login}
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.3.0

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.

3 participants