bazelbuild / bazel

a fast, scalable, multi-language and extensible build system
https://bazel.build
Apache License 2.0
23.16k stars 4.05k forks source link

Path mapping fails for generated multiplex workers #23990

Open fmeum opened 1 week ago

fmeum commented 1 week ago

I've been implementing path mapping in few rule sets and I think I'm either implementing something incorrectly or I've found an issue with path mapping + multiplex worker sandboxing. I'm seeing errors where the worker doesn't get run because the executable isn't present in the sandbox. IOException while preparing the execution environment of a worker

Both path mapping and multiplex sandboxing work on their own:

Here's a minimal repro case as well as the full error (in the README): https://github.com/lucidsoftware/path-mapping-bug-repro You can repro with bazel build example. The worker doesn't do anything, but it doesn't need to in order to repro the bug as we're not getting to the point where the worker actually runs.

Originally posted by @jjudd in https://github.com/bazelbuild/bazel/discussions/22658#discussioncomment-10918092

fmeum commented 1 week ago

@bazel-io fork 8.0.0

fmeum commented 1 week ago

@bazel-io fork 7.4.0