Skip to content

Commit

Permalink
Merge pull request #71 from privacysandbox/release-0.49.1
Browse files Browse the repository at this point in the history
Release 0.49.1
  • Loading branch information
pmeric authored Oct 30, 2023
2 parents d8ff8bf + 4d133af commit 2755bc2
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 8 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.

## 0.49.1 (2023-10-30)


### Bug Fixes

* Add tools/wrk2 wrapper script

## 0.49.0 (2023-10-27)


Expand Down
13 changes: 7 additions & 6 deletions images/test-tools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ ADD https://github.com/shekyan/slowhttptest/archive/refs/tags/v1.9.0.tar.gz /bui
RUN tar xz --strip-components 1 -f src.tar.gz && ./configure && make

FROM alpine:3.18 as wrk_builder
# hadolint ignore=DL3018
RUN apk add --no-cache autoconf automake build-base git openssl-dev zlib-dev
ARG TARGETARCH
ENV BUILD_ARCH="${TARGETARCH}"
COPY build_wrk /build/
WORKDIR /build
ADD https://github.com/giltene/wrk2/archive/44a94c17d8e6a0bac8559b53da76848e430cb7a7.tar.gz /build/wrk.tar.gz
RUN tar xz --strip-components 1 -f wrk.tar.gz && make -j6
ADD https://github.com/giltene/wrk2/archive/44a94c17d8e6a0bac8559b53da76848e430cb7a7.tar.gz /build/src.tar.gz
RUN /build/build_wrk

FROM golang:1.21-alpine3.18 AS golang
ENV BUILD_ARCH="${TARGETARCH}" \
GOBIN=/usr/local/go/bin
ENV GOBIN=/usr/local/go/bin
COPY build_golang_apps /scripts/
RUN /scripts/build_golang_apps

Expand All @@ -44,3 +44,4 @@ ENV BUILD_ARCH="${TARGETARCH}" \
COPY install_apps /scripts/
RUN /scripts/install_apps
COPY --from=slowhttptest_builder /build/src/slowhttptest /usr/bin/
COPY --from=wrk_builder /build/wrk /usr/bin/wrk2
27 changes: 27 additions & 0 deletions images/test-tools/build_wrk
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/busybox sh

set -o errexit
set -o xtrace

install_no_wrk() {
cat <<EOF >/build/wrk
#!/bin/busybox sh
PROGRAM_NAME="\$(basename \$0)"
printf "Error: %s not supported on Aarch64\n" "\${PROGRAM_NAME}"
printf "build_arch: %s\n" "${BUILD_ARCH}" >/dev/stderr
exit 1
EOF
chmod 755 /build/wrk
}

install_wrk() {
apk add --no-cache build-base git openssl-dev zlib-dev
tar xz --strip-components 1 -f src.tar.gz
make -j6
}

if [[ ${BUILD_ARCH} == arm64 ]]; then
install_no_wrk
else
install_wrk
fi
2 changes: 1 addition & 1 deletion tests/data/hashes/test-tools
Original file line number Diff line number Diff line change
@@ -1 +1 @@
48ec49fead076d09cfeaad6de7466d33300972e8f9a678c99d16321ac5ae74a4
dd1ec6137d4dd22fec555044cd85f484adfa6c7b686880ea5449cff936bad34e
1 change: 1 addition & 0 deletions tools/wrk2
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.49.0
0.49.1

0 comments on commit 2755bc2

Please sign in to comment.