SIGN IN SIGN UP

fix(repro): separate multi-entry fix/repro blocks and flush commands left (#1164)

Makes the CLI Fix/Reproduce terminal output match the `### 🔁 Reproduce`
/ `### 🛠️ Fix` sections on the GitHub status surfaces.

**1. Reproduce block now renders on CI regardless of pass/fail.** The
status surface shows "how CI ran this" on a green check too, but the CLI
gated on `status == "passed"` and showed nothing on a passing
build/test/format/gazelle task. Dropped that gate. The block stays
CI-only (suppressed locally, where you're already at the failure). The
Fix block remains naturally pass-gated — tasks only populate fix
commands on failure.

**2. Each entry wrapped in a fenced code block** (``` … ```) and printed
flush-left, matching the surface markdown. Copy-paste region is
unambiguous; the `# <description>` comment sits inside the fence above
the command.

**3. Blank lines between entries and before the install hint; single
hint at the end** (previously each sub-block printed its own, doubling
up).

**4. Wire up the delivery task.** It populated `repro_commands` but
never called `print_repro_and_fix`, so the terminal showed no Reproduce
block even though the surface did. Now format, lint, gazelle,
build/test/run, and delivery all emit consistent output.

Passing build on CI now shows:
```
🔁 Reproduce:
​```
aspect build -- //... -//exclude/...
​```

​```
# without Aspect CLI
bazel build -- //... -//exclude/...
​```

Install aspect: https://docs.aspect.build/cli/install
```

Locally (no CI env var): nothing on a pass, Fix block only on a fail.

---

### Changes are visible to end-users: yes

- Searched for relevant documentation and updated as needed: no
- Breaking change: no
- Suggested release notes appear below: yes

### Suggested release notes

- The Reproduce block now appears in CI terminal output for build, test,
format, gazelle, lint, and delivery tasks (on pass and fail alike),
matching the GitHub status-check surfaces. Commands render in flush-left
fenced code blocks for easy copy-paste.

### Test plan

- `aspect dev test-repro-commands` (30 tests pass)
- Manual: run build/format/delivery on CI and locally, observe output.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
G
Greg Magolan committed
5882944924834fe8177d3969fc576c8bc0fcd4c2
Parent: 593ea8f
Committed by GitHub <noreply@github.com> on 5/30/2026, 5:25:45 AM