Repository navigation
fix(vite): resolve cached Veryl imports inside and outside the root - #1596
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 134292d54d
ℹ️ 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".
134292d to
f383c07
Compare
Revision history
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f383c07ccc
ℹ️ 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".
|
Queued — the merge queue status continues in this comment ↓. |
f383c07 to
3befcd9
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3befcd9a28
ℹ️ 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".
3befcd9 to
22e7add
Compare
Merge Queue Status
This pull request spent 1 hour 57 minutes 7 seconds in the queue, including 23 minutes 29 seconds running CI. ReasonThe merge conditions cannot be satisfied due to failing checks
Failing checks: HintYou may have to fix your CI before adding the pull request to the queue again. Requeued — the merge queue status continues in this comment ↓. |
22e7add to
c0273d9
Compare
Merge Queue Status
This pull request spent 1 hour 47 minutes 45 seconds in the queue, including 23 minutes 49 seconds running CI. ReasonThe merge conditions cannot be satisfied due to failing checks
Failing checks: HintYou may have to fix your CI before adding the pull request to the queue again. Requeued — the merge queue status continues in this comment ↓. |
Vitest's persistent cache replays imports as Vite root-relative URLs or /@fs/ URLs for sources outside the Vite root. Resolve both forms to their canonical source, project and watch IDs so warm runs load generated JavaScript instead of raw Veryl. Prefer the Vite-root candidate for cached URLs outside the project's absolute namespace even if an unrelated host path exists. A matching project prefix only preserves an absolute identity when that file exists; otherwise try the Vite-root candidate too. Preserve canonical absolute project IDs and explicit /@fs/ identities, virtual-module ownership and optional watch-file behavior. Add real-file collision, prefix-shaped URL (including projectRoot=/) and source/query resolution regressions. Run the injected component fixture cold and warm in both internal and external project layouts. Normalize the fixture's absolute test include path to forward slashes so Vitest also discovers the test on Windows. Preserve the canonical watch identity of absent optional configuration when replaying cached root-relative URLs, including the Windows drive letter. Validation: - External /@fs/ and colliding-host regressions reproduce before their fixes. Both prefix-shaped URL regressions also fail on the previous head. - Vite package tests: 132 passed; cold/warm fixtures pass in both layouts (8 assertions). - Dependency, source/client-build, build-watch and component-watch checks pass. - TypeScript build, plugin/playground type checks, plugin Biome and diff checks pass. - NAPI rebuilt from unmodified master Rust sources independently of the struct fix. Windows fixture follow-up validation: - Rebuilt NAPI and JS packages; reran the Vite package tests and fixture end-to-end checks on Linux. - Explicit fixture-config TypeScript check and Biome formatting/lint output check pass. - Reproduced the internal warm-cache failure on Windows with Node 24.12.0, pnpm 12.13.0 and the Windows NAPI artifact from CI run 39440394247. - Windows: CI JS test command passes (422 runtime tests, 130 Vite tests with 2 existing platform skips, cold/warm internal/external fixtures and dependency/source/build/component watch checks). - Added absent-config watch-identity regression: fails before the fix and passes afterward on Linux and Windows. - Linux: Vite package tests (132 passed), fixture checks, playground typecheck and plugin Biome pass. Change-Id: I7613c2a332df5a43a7aac5b09e73207f05bc269d
c0273d9 to
1630232
Compare
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Merge Queue Status
This pull request spent 29 minutes 43 seconds in the queue, including 28 minutes 7 seconds running CI. Required conditions to merge
|
Vitest's persistent cache replays imports as Vite root-relative URLs or
/@fs/ URLs for sources outside the Vite root. Resolve both forms to their
canonical source, project and watch IDs so warm runs load generated
JavaScript instead of raw Veryl. Prefer the Vite-root candidate for cached
URLs outside the project's absolute namespace even if an unrelated host
path exists. A matching project prefix only preserves an absolute identity
when that file exists; otherwise try the Vite-root candidate too. Preserve
canonical absolute project IDs and explicit /@fs/
identities, virtual-module ownership and optional watch-file behavior.
Add real-file collision, prefix-shaped URL (including projectRoot=/) and
source/query resolution regressions. Run the
injected component fixture cold and warm in both internal and external
project layouts. Normalize the fixture's absolute test include path to
forward slashes so Vitest also discovers the test on Windows. Preserve the
canonical watch identity of absent optional configuration when replaying cached
root-relative URLs, including the Windows drive letter.
Validation:
Windows fixture follow-up validation: