Skip to content

chore(test): add #[serial] to env-var tests to prevent concurrent access races#1223

Merged
graphite-app[bot] merged 1 commit intomainfrom
fix-flaky-unittest
Mar 31, 2026
Merged

chore(test): add #[serial] to env-var tests to prevent concurrent access races#1223
graphite-app[bot] merged 1 commit intomainfrom
fix-flaky-unittest

Conversation

@fengmk2
Copy link
Copy Markdown
Member

@fengmk2 fengmk2 commented Mar 30, 2026

Tests that manipulate process env vars (VP_SHIM_TOOL, VITE_PLUS_SHIM_TOOL,
PATH) without #[serial] can race with other tests running in parallel,
causing flaky CI failures. Ensure all such tests are serialized and clear
all related env vars before running.

Also document env var testing guidelines in CLAUDE.md.

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 30, 2026

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit a015465
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/69ca9e3ff8632300084066bf

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 30, 2026

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 5df0b36
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/69cb3acd0e0dc7000802b108

Copy link
Copy Markdown
Member Author

fengmk2 commented Mar 30, 2026


How to use the Graphite Merge Queue

Add the label auto-merge to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

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

@fengmk2 fengmk2 requested review from branchseer and cpojer March 30, 2026 16:01
@fengmk2 fengmk2 self-assigned this Mar 30, 2026
@fengmk2 fengmk2 marked this pull request as ready for review March 30, 2026 16:01
@graphite-app
Copy link
Copy Markdown

graphite-app bot commented Mar 31, 2026

Merge activity

…s races (#1223)

Tests that manipulate process env vars (VP_SHIM_TOOL, VITE_PLUS_SHIM_TOOL,
PATH) without #[serial] can race with other tests running in parallel,
causing flaky CI failures. Ensure all such tests are serialized and clear
all related env vars before running.

Also document env var testing guidelines in CLAUDE.md.
@graphite-app graphite-app bot force-pushed the fix-flaky-unittest branch from 2e15cfe to 5df0b36 Compare March 31, 2026 03:08
@fengmk2 fengmk2 changed the title fix(test): add #[serial] to env-var tests to prevent concurrent access races chore(test): add #[serial] to env-var tests to prevent concurrent access races Mar 31, 2026
@graphite-app graphite-app bot merged commit 5df0b36 into main Mar 31, 2026
34 checks passed
@graphite-app graphite-app bot deleted the fix-flaky-unittest branch March 31, 2026 03:22
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