Skip to content

Prevent chaos create-pull-request fallback when branch already exists#32770

Merged
pelikhan merged 1 commit into
mainfrom
copilot/investigate-safe-output-issue
May 17, 2026
Merged

Prevent chaos create-pull-request fallback when branch already exists#32770
pelikhan merged 1 commit into
mainfrom
copilot/investigate-safe-output-issue

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 17, 2026

Safe-output PR creation in the chaos bundle fuzzer was intermittently falling back to issue creation when reruns hit an existing remote branch name. The failure path was triggered by preserve-branch-name: true without allowing ref recreation.

  • Root cause

    • create-pull-request attempted to push a branch that already existed remotely.
    • With branch-name preservation enabled, push was rejected and safe-output downgraded to fallback issue behavior.
  • Workflow configuration change

    • Updated safe-outputs.create-pull-request in chaos-pr-bundle-fuzzer.md to allow replacing existing remote refs:
      • Added recreate-ref: true
    • Kept preserve-branch-name: true intact to preserve deterministic branch naming for chaos scenarios.
  • Generated workflow sync

    • Recompiled chaos-pr-bundle-fuzzer.lock.yml so runtime workflow behavior matches source workflow config.
safe-outputs:
  create-pull-request:
    title-prefix: "[chaos-test] "
    preserve-branch-name: true
    recreate-ref: true

…tput

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title Investigate safe-output PR fallback in chaos bundle fuzzer Prevent chaos create-pull-request fallback when branch already exists May 17, 2026
Copilot AI requested a review from pelikhan May 17, 2026 06:14
@pelikhan pelikhan marked this pull request as ready for review May 17, 2026 12:21
Copilot AI review requested due to automatic review settings May 17, 2026 12:21
@pelikhan pelikhan merged commit 7c17b52 into main May 17, 2026
@pelikhan pelikhan deleted the copilot/investigate-safe-output-issue branch May 17, 2026 12:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the chaos bundle fuzzer workflow to prevent create-pull-request safe-output from falling back (e.g., to issue creation) when reruns hit an already-existing remote branch name, by enabling ref recreation on collisions.

Changes:

  • Enable recreate-ref: true alongside preserve-branch-name: true for safe-outputs.create-pull-request in chaos-pr-bundle-fuzzer.md.
  • Regenerate chaos-pr-bundle-fuzzer.lock.yml so the compiled workflow’s safe-outputs handler config includes recreate_ref: true.
Show a summary per file
File Description
.github/workflows/chaos-pr-bundle-fuzzer.md Enables remote branch ref recreation for deterministic branch names in chaos PR runs.
.github/workflows/chaos-pr-bundle-fuzzer.lock.yml Syncs generated workflow/handler config to include recreate_ref: true.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 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