Skip to content

fix: keep test progress visible in agent runs - #131448

Merged
steipete merged 1 commit into
mainfrom
codex/vitest-progress-reporters-20260828
Aug 28, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/vitest-progress-reporters-20260828

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Resolves a problem where developers running tests inside an agent session could have a healthy, long-running suite terminated by the no-output watchdog because successful test cases produced no progress output.

Why This Change Was Made

Vitest's automatic agent reporter suppresses successful cases. The shared test configuration now explicitly selects the existing verbose reporter and retains GitHub Actions annotations. Both standalone UI configurations reuse that policy, and generic E2E removes its redundant reporter override. PTY keeps its existing injected-environment policy.

Explicit CLI and custom-config reporters still take precedence, including JSON reporter options. This changes neither test deadlines nor watchdog behavior, strips no environment markers, and introduces no custom reporter or new configuration option.

User Impact

Developers and CI agents see real completed-test progress by default, so successful work remains visible to the existing silence watchdog. There is no product-runtime or visual UI change.

Evidence

All local proof used Node 24.20.0, pnpm 11.22.0, the default heap, and an independent frozen dependency install.

  • Actual-output RED/GREEN: pnpm test test/vitest-light-paths.test.ts, without a reporter argument. Before the repair, all five underlying tests passed but the enclosing assertion failed because completed-case names were absent. Afterward, the same assertion passed with all five names visible.
  • The new public Vitest resolver regression failed twice before the repair and passed twice afterward. It covers seven actual config entry points, both GitHub Actions states, explicit CLI JSON replacement, custom JSON options, repeated CLI reporter normalization, and PTY's injected environment.
  • Four existing sibling suites passed: 129 tests across test/vitest-ui-package-config.test.ts, test/vitest-projects-config.test.ts, test/vitest-ui-e2e-config.test.ts, and test/vitest-scoped-config.test.ts, including the full-suite ownership audit.
  • The full changed-code gate passed both before commit and on committed head f9985c39a8a22dd2c138afc5a8b13d0e6d86d884: guards, formatting, dead-code scans, core-test/UI/test-root typechecks, core lint, and script lint; no skip flags.
  • Independent Codex review completed with no actionable P0 findings.

Separately, the original frozen-source full UI diagnostic completed naturally with only --reporter=verbose added: 300/302 files and 1,169/1,171 tests passed in 1,997.67 seconds under the unchanged 300-second silence watchdog. The two remaining failures are the transcript-focused-row gap assertion and the team-secrets allowed-hosts locator. This is progress-output evidence, not a claim that full UI is green or that this repaired commit has completed a full UI run.

Source-history context: the shared test block was carried forward from 2b900b576c4fbb7ef2e4f8b90af07c2f14d8e9ca (2026-04-03; author and committer Peter Steinberger). The installed Vitest 4.1.11 dependency arrived in #129941 (1605dbd3efef1c10da95c4a9bbb51a19a9d07865; code author Peter Steinberger, Git committer GitHub). Neither fact establishes the first affected release or introducing PR; merger and automation-trigger attribution are not established. Existing scoped verbose/GitHub Actions policy in #117405 and verbose E2E policy in #124401 informed the shared repair.

Production runtime LOC: 0. Test-tooling/config LOC: +9/-2; regression test: +98/-0. The growth is the shared reporter policy plus its two standalone UI consumers; the duplicate generic E2E policy is removed.

@steipete steipete self-assigned this Aug 28, 2026
@clawsweeper

clawsweeper Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Aug 28, 2026
@steipete
steipete marked this pull request as ready for review August 28, 2026 02:45
@steipete
steipete merged commit e638097 into main Aug 28, 2026
202 checks passed
@steipete
steipete deleted the codex/vitest-progress-reporters-20260828 branch August 28, 2026 03:07
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant