bazel-contrib / target-determinator

Determines which Bazel targets were affected between two git commits.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[driver] bazel-opts are not passed to test command

alokpr opened this issue · comments

bazel-opts are passed to the cquery command but not to the test command.

$ driver --bazel-opts="--config=asan" main

2023/02/13 13:17:21 Running cquery on deps(//...)
/usr/bin/bazel --output_base redacted cquery --config=asan --output=proto deps(//...)
2023/02/13 13:17:23 Running cquery on //...
/usr/bin/bazel --output_base redacted --config=asan --output=proto //...
2023/02/13 13:17:23 Matching labels to configurations
/usr/bin/bazel --output_base redacted config --output=json --dump_all
2023/02/13 13:17:24 Hashing targets
2023/02/13 13:17:28 Processing revision 'after' (current working directory state)
2023/02/13 13:17:28 Running cquery on deps(//...)
/usr/bin/bazel --output_base redacted cquery --config=asan --output=proto deps(//...)
2023/02/13 13:17:29 Running cquery on //...
/usr/bin/bazel --output_base redacted cquery --config=asan --output=proto //...
2023/02/13 13:17:30 Matching labels to configurations
/usr/bin/bazel --output_base redacted config --output=json --dump_all
2023/02/13 13:17:30 Hashing targets
2023/02/13 13:17:34 Discovered 1 affected targets
2023/02/13 13:17:34 Running test on 1 targets
/usr/bin/bazel test --target_pattern_file /tmp/3689943729

Note that --config=asan is not passed to the test command