Skip to content

Commit bc01eff

Browse files
committed
toolset: Fix the --force-rm option
Also, clean up the wrk Dockerfile. Signed-off-by: Anton Kirilov <antonvkirilov@proton.me>
1 parent fe1810b commit bc01eff

File tree

4 files changed

+5
-14
lines changed

4 files changed

+5
-14
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ jobs:
155155
# run-ci.py runs the diffing to see if github actions needs to test this framework. Ideally/eventually,
156156
# we'd like to try and do the diffing before github_actions_clean & setup.
157157
# This will run the tests exactly as you would in your own vm:
158-
docker network create tfb > /dev/null 2>&1 && docker run --network=tfb -e USER_ID=$(id -u) -e CI=true -v /var/run/docker.sock:/var/run/docker.sock --mount type=bind,source=`pwd`,target=/FrameworkBenchmarks techempower/tfb --mode verify --test-dir $RUN_TESTS --results-environment Github-Actions;
158+
docker network create tfb > /dev/null 2>&1 && docker run --network=tfb -e USER_ID=$(id -u) -e CI=true -v /var/run/docker.sock:/var/run/docker.sock --mount type=bind,source=`pwd`,target=/FrameworkBenchmarks techempower/tfb --mode verify --force-rm --test-dir $RUN_TESTS --results-environment Github-Actions;
159159
dependabot:
160160
needs: verify
161161
runs-on: ubuntu-latest

toolset/continuous/tfb-startup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ docker run \
4747
--results-environment "$TFB_ENVIRONMENT" \
4848
--results-upload-uri "$TFB_UPLOAD_URI" \
4949
$(if [ "$TFB_RUN_ORDER" = "reverse" ]; then echo "--reverse-order"; fi) \
50+
--force-rm \
5051
--quiet
5152

5253
echo "zipping the results"

toolset/run-tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def main(argv=None):
210210
help='Extra docker arguments to be passed to the test container')
211211
parser.add_argument(
212212
'--force-rm',
213-
default=False,
213+
action='store_true',
214214
help='Remove intermediate docker containers after running.')
215215

216216
# Network options

toolset/wrk/wrk.dockerfile

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
FROM ubuntu:24.04
22

3-
# Required scripts for benchmarking
4-
COPY concurrency.sh pipeline.lua pipeline.sh query.sh ./
5-
63
ARG DEBIAN_FRONTEND=noninteractive
74
RUN apt-get install --no-install-recommends -qqUy curl wrk > /dev/null
85

9-
# Environment vars required by the wrk scripts with nonsense defaults
10-
ENV accept=accept \
11-
duration=duration \
12-
levels=levels \
13-
max_concurrency=max_concurrency \
14-
max_threads=max_threads \
15-
name=name \
16-
pipeline=pipeline \
17-
server_host=server_host
6+
# Required scripts for benchmarking
7+
COPY concurrency.sh pipeline.lua pipeline.sh query.sh ./

0 commit comments

Comments
 (0)