Skip to content

[lexical-compiler] Bug Fix: Normalize temporary paths in watcher tests - #9195

Merged
etrepum merged 1 commit into
meta:mainfrom
minwookshin:codex/fix-canonical-watcher-fixtures
Sep 25, 2026
Merged

etrepum merged 1 commit into
meta:mainfrom
minwookshin:codex/fix-canonical-watcher-fixtures

Conversation

@minwookshin

Copy link
Copy Markdown
Contributor

Description

On macOS, os.tmpdir() can return a directory under /var while Vite resolves the same files through /private/var. The subpath watcher invalidation test then compares two spellings of the same file and fails its module-ID assertion.

Resolve the temporary directory with fs.realpathSync immediately after creating it, so fixture files and expected IDs share one canonical path. The watcher implementation and assertions are unchanged.

Test plan

  • Before: the complete unit run passes 8,535 tests and fails this watcher assertion on macOS.
  • After: the complete compiler test file passes 70/70. A fresh full unit run in the combined local checkout passes 8,536 tests across 349 files, with one existing skip. No snapshots were updated.
  • Full lint and formatting pass. The combined checkout also includes independent selection and benchmark fixes; this PR contains only the fixture-path change.

Tested on bc4dcc814f66e35b00f8e3b8b235e559f07454f2; the patch also applies cleanly to subsequent 2fd17f0. The complete remote browser/platform matrix remains unverified locally.

AI-assisted implementation and validation with OpenAI Codex.

@vercel

vercel Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
lexical Ready Ready Preview Sep 23, 2026 12:59am UTC
lexical-playground Ready Ready Preview Sep 23, 2026 12:59am UTC

Request Review

@meta-cla

meta-cla Bot commented Sep 23, 2026

Copy link
Copy Markdown

Hi @minwookshin!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@meta-cla

meta-cla Bot commented Sep 25, 2026

Copy link
Copy Markdown

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@etrepum
etrepum enabled auto-merge September 25, 2026 19:35
@etrepum
etrepum added this pull request to the merge queue Sep 25, 2026
Merged via the queue into meta:main with commit a46f956 Sep 25, 2026
13 checks passed
@etrepum etrepum mentioned this pull request Sep 28, 2026

This branch was successfully deployed

2 active deployments
Preview – lexical — 67a71af3 Deployed Sep 23, 2026 by vercel[bot]
Preview – lexical-playground — 67a71af3 Deployed Sep 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants