Skip to content

testing: remove btlr binary #589

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed ci/btlr
Binary file not shown.
13 changes: 11 additions & 2 deletions ci/cloudbuild/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

ARG NODE_VERSION=14

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

RUN apk add --no-cache curl tar python3
RUN apk add --no-cache curl tar python3 git

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

# Build btlr
RUN git clone https://github.com/googleapis/btlr.git \
&& cd btlr \
&& git checkout 9d264287b11b3bb556a3b7204c5b61bd1da4d96c \
&& go build \
&& cp btlr /bin/btlr \
&& chmod 0755 /bin/btlr

FROM node:${NODE_VERSION}-alpine

COPY --from=build /bin/flakybot /bin/flakybot
COPY --from=build /bin/btlr /bin/btlr

# Hack for not found error with flakybot
RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
Expand Down
2 changes: 1 addition & 1 deletion ci/cloudbuild/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export PROJECT_ROOT=$(pwd)
test_script="${PROJECT_ROOT}/ci/cloudbuild/run_single_test.sh"

# btlr binary
btlr_bin="${PROJECT_ROOT}/ci/btlr"
btlr_bin="/bin/btlr"

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

Expand Down