chaos-pr-bundle-fuzzer: make PR count deterministic at 5 and expand merge-tree strategy coverage#32378
Merged
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update PR creation strategy to always create 5 PRs
chaos-pr-bundle-fuzzer: make PR count deterministic at 5 and expand merge-tree strategy coverage
May 15, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the chaos-pr-bundle-fuzzer workflow prompt to make each run deterministically generate five PR scenarios and to broaden the scenario strategy mix toward more complex merge-history shapes.
Changes:
- Changed the hard requirement from “at most 5 PRs” to “exactly 5 PRs” per run.
- Replaced randomized PR-count planning (
1..5) with a fixed plan of 5 scenarios. - Expanded the strategy mix and adjusted ledger guidance to balance under-tested strategies across simple vs complex categories.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/chaos-pr-bundle-fuzzer.md |
Makes PR count deterministic at 5 and expands/adjusts strategy selection guidance to target more complex merge-tree histories. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comments suppressed due to low confidence (2)
.github/workflows/chaos-pr-bundle-fuzzer.md:67
- “balancing simple and complex strategy categories” is introduced here but the document never defines which strategies are considered simple vs complex or how to record this in the ledger. Please define the categories (or tag each strategy with a category) so the balancing instruction is actionable and consistent across runs.
3. Prefer strategies that were under-tested in previous runs while balancing simple and complex strategy categories across runs.
.github/workflows/chaos-pr-bundle-fuzzer.md:66
- The term “multi-parent merge commit” is ambiguous because all merge commits have multiple parents; it’s unclear whether this means a non-fast-forward 2-parent merge commit or a >2-parent merge (which overlaps with “octopus merge”). Consider renaming/clarifying the strategy label to match the intended history shape.
- Random strategy mix (single commit, two commits, amend, staged subset, minor rename, line-ending variant, multi-parent merge commit, octopus merge, diverged history reconciliation).
- Files reviewed: 1/1 changed files
- Comments generated: 2
| ## Hard Requirements | ||
|
|
||
| 1. Create at most **5 PRs per run**. | ||
| 1. Create exactly **5 PRs per run**. |
Comment on lines
+64
to
+67
| - Always generate 5 PR scenarios. | ||
| - Random personas (examples: cautious maintainer, rushed intern, refactor zealot, docs tidy bot, flaky fixer). | ||
| - Random strategy mix (single commit, two commits, amend, staged subset, minor rename, line-ending variant). | ||
| 3. Prefer strategies that were under-tested in previous runs (fuzzy balancing, not strict rotation). | ||
| - Random strategy mix (single commit, two commits, amend, staged subset, minor rename, line-ending variant, multi-parent merge commit, octopus merge, diverged history reconciliation). | ||
| 3. Prefer strategies that were under-tested in previous runs while balancing simple and complex strategy categories across runs. |
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.
✨ Enhancement
The
chaos-pr-bundle-fuzzerprompt currently allows variable PR counts and under-specifies complex history scenarios. This update makes each run exercise exactly 5 PR scenarios and explicitly drives complex merge-tree paths (multi-parent, octopus, diverged histories) while improving ledger balancing expectations.Deterministic run shape
1..5) with a fixed 5-scenario plan.Expanded merge-tree edge coverage
Better cross-run strategy balancing