Skip to content

ci: enable runfiles when cross-building Windows E2E tests - #34584

Merged
alan-agius4 merged 2 commits into
angular:mainfrom
alan-agius4:ci/windows-e2e-runfiles
Oct 29, 2026
Merged

alan-agius4 merged 2 commits into
angular:mainfrom
alan-agius4:ci/windows-e2e-runfiles

Conversation

@alan-agius4

Copy link
Copy Markdown
Collaborator

When cross-building the Windows E2E targets on Linux with --platforms=tools:windows_x64, @bazel_lib//lib:enable_runfiles evaluates to False unless --enable_runfiles is passed, causing aspect_rules_js to generate the test launcher script with JS_BINARY__NO_RUNFILES=1.

In aspect_rules_js 3.5.2 (see #34578), JS_BINARY__NO_RUNFILES=1 resolves the entry point using JS_BINARY__BINDIR (bazel-out/k8-fastbuild/bin) instead of BAZEL_BINDIR (.), which fails on Windows CI where the tests are executed from the built .runfiles directory tree. Passing --enable_runfiles during the Windows E2E cross-build ensures the launcher script resolves the entry point from the runfiles directory.

When cross-building the Windows E2E targets on Linux with
`--platforms=tools:windows_x64`, `@bazel_lib//lib:enable_runfiles`
evaluates to `False` unless `--enable_runfiles` is passed, causing
`aspect_rules_js` to generate the test launcher script with
`JS_BINARY__NO_RUNFILES=1`.

In `aspect_rules_js` 3.5.2, `JS_BINARY__NO_RUNFILES=1` resolves the
entry point using `JS_BINARY__BINDIR` (`bazel-out/k8-fastbuild/bin`)
instead of `BAZEL_BINDIR` (`.`), which fails on Windows CI where the
tests are executed from the built `.runfiles` directory tree. Passing
`--enable_runfiles` during the Windows E2E cross-build ensures the
launcher script resolves the entry point from the runfiles directory.
@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@angular-robot angular-robot Bot added the area: build & ci Related the build and CI infrastructure of the project label Oct 29, 2026
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Oct 29, 2026
@alan-agius4
alan-agius4 requested a review from crisbeto October 29, 2026 08:43
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Oct 29, 2026
@alan-agius4
alan-agius4 merged commit f611312 into angular:main Oct 29, 2026
41 of 42 checks passed
@alan-agius4
alan-agius4 deleted the ci/windows-e2e-runfiles branch October 29, 2026 09:02
@alan-agius4

Copy link
Copy Markdown
Collaborator Author

This PR was merged into the repository. The changes were merged into the following branches:

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

Labels

action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants