Skip to content

windows: route vite, astro, framework tsc and tsc_gate tools through js_build_tool (closes #13890) - #13927

Merged
TrapsterDK merged 3 commits into
mainfrom
fix-13890-windows-build-tools
Nov 19, 2026
Merged

TrapsterDK merged 3 commits into
mainfrom
fix-13890-windows-build-tools

Conversation

@TrapsterDK

@TrapsterDK TrapsterDK commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #13890

Stacks on #13857 (js_build_tool); base is fix-13788-tsc-windows-runfiles. Rebase with git rebase --onto origin/main after that squash-merges.

Changes

  • javascript/private/windows_tool.bzl: visible to //astro/...; the shim forwards the tool's execroot_data_files output group, which js_run_binary collects.
  • New js_build_tool aliases, callers repointed:
    • //javascript/private:vite_build_tool (frameworks.bzl _VITE_TOOL)
    • //astro/private:astro_build_tool (astro/private/defs.bzl)
    • //javascript/private/quality/bin:{astro,mdx,svelte,vue}_tsc_tool (tsc_aspect defaults)
    • //typescript/private/quality:tsc_gate_tool (tsc_gate default)
  • typescript/tests/windows_tool_tests.bzl: shim, Windows-select and default-select cases for tsc, vite and svelte_tsc; the shim test asserts execroot_data_files.
  • //typescript/tests:windows_ts_actions: builds hello_lib and the svelte vite app //svelte/tests/app:site, runs hello_typecheck_test (tsc_gate) and the svelte tsc aspect tests. The plan named hello_lib_typecheck_test, which does not exist; typescript_library has no gate, so hello_typecheck_test is used.
  • ci.yml starter-consumer, windows_x86_64 shard 1: runs //typescript/tests:windows_ts_actions.

Verification

  • Linux action keys (aquery --output=jsonproto, deps() of //svelte/tests/app:site_dist, //svelte/tests/typecheck:clean_stdout_report, //typescript/tests/fixtures/hello:hello_typecheck): 2164 keys, identical before and after.
  • bazel test //typescript/tests:windows_ts_actions: 13 tests pass.
  • tools/dx check --apply --affected: fails only outside this PR (//rust/tests/fixtures/native_call:native_mixed_crt real_aspect ownership error; generate refused out-of-scope edits).
  • Nested-Bazel and consumer tests were not run locally.
  • Windows evidence: https://github.com/devhusdk/rules_dx/actions/runs/44521973020 failed before running tests, at the known //tools/ci/producers:producers_bin rules_python lockfile error ("The module extension '@@rules_python+//python/extensions:python.bzl%python' for platform os:windows,arch:amd64 does not exist in the lockfile"). Draft until a Windows run gets past it.
  • tools/dx test --affected and the final tools/dx check --affected were stopped at the local time limit (queued behind the 20-minute dx check --apply).

Follow-ups: #13917, #13918. Shim removal: #13889.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K

TrapsterDK and others added 3 commits November 19, 2026 13:27
…Windows (closes #13788)

The bazel_lib 3.8.0 Windows launcher starts the sibling bash script without
exporting a runfiles location, so js_binary tools in build actions fail with
"RUNFILES environment variable is not set". typescript_* now passes ts_project
an action_tool wrapper that sets RUNFILES_MANIFEST_FILE to its own runfiles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K
…d by alias (#13788)

Replace action_tool with javascript/private/windows_tool.bzl: js_build_tool
defines an alias that selects windows_js_tool_shim on @platforms//os:windows
and the @npm_typescript launcher everywhere else, so Linux and macOS action
keys are unchanged. The quality tsc gate uses the same alias. Analysis tests
cover the shim content, its runfiles and the select on both platforms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K
…js_build_tool (closes #13890)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K
@TrapsterDK
TrapsterDK force-pushed the fix-13890-windows-build-tools branch from 43820ae to e00a707 Compare November 19, 2026 12:27
@TrapsterDK
TrapsterDK changed the base branch from fix-13788-tsc-windows-runfiles to main November 19, 2026 12:28
@TrapsterDK
TrapsterDK merged commit d738427 into main Nov 19, 2026
1 check failed
@TrapsterDK
TrapsterDK deleted the fix-13890-windows-build-tools branch November 19, 2026 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-review Touches review paths; needs a second-session Review: comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

windows: route vite_tool and the framework tsc launchers through js_build_tool, add a Windows TS action check (part of #13788)

1 participant