Repository navigation
test(windows): build_watch_parses uses the long temp path - #38
Merged
Merged
Conversation
On Windows the temp dir can be a short name (C:\Users\RUNNER~1). tsc names its watches by the real (long) path, so the goport_watch edit under the short path reached no watch and build 2 never started. The scratch dir is now canonical without the verbatim prefix, as in multi_program. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
t3dotgg
added a commit
that referenced
this pull request
Oct 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
mainCI is red on Windows since R189.build_watch_keeps_the_first_json_parse_of_a_cycletimes out withgoport_watch: build 2 did not end(2 of 2 runs, also on #37).Cause: on Windows the test's scratch dir keeps the short temp name (
C:\Users\RUNNER~1\...). tsc names its watches by the real path, which is the long name. So thegoport_watchedit under the short path reached no watch, and build 2 never started. This only affects the test. Real watches get OS events.Fix: canonicalize the scratch dir on Windows too, and strip the
\\?\verbatim prefix (the reason for the old Windows skip). This is the same asmulti_program.rs, whose sibling.d.tstest passes on Windows. Linux and macOS behavior does not change.Made by Claude Opus 5.5 in Claude Code (T3 Code).
🤖 Generated with Claude Code
Note
Fix
scratch_dirtest helper to return canonical, non-verbatim Windows pathsThe
scratch_dirhelper in build_watch_parses.rs now canonicalizes the scratch directory on every platform. On Windows, a new helper converts the canonical verbatim path (drive-letter or UNC) back to ordinary form so it matches the path form used by the TypeScript watcher.Macroscope summarized 7d8638f.
Summary by CodeRabbit