Skip to content

feat: show saved time in summary#187

Merged
branchseer merged 3 commits intomainfrom
09-23-feat_show_saved_time_in_summary
Sep 23, 2025
Merged

feat: show saved time in summary#187
branchseer merged 3 commits intomainfrom
09-23-feat_show_saved_time_in_summary

Conversation

@branchseer
Copy link
Copy Markdown
Member

@branchseer branchseer commented Sep 22, 2025

feat: show saved time in summary

This PR adds duration tracking to task execution and displays time saved from cache hits in the UI. When a task is executed from cache, it now shows how much time was saved from the original execution. The summary also displays the total time saved across all cache hits.

The changes include:

  • Track execution duration for each task
  • Store duration in the cache along with other task data
  • Display individual task duration savings in the UI
  • Show total time saved in the performance summary
  • Update database schema version to support the new duration field

Copy link
Copy Markdown
Member Author

branchseer commented Sep 22, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@branchseer branchseer marked this pull request as ready for review September 22, 2025 18:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds duration tracking to task execution and displays time saved from cache hits in the UI. When tasks are executed from cache, the system now shows how much time was saved compared to the original execution, along with a total time saved summary.

  • Track execution duration for each task and store it in the cache
  • Display individual task duration savings and total time saved in the UI
  • Update database schema to support the new duration field with version migration

Reviewed Changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/tools/src/utils.ts Fix regex pattern for time matching in test output normalization
packages/cli/snap-tests/*.txt Update test snapshots to include duration savings in cache hit messages
crates/vite_task/src/ui.rs Add duration display logic to performance summary and task details
crates/vite_task/src/schedule.rs Update CacheStatus enum to include original duration for cache hits
crates/vite_task/src/execute.rs Add duration tracking to task execution with timing measurement
crates/vite_task/src/cache.rs Update cache storage to include duration and handle database schema migration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread crates/vite_task/src/cache.rs
Comment thread crates/vite_task/src/cache.rs
@branchseer branchseer changed the base branch from 09-23-feat_show_command_in_summary to graphite-base/187 September 23, 2025 01:49
@branchseer branchseer force-pushed the 09-23-feat_show_saved_time_in_summary branch from 86236ef to c89a997 Compare September 23, 2025 01:49
@graphite-app graphite-app Bot changed the base branch from graphite-base/187 to main September 23, 2025 01:49
@branchseer branchseer force-pushed the 09-23-feat_show_saved_time_in_summary branch from c89a997 to 3cc90de Compare September 23, 2025 01:49
@branchseer branchseer merged commit 04c05d7 into main Sep 23, 2025
9 checks passed
Copy link
Copy Markdown
Member Author

Merge activity

@branchseer branchseer deleted the 09-23-feat_show_saved_time_in_summary branch September 23, 2025 01:55
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.

3 participants