GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(cache): fingerprint tracked getEnv reads by wan9chi · Pull Request #454 · voidzero-dev/vite-task

Conversation

@wan9chi

@wan9chi wan9chi commented Jun 14, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Motivation

Runner-served getEnv values can influence tool output even when the env is not declared in the task config. If cached tasks do not remember those reads, a later run can replay stale output after the served env value changes.

Scope

Always record runner-aware getEnv reads in IPC reports, store SHA-256 hashes of their served values in the post-run fingerprint, validate those hashes during cache lookup, and render env-specific cache miss messages without exposing values. This follows the env hashing model from #455, bumps the cache schema for the new serialized fingerprint field, and raises a post-run fingerprint error instead of treating non-UTF-8 tracked env values as unset.

This PR intentionally does not add the tracked option or getEnvs; those are split into later PRs in the stack.

Verification

  • cargo check -p vite_task
  • cargo test -p vite_task_server --test integration
  • cargo test -p vite_task_bin --test e2e_snapshots fetch_env_tracked_invalidates_on_change -- --ignored
  • cargo test -p vite_task_bin --test e2e_snapshots fetch_env_tracks_with_explicit_inputs -- --ignored

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@wan9chi Graphite App

wan9chi commented Jun 14, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author
  • docs: consolidate runner-aware changelog entries #463 Graphite
  • test(e2e): verify Vite auto output restoration #462 Graphite
  • feat(cache): default outputs to automatic tracking #461 Graphite
  • feat(cache): add explicit auto output tracking #460 Graphite
  • feat(cache): honor runner ignored outputs #459 Graphite
  • feat(cache): honor runner ignored inputs #431 Graphite
  • test(e2e): verify real Vite env cache tracking #451 Graphite
  • feat(client): add tracked option for env IPC #458 Graphite
  • feat(cache): fingerprint getEnvs match sets #450 Graphite
  • feat(client): serve getEnvs over runner IPC #449 Graphite
  • feat(cache): fingerprint tracked getEnv reads #454 Graphite 👈 (View in Graphite)
  • main

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Jun 14, 2026
feat(client): serve getEnvs over runner IPC #449
Merged
test(e2e): verify real Vite env cache tracking #451
Merged
feat(cache): fingerprint getEnvs match sets #450
Merged
feat(cache): honor runner ignored inputs #431
Merged
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Jun 14, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 64acca084f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread crates/vite_task/src/session/execute/cache_update.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

@wan9chi
wan9chi force-pushed the codex/reapply-448 branch 4 times, most recently from 0cae90a to 397eb93 Compare June 14, 2026 08:48
@wan9chi wan9chi mentioned this pull request Jun 14, 2026
feat(client): add tracked option for env IPC #458
Merged
@wan9chi
wan9chi force-pushed the codex/reapply-448 branch 2 times, most recently from b319c60 to ded4204 Compare June 14, 2026 09:48
@wan9chi
feat(cache): fingerprint tracked getEnv reads
34a7ac1
Motivation:
Once tools can read env values from the runner, cached tasks must remember tracked getEnv reads. Otherwise a later run can replay stale output after a tracked env value changes.

Scope:
Make the getEnv tracked option meaningful, record served single-env values in IPC reports, store tracked values in the post-run fingerprint, validate them during cache lookup, and render env-specific cache miss messages. This PR intentionally does not implement getEnvs or env glob match-set tracking.

Verification:
- cargo test -p vite_task_server --test integration
- UPDATE_SNAPSHOTS=1 cargo test -p vite_task_bin --test e2e_snapshots fetch_env_tracked_invalidates_on_change -- --ignored
- UPDATE_SNAPSHOTS=1 cargo test -p vite_task_bin --test e2e_snapshots fetch_env_tracks_with_explicit_inputs -- --ignored
- cargo test -p vite_task_bin --test e2e_snapshots fetch_env_tracked_invalidates_on_change -- --ignored
- cargo test -p vite_task_bin --test e2e_snapshots fetch_env_tracks_with_explicit_inputs -- --ignored
@wan9chi
wan9chi force-pushed the codex/reapply-448 branch from ded4204 to 34a7ac1 Compare June 14, 2026 10:03
@wan9chi Graphite App

wan9chi commented Jun 14, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

Merge activity

  • Jun 14, 10:07 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jun 14, 10:07 AM UTC: @wan9chi merged this pull request with Graphite.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@wan9chi
wan9chi merged commit 377cc3d into main Jun 14, 2026
20 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@wan9chi
wan9chi deleted the codex/reapply-448 branch June 14, 2026 10:07
This was referenced Jun 14, 2026
feat(cache): honor runner ignored outputs #459
Merged
feat(cache): add explicit auto output tracking #460
Merged
feat(cache): default outputs to automatic tracking #461
Merged
test(e2e): verify Vite auto output restoration #462
Merged
docs: consolidate runner-aware changelog entries #463
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@wan9chi
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.