Skip to content

Commit 2a9902c

Browse files
author
Takashi Matsuo
authored
testing: remove btlr binary (#589)
fixes #588
1 parent b6056e6 commit 2a9902c

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

ci/btlr

-8.38 MB
Binary file not shown.

ci/cloudbuild/Dockerfile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515
ARG NODE_VERSION=14
1616

17-
FROM node:${NODE_VERSION}-alpine as build
17+
FROM golang:1.19.4-alpine3.17 as build
1818

19-
RUN apk add --no-cache curl tar python3
19+
RUN apk add --no-cache curl tar python3 git
2020

2121
# Install gcloud
2222
RUN curl https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz > /tmp/google-cloud-sdk.tar.gz
@@ -30,9 +30,18 @@ RUN curl https://github.com/googleapis/repo-automation-bots/releases/download/fl
3030
-o /bin/flakybot -s -L \
3131
&& chmod +x /bin/flakybot
3232

33+
# Build btlr
34+
RUN git clone https://github.com/googleapis/btlr.git \
35+
&& cd btlr \
36+
&& git checkout 9d264287b11b3bb556a3b7204c5b61bd1da4d96c \
37+
&& go build \
38+
&& cp btlr /bin/btlr \
39+
&& chmod 0755 /bin/btlr
40+
3341
FROM node:${NODE_VERSION}-alpine
3442

3543
COPY --from=build /bin/flakybot /bin/flakybot
44+
COPY --from=build /bin/btlr /bin/btlr
3645

3746
# Hack for not found error with flakybot
3847
RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2

ci/cloudbuild/run_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export PROJECT_ROOT=$(pwd)
2727
test_script="${PROJECT_ROOT}/ci/cloudbuild/run_single_test.sh"
2828

2929
# btlr binary
30-
btlr_bin="${PROJECT_ROOT}/ci/btlr"
30+
btlr_bin="/bin/btlr"
3131

3232
if [ ${BUILD_TYPE} == "presubmit" ]; then
3333

0 commit comments

Comments
 (0)