Skip to content

[ci-scan-feedback] Fix push to existing feedback PR on scheduled runs#129132

Merged
kotlarmilos merged 2 commits into
dotnet:mainfrom
kotlarmilos:kotlarmilos/ci-scan-feedback-push-target
Jun 9, 2026
Merged

[ci-scan-feedback] Fix push to existing feedback PR on scheduled runs#129132
kotlarmilos merged 2 commits into
dotnet:mainfrom
kotlarmilos:kotlarmilos/ci-scan-feedback-push-target

Conversation

@kotlarmilos

@kotlarmilos kotlarmilos commented Jun 8, 2026

Copy link
Copy Markdown
Member

Problem

The CI Outer-Loop Failure Scanner — Feedback workflow runs on a daily schedule, so there is no triggering pull request. Its push-to-pull-request-branch and update-pull-request safe-outputs defaulted to target: triggering, which fails at runtime with:

push-to-pull-request-branch with target "triggering" requires pull request context
⚠️ Code push operation failed — remaining safe outputs will be cancelled

Step 6 of the prompt instructs the agent to push new edits onto the existing [ci-scan-feedback] PR when one is open. That push can never succeed on a scheduled run, so the workflow fails and the agent falls back to filing an issue with a patch instead of updating the PR. Recent failing runs: 27083450473, 26996513228, 26736663476. See also #128972 and #128881.

Fix

  • Set target: "*" on push-to-pull-request-branch and update-pull-request so they operate on the PR the agent discovers in Step 6 rather than a (nonexistent) triggering PR. This mirrors update-issue, which already uses target: "*".
  • Constrain push-to-pull-request-branch with title-prefix: "[ci-scan-feedback] " so it can only push to the feedback PR.

.lock.yml regenerated with gh aw compile (v0.71.5, matching the committed compiler version).

The feedback workflow runs on a schedule, so there is no triggering pull
request. push-to-pull-request-branch and update-pull-request defaulted to
target: triggering, which fails with "requires pull request context" and
cancels the remaining safe outputs. As a result the agent could never add
commits to the existing [ci-scan-feedback] PR and fell back to filing an
issue with a patch.

Set target: "*" on both so they operate on the PR discovered in Step 6,
and constrain push-to-pull-request-branch with title-prefix
"[ci-scan-feedback] " so it can only push to the feedback PR.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

@kotlarmilos kotlarmilos requested a review from vitek-karas June 8, 2026 14:55
@kotlarmilos kotlarmilos added this to the 11.0.0 milestone Jun 8, 2026

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.

Pull request overview

This PR adjusts the safe-output configuration for the CI Outer-Loop Failure Scanner — Feedback workflow so scheduled runs (which have no “triggering PR”) can still push commits to, and update, the existing [ci-scan-feedback] feedback PR that the agent discovers at runtime.

Changes:

  • Configure push-to-pull-request-branch to target any discovered PR (target: "*") and restrict pushes to PRs with the [ci-scan-feedback] title prefix.
  • Configure update-pull-request to target any discovered PR (target: "*") so scheduled runs can update the discovered feedback PR.
  • Regenerate .lock.yml via gh aw compile, updating the compiled safe-outputs config accordingly.
Show a summary per file
File Description
.github/workflows/ci-failure-scan-feedback.md Updates safe-outputs to allow scheduled runs to push/update the discovered feedback PR (no triggering PR required).
.github/workflows/ci-failure-scan-feedback.lock.yml Regenerated compiled workflow; includes updated safe-outputs wiring, but also introduces a detection-job dependency regression that must be fixed.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 1

Comment thread .github/workflows/ci-failure-scan-feedback.lock.yml
# Conflicts:
#	.github/workflows/ci-failure-scan-feedback.lock.yml
@kotlarmilos kotlarmilos merged commit 916a8b7 into dotnet:main Jun 9, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants