Skip to content

[Bug]: js_image_layer splitter breaks compatibility with container_test on macos in latest version #2206

Open
@Aghassi

Description

@Aghassi

What happened?

What we saw in the most recent version is js_image_layer now will fail a container_test as it seems to embed the wrong node toolchain given the platform as macos. Here is theoutput we saw internally

  (cd /private/var/tmp/_bazel_username/bb7b3564bee62e3f03df1d433a591137/sandbox/darwin-sandbox/1443/execroot/company && \
  exec env - \
    TMPDIR=/var/folders/bg/y3dtg0gj387f6cdjl4k46g7m0000gn/T/ \
  /usr/bin/sandbox-exec -f /private/var/tmp/_bazel_username/bb7b3564bee62e3f03df1d433a591137/sandbox/darwin-sandbox/1443/sandbox.sb /var/tmp/_bazel_username/install/96e26d97222159f904e14600d7490eb0/process-wrapper '--timeout=0' '--kill_delay=15' '--stats=/private/var/tmp/_bazel_username/bb7b3564bee62e3f03df1d433a591137/sandbox/darwin-sandbox/1443/stats.out' external/nodejs_linux_amd64/bin/nodejs/bin/node bazel-out/darwin_arm64-fastbuild-ST-d3aa92d73336/bin/project/src/e2e/layers_js_image_layer_splitter.mjs)
external/nodejs_linux_amd64/bin/nodejs/bin/node: external/nodejs_linux_amd64/bin/nodejs/bin/node: cannot execute binary file
Target //project/src/e2e:container_test failed to build

Version

Development (host) and target OS/architectures:

Output of bazel --version: 7.3

Version of the Aspect rules, or other relevant rules from your
WORKSPACE or MODULE.bazel file:

Language(s) and/or frameworks involved: 2.3.5 rules_js, Node 18

How to reproduce

I don't have a simple repro yet, but feeding a js_image_layer target into container_test is how we spotted this.

Any other information?

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions