Skip to content

test(e2e): verify real Vite env cache tracking - #451

Merged
wan9chi merged 2 commits into
mainfrom
infra-vite-env-fixture
Jun 14, 2026
Merged

test(e2e): verify real Vite env cache tracking#451
wan9chi merged 2 commits into
mainfrom
infra-vite-env-fixture

Conversation

@wan9chi

@wan9chiwan9chi commented Jun 13, 2026

Copy link
Copy Markdown
Member

Motivation

The focused IPC fixture proves runner env tracking in isolation, but reviewers also need confidence that the real Vite integration exercises getEnv for NODE_ENV and getEnvs for VITE_* prefixes. The prefix-env case should use a neutral VITE_* variable so it does not read like Vite mode or NODE_ENV behavior.

Scope

Add a minimal Vite build fixture and a local vtt grep-file helper. The fixture verifies NODE_ENV changes invalidate through getEnv, and VITE_CACHE_LABEL changes invalidate through Vite's getEnvs('VITE_*') path while changing the emitted bundle. The fixture keeps manual input exclusions so this PR remains about env tracking only; it intentionally does not introduce production APIs, playground changes, or output tracking behavior.

@wan9chi
wan9chiforce-pushed the infra-vite-env-fixture branch from ecff178 to 8e2f29cCompareJune 13, 2026 11:11
@wan9chi
wan9chiforce-pushed the infra-get-envs-fingerprint branch 2 times, most recently from 2f128bc to 5a8cde0CompareJune 13, 2026 14:23
@wan9chi
wan9chiforce-pushed the infra-vite-env-fixture branch from 8e2f29c to d1d3cc1CompareJune 13, 2026 14:23
@wan9chi
wan9chiforce-pushed the infra-get-envs-fingerprint branch from 5a8cde0 to 4990502CompareJune 13, 2026 14:27
@wan9chi
wan9chiforce-pushed the infra-vite-env-fixture branch from d1d3cc1 to 3fe4de9CompareJune 13, 2026 14:27
@wan9chi
wan9chiforce-pushed the infra-get-envs-fingerprint branch from 4990502 to 9705c8fCompareJune 13, 2026 14:38
@wan9chi
wan9chiforce-pushed the infra-vite-env-fixture branch from 3fe4de9 to f7bb71aCompareJune 13, 2026 14:38
@wan9chi
wan9chiforce-pushed the infra-get-envs-fingerprint branch from 9705c8f to 9477718CompareJune 13, 2026 15:58
@wan9chi
wan9chiforce-pushed the infra-vite-env-fixture branch from f7bb71a to 68b3368CompareJune 13, 2026 15:58
@wan9chi
wan9chi marked this pull request as ready for review June 13, 2026 15:59
@wan9chi
wan9chiforce-pushed the infra-get-envs-fingerprint branch from 9477718 to a183557CompareJune 13, 2026 16:01
@wan9chi
wan9chiforce-pushed the infra-vite-env-fixture branch from 68b3368 to d7cf78eCompareJune 13, 2026 16:02
@wan9chi
wan9chiforce-pushed the infra-get-envs-fingerprint branch from a183557 to 51c81c7CompareJune 13, 2026 16:03
@wan9chi
wan9chiforce-pushed the infra-vite-env-fixture branch from d7cf78e to bf82ed3CompareJune 13, 2026 16:03
@wan9chi
wan9chiforce-pushed the infra-get-envs-fingerprint branch from 51c81c7 to 2a05d2eCompareJune 13, 2026 16:10
@wan9chi
wan9chiforce-pushed the infra-vite-env-fixture branch from bf82ed3 to 01c6d84CompareJune 13, 2026 16:10
@wan9chi
wan9chiforce-pushed the infra-get-envs-fingerprint branch from 2a05d2e to 14b20deCompareJune 13, 2026 17:18
@wan9chi
wan9chiforce-pushed the infra-vite-env-fixture branch from 01c6d84 to 8d8b222CompareJune 13, 2026 17:18
@wan9chi
wan9chi changed the base branch from graphite-base/451 to infra-get-envs-fingerprintJune 14, 2026 08:49
@wan9chi
wan9chi changed the base branch from infra-get-envs-fingerprint to graphite-base/451June 14, 2026 09:14
@wan9chi
wan9chiforce-pushed the infra-vite-env-fixture branch from 88387e3 to c6bbdf5CompareJune 14, 2026 09:15
@wan9chi
wan9chi changed the base branch from graphite-base/451 to infra-get-env-tracked-optionJune 14, 2026 09:15
@wan9chi
wan9chi changed the base branch from infra-get-env-tracked-option to graphite-base/451June 14, 2026 09:50
@wan9chi
wan9chiforce-pushed the infra-vite-env-fixture branch from c6bbdf5 to 908a111CompareJune 14, 2026 09:50
@wan9chi
wan9chi changed the base branch from graphite-base/451 to infra-get-env-tracked-optionJune 14, 2026 09:50
@wan9chi
wan9chi changed the base branch from infra-get-env-tracked-option to graphite-base/451June 14, 2026 10:04
@wan9chi
wan9chiforce-pushed the infra-vite-env-fixture branch from 908a111 to dac897fCompareJune 14, 2026 10:05
@wan9chi
wan9chi changed the base branch from graphite-base/451 to infra-get-env-tracked-optionJune 14, 2026 10:05
@wan9chi
wan9chiforce-pushed the infra-get-env-tracked-option branch from b5e2a40 to 863801aCompareJune 14, 2026 10:09
@wan9chi
wan9chiforce-pushed the infra-vite-env-fixture branch 2 times, most recently from 77a4beb to 614b9e7CompareJune 14, 2026 10:12
@wan9chi
wan9chiforce-pushed the infra-get-env-tracked-option branch from 863801a to 6470102CompareJune 14, 2026 12:24
@wan9chi
wan9chiforce-pushed the infra-vite-env-fixture branch 2 times, most recently from 0637bbd to d9f08d7CompareJune 14, 2026 12:25
@wan9chi
wan9chiforce-pushed the infra-get-env-tracked-option branch from 6470102 to d056c89CompareJune 14, 2026 12:39
@wan9chi
wan9chiforce-pushed the infra-vite-env-fixture branch 2 times, most recently from 8e3eb65 to ac4f7ddCompareJune 14, 2026 12:50
wan9chiand others added 2 commits June 14, 2026 13:41
Motivation:
The smaller IPC fixture proves runner env tracking in isolation, but reviewers also need confidence that the real Vite integration exercises getEnv for NODE_ENV and getEnvs for VITE_* prefixes.
Scope:
Add a minimal Vite build fixture and a local vtt grep-file helper used only to assert that changing VITE_MODE changes the emitted bundle. This PR does not introduce production APIs, playground changes, or output tracking behavior.
Verification:
- cargo test -p vite_task_bin --test e2e_snapshots vite_node_env_change_invalidates_cache -- --ignored
- cargo test -p vite_task_bin --test e2e_snapshots vite_prefix_env_change_invalidates_cache -- --ignored
Co-authored-by: GPT-5 Codex <codex@openai.com>
@wan9chiGraphite App

wan9chi commented Jun 14, 2026

Copy link
Copy Markdown
MemberAuthor

Merge activity

  • Jun 14, 1:54 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jun 14, 1:55 PM UTC: @wan9chi merged this pull request with Graphite.

Sign up for freeto 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.

1 participant

@wan9chi