Skip to content

windows: route the docs js_binary tools (component_meta, typedoc) through js_build_tool (part of #13788) #13917

Closed

Description

@TrapsterDK

Part of #13788. Follows #13890, which routes vite_tool, astro_tool, tsc_gate and the four framework tsc launchers through js_build_tool. The docs tools are js_binary targets that also run inside build actions, so on Windows they still hit the bazel_lib 3.8.0 .bat launcher bug (RUNFILES environment variable is not set).

Where

  • tools/docs/components/defs.bzl:10-13: _VUE_COMPONENT_META, _MDX_COMPONENT_META, _SVELTE_COMPONENT_META, _ASTRO_COMPONENT_META, used as js_run_binary tools at :50, :83, :116, :149. Targets are in javascript/private/quality/bin/BUILD.bazel:178-224.
  • tools/docs/typescript/defs.bzl:54: js_run_binary for typedoc.
  • tools/docs/typescript/aspect.bzl:62-64 and tools/docs/javascript/aspect.bzl:66: _typedoc defaults to //javascript/private/quality/bin:typedoc, run through js_binary_lib.run_binary_action.

Fix

  • Add js_build_tool wrappers (<name>_tool) next to each js_binary in javascript/private/quality/bin/BUILD.bazel. Point the four _*_COMPONENT_META labels, the typedoc js_run_binary tool and both _typedoc defaults at them. Load visibility in javascript/private/windows_tool.bzl already covers //javascript/....
  • Add one svelte or vue component-docs target and one typedoc target to //typescript/tests:windows_ts_actions.
  • Check that Linux action keys don't change, then run one windows_x86_64 evidence run on the suite.

Activity

  1. added
    P2
    on Nov 19, 2026
  2. TrapsterDK commented on Nov 19, 2026

    @TrapsterDK
    CollaboratorAuthor

    Evidence round 1 (44523284436) failed in 'Validate workflow inputs' with the shared Windows runner lockfile error (rules_python ... python extension for platform os:windows,arch:amd64 does not exist in the lockfile), also seen on the #13857/#13927 branches; not caused by #13930. Round 2 dispatched: 44524007501.

  3. TrapsterDK commented on Nov 19, 2026

    @TrapsterDK
    CollaboratorAuthor

    PR #13930 rebased onto main (1840030); earlier evidence runs 44523284436/44524007501 failed only because the old base MODULE.bazel.lock lacked the windows rules_python entry (main has it). New evidence: run 44525502548.

  4. TrapsterDK commented on Nov 19, 2026

    @TrapsterDK
    CollaboratorAuthor

    Remaining for #13917 (PR #13930): one green evidence.yml run of //typescript/tests:windows_ts_actions on windows_x86_64. Run 44525502548 failed only in the 5 *_default_select tests (host-platform select); fixed in PR #13930 head, not yet re-run on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions