Skip to content

Commit 5e14b91

Browse files
authored
toolset: Fix the --force-rm option (#10286)
* toolset: Fix the --force-rm option Also, clean up the wrk Dockerfile. Signed-off-by: Anton Kirilov <[email protected]> * Address code review comments --------- Signed-off-by: Anton Kirilov <[email protected]>
1 parent ce91d99 commit 5e14b91

File tree

3 files changed

+4
-14
lines changed

3 files changed

+4
-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/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)