You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change allows a ts_devserver target to be build with cross platform RBE (host platform is osx or Windows & execution platform is linux) and still run on the host platform.
With cross-platform RBE for OSX & Windows ctx.executable.devserver will be linux as --cpu and --host_cpu must be overridden to k8. However, we still want to be able to run the devserver on the host machine so we need to include the host devserver binary, which is ctx.executable.devserver_host, in the runfiles. For non-RBE and for RBE with a linux host, ctx.executable.devserver & ctx.executable.devserver_host will be the same binary.
Issue for re-visiting this in the future is: Revisit cross-platform RBE mechanics #1415
Its hacky right now. It looks like we will need fixes in Bazel to get it to work properly so this is a place to add context and discuss.
I will add more details here about the hacky way cross-platform RBE currently works with nodejs_binary & ts_devserver and how it should ideally work.
Underlying issue described here:
nodejs_binary incorrectly chooses the target platform with RBE #1305
Hacky fixes introduced here:
fix: fix nodejs_binary cross-platform RBE issue #1305
fix(typescript): fix for cross platform ts_devserver issue #1409
The text was updated successfully, but these errors were encountered: