Prevent chaos create-pull-request fallback when branch already exists#32770
Merged
Conversation
…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 created this pull request from a session on behalf of
pelikhan
May 17, 2026 06:14
View session
Contributor
There was a problem hiding this comment.
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: truealongsidepreserve-branch-name: trueforsafe-outputs.create-pull-requestinchaos-pr-bundle-fuzzer.md. - Regenerate
chaos-pr-bundle-fuzzer.lock.ymlso the compiled workflow’s safe-outputs handler config includesrecreate_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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: truewithout allowing ref recreation.Root cause
create-pull-requestattempted to push a branch that already existed remotely.Workflow configuration change
safe-outputs.create-pull-requestinchaos-pr-bundle-fuzzer.mdto allow replacing existing remote refs:recreate-ref: truepreserve-branch-name: trueintact to preserve deterministic branch naming for chaos scenarios.Generated workflow sync
chaos-pr-bundle-fuzzer.lock.ymlso runtime workflow behavior matches source workflow config.