fix(cli): show Fix commands before Reproduce commands on all surfaces#1168
Merged
Conversation
The actionable Fix command (what to run to fix the failure — e.g. `aspect lint --fix`, `aspect format`) now leads, and the Reproduce command (how CI ran the task) follows, consistently across every surface: the CLI terminal output, the GitHub status-check run body, the Buildkite annotation, and the rolled-up GitHub PR comment. The relative order was previously decided in several independent places and was inconsistent — build/test, lint, and delivery rendered Reproduce-then-Fix, while format and gazelle were already Fix-first. This swaps the CLI printer (`print_repro_and_fix`), the build/test, lint, and delivery details templates, and the PR-comment aggregator template to Fix-then-Reproduce; format and gazelle already led with Fix. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
✨ Aspect Workflows Tasks📅 Sun May 31 06:48:06 UTC 2026
|
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.
Show the Fix command before the Reproduce command on every surface.
When a task surfaces both kinds of copy-pasteable command blocks, the actionable Fix command (what to run to resolve the failure —
aspect lint --fix,aspect format, etc.) should lead, and the Reproduce command (how CI ran the task) should follow. Previously the relative order was decided in several independent places and was inconsistent: build/test, lint, and delivery rendered Reproduce-then-Fix, while format and gazelle already led with Fix.This makes the order uniform (Fix → Reproduce) across:
print_repro_and_fix),format and gazelle already rendered the Fix block before the Reproduce block (Fix sits mid-body, Reproduce at the end); their relative order already satisfied the requirement, so they're unchanged.
Changes are visible to end-users: yes
Suggested release notes
Test plan
lint_results_test.axlasserts the Fix block renders before the Reproduce block in the details body (verified the assertion fails if the order is flipped back).aspect tests axl+ the template-snapshot dev tests (bazel-results, lint, format, gazelle, delivery, bk-annotation, pr-comment) render without error; the PR-comment snapshot shows## 🛠️ Fixbefore## 🔁 Reproduce.