Skip to content

Commit

Permalink
test: reproduce issue bazel-contrib#1305 on buildkite
Browse files Browse the repository at this point in the history
A bit hacky but the issue can be reproduced in run_targets in bazelci. There doesn’t seem to be a run_flags to pass —config=remote so I used shell_commands to set the --platform to linux in a new mac_fake_rbe job on buildkite. This sets up the same scenario where the build with --platform linux selected (as it would be on RBE) but the resulting nodejs_binary runnable target is run on osx.
  • Loading branch information
gregmagolan committed Nov 1, 2019
1 parent c0fdb96 commit 7653a22
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,17 @@ tasks:
- "--platforms=@build_bazel_rules_nodejs//toolchains/node:linux_amd64"
build_targets:
- "//..."
macos_fake_rbe:
name: macos_fake_rbe
platform: macos
shell_commands:
# Reproduce https://github.com/bazelbuild/rules_nodejs/issues/1305
# TODO: switch to use real mac cross-platform RBE on CI when
# https://github.com/bazelbuild/continuous-integration/pull/749
# lands on bazelci master.
- echo 'build --platforms=@rbe_default//config:platform' >> .bazelrc
run_targets:
- "//internal/node/test:no_deps"
windows:
name: windows
platform: windows
Expand Down

0 comments on commit 7653a22

Please sign in to comment.