Skip to content

typescript: tripwire test for the upstream Windows js_binary launcher bug (part of #13889) - #14260

Merged
TrapsterDK merged 1 commit into
mainfrom
issue-13889-launcher-tripwire
Nov 20, 2026
Merged

TrapsterDK merged 1 commit into
mainfrom
issue-13889-launcher-tripwire

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator

Part of #13889.

Adds //typescript/tests:windows_tool_tests_upstream_launcher (in the windows_tool_tests suite). It asserts that the bazel_lib Windows launcher for @npm_typescript//:tsc is still tsc.bat and that its body, with the rlocation function removed, still runs the sibling .sh without exporting RUNFILES_MANIFEST_FILE. If a bazel_lib or rules_js bump changes this, the test fails with "the upstream Windows js_binary launcher changed; check whether js_build_tool can be removed (#13889)". The js_build_tool docstring now names the test.

Remaining for #13889:

  • Report the bug to bazel-lib. The maintainer posts it, since it goes on a third-party repo.
  • After the tripwire fires on a fixed release, delete js_build_tool and every caller in git grep js_build_tool, the tripwire test, and the typescript/private/proto.bzl:46 note.
  • Verify //examples/adopt-polyglot:consumer_test via evidence.yml on windows_x86_64 and windows_arm64.

Tests:

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hzWDHEg9zNhhTJrJ7t

… bug (part of #13889)

Add //typescript/tests:windows_tool_tests_upstream_launcher, an analysis
test that asserts the bazel_lib Windows launcher still runs the sibling
.sh without exporting RUNFILES_MANIFEST_FILE. It fails, naming #13889,
once a bazel_lib or rules_js bump changes the launcher, so the
js_build_tool shim can be removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hzWDHEg9zNhhTJrJ7t
@TrapsterDK
TrapsterDK force-pushed the issue-13889-launcher-tripwire branch from 8b73476 to 9031294 Compare November 20, 2026 21:30
@TrapsterDK
TrapsterDK merged commit 6af86ea into main Nov 20, 2026
3 of 4 checks passed
@TrapsterDK
TrapsterDK deleted the issue-13889-launcher-tripwire branch November 20, 2026 21:31
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.

1 participant