Skip to content

feat(deps): upgrade vite-task for compact task runner summary#623

Merged
branchseer merged 8 commits intomainfrom
feat/improve-task-runner-summary
Feb 25, 2026
Merged

feat(deps): upgrade vite-task for compact task runner summary#623
branchseer merged 8 commits intomainfrom
feat/improve-task-runner-summary

Conversation

@branchseer
Copy link
Copy Markdown
Member

Summary

  • Upgrades vite-task dependency to voidzero-dev/vite-task#171 which implements compact task runner summaries (GitHub issue Improve task runner summary #591)
  • Updates cli.rs to use ParsedCommand (now exposed by vite-task) with .into_command() at dispatch points
  • Regenerates 25 snap test outputs: full verbose execution summaries (~800 lines) replaced by compact one-liners

New behavior

Scenario Output
Single task, no cache hit No summary
Single task, cache hit --- + [vp run] cache hit, {duration} saved.
Multi-task --- + [vp run] {hits}/{total} cache hit ({rate}%), {duration} saved. (Run 'vp run --verbose' for full details)

New CLI flags

  • -v / --verbose: Show full execution summary (previous default behavior)
  • --last-details: Display saved summary from last run

Depends on: voidzero-dev/vite-task#171

Copy link
Copy Markdown
Member

@fengmk2 fengmk2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should add snap tests for --verbose and --last-details options?

@branchseer
Copy link
Copy Markdown
Member Author

branchseer commented Feb 24, 2026

should add snap tests for --verbose and --last-details options?

@fengmk2
Added in vite-task repo: https://github.com/voidzero-dev/vite-task/pull/171/changes/fcc662b94410e6f68dececfe8ebf099eb7487ab6..7d49f24fb40ada5d86fbb7541421d516c9f4dfef

@branchseer branchseer force-pushed the feat/improve-task-runner-summary branch 2 times, most recently from 0bb750a to 7807bcb Compare February 25, 2026 02:10
branchseer and others added 8 commits February 25, 2026 11:42
Upgrade vite-task to voidzero-dev/vite-task#171 which replaces the
verbose full execution summary with compact one-liners. Single-task
runs with no cache hit show no summary. Single-task cache hits show
a brief 'cache hit' message. Multi-task runs show hit rate and time
saved, with a hint to use --verbose for full details.

Updates cli.rs to use ParsedCommand (now exposed by vite-task) with
.into_command() at dispatch points, and regenerates 25 snap tests.
- Update vite-task to 7d49f24f (summary-output e2e tests, fspy revert)
- Strip ANSI escape codes in replaceUnstableOutput — third-party tools
  like rolldown emit ANSI on stderr even with NO_COLOR, causing [33m
  fragments in snap output on Linux/Windows
- Add .gitignore with 'node_modules' to ignore_dist, plain-terminal-ui-nested,
  and oxlint-typeaware fixtures to prevent oxlint from traversing
  node_modules/.vite/task-cache (causes spurious cache misses)
- Update ignore_dist snap: now correctly shows cache hit after adding .gitignore
- Update command-helper/command-vp-alias snaps: ANSI stripped from clap help output
The ANSI stripping added in 4754dbc was incorrect — the empty PR #625
proves rolldown doesn't break tests. The real issue was that clap help
text contains ANSI codes which should be preserved in snapshots as-is.

Changes:
- Revert ANSI escape code stripping from replaceUnstableOutput
- Restore command-helper and command-vp-alias snaps with ANSI codes
- Update vite-task rev to cc005960 (includes flush fix for reporter)
- Update cache-scripts-default snap: flush fix makes script stdout
  visible via Stdio::inherit()
- Remove temporary local vite-task patch from Cargo.toml

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… filtering

- Add ANSI escape code stripping to replaceUnstableOutput() to handle
  third-party tools (rolldown reporter, clap) that emit ANSI codes
  regardless of NO_COLOR
- Strip ANSI codes from all 18 committed snap files to match
- Use `2>&1 | grep` in cache-scripts-default and command-pack-monorepo
  to filter out platform-inconsistent child output and cached stderr
  ANSI codes that bypass stdout-only grep pipes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- command-env-which: versions in "Version:" and "Node:" fields are now
  matched by semver regex after ANSI codes that previously hid them are stripped
- cache-scripts-default: remove trailing blank line to match snap test output

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
ANSI codes in snap files are deterministic and stable across platforms.
The only fixes needed are `2>&1 | grep` in the two tests where cached
stderr or Stdio::inherit() output leaks past stdout-only grep pipes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Update vite-task to 24baf0b3 which renames `ParsedCommand` to `Command`
and makes resolved dispatch types internal. Remove `.into_command()`
calls that are no longer needed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@branchseer branchseer force-pushed the feat/improve-task-runner-summary branch from 9773148 to ef67fd1 Compare February 25, 2026 03:43
@branchseer branchseer merged commit 0771039 into main Feb 25, 2026
17 checks passed
@branchseer branchseer deleted the feat/improve-task-runner-summary branch February 25, 2026 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants