Skip to content

Commit 0447a16

Browse files
committed
devtool: Build A and B binaries if $do_build is true
If `cmd_test` is instructed to build its own binaries (e.g. being ran outside of CI), and the environment specifies that A/B-tests should be ran, then we not only need to build the currently checked out commit (the "B" revision), but also an "A" binary based on the value of the `BUILDKITE_PULL_REQUEST_BASE_BRANCH` environment variable. Signed-off-by: Patrick Roy <[email protected]>
1 parent 94826a8 commit 0447a16

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/devtool

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,12 @@ cmd_test() {
722722
ensure_devctr
723723
ensure_build_dir
724724
ensure_ci_artifacts
725+
if [ $do_build != 0 ]; then
726+
cmd_build --release
727+
if [ -n "$BUILDKITE_PULL_REQUEST_BASE_BRANCH" ]; then
728+
cmd_build --release --rev "$BUILDKITE_PULL_REQUEST_BASE_BRANCH"
729+
fi
730+
fi
725731
[ $do_build != 0 ] && cmd_build --release
726732

727733
apply_linux_61_tweaks

0 commit comments

Comments
 (0)