Skip to content

Commit f5d9bc4

Browse files
Added way of specifying test-regex via dockerhub cli
1 parent fdbc16f commit f5d9bc4

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

redis_benchmarks_specification/__cli__/cli.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,23 @@ def trigger_tests_dockerhub_cli_command_logic(args, project_name, project_versio
8787
args.build_arch,
8888
testDetails,
8989
"n/a",
90+
[],
91+
None,
92+
None,
93+
None,
94+
None,
95+
None,
96+
None,
97+
None,
98+
None,
99+
None,
100+
None,
101+
None,
102+
None,
103+
".*",
104+
0,
105+
10000,
106+
args.tests_regexp,
90107
)
91108
build_stream_fields["github_repo"] = args.gh_repo
92109
build_stream_fields["github_org"] = args.gh_org

redis_benchmarks_specification/__self_contained_coordinator__/self_contained_coordinator.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,9 @@ def process_self_contained_coordinator_stream(
846846
"mode": "rw",
847847
},
848848
}
849+
logging.info(
850+
f"setting volume as follow: {volumes}. working_dir={mnt_point}"
851+
)
849852
working_dir = mnt_point
850853
redis_container = docker_client.containers.run(
851854
image=run_image,
@@ -1253,7 +1256,7 @@ def process_self_contained_coordinator_stream(
12531256
)
12541257
except docker.errors.NotFound:
12551258
logging.info(
1256-
"When trying to stop DB container with id {} and image {} it was already stopped".format(
1259+
"When trying to fetch logs from DB container with id {} and image {} it was already stopped".format(
12571260
redis_container.id,
12581261
redis_container.image,
12591262
)
@@ -1295,6 +1298,7 @@ def process_self_contained_coordinator_stream(
12951298
temporary_dir, temporary_dir_client
12961299
)
12971300
)
1301+
12981302
shutil.rmtree(temporary_dir, ignore_errors=True)
12991303
shutil.rmtree(temporary_dir_client, ignore_errors=True)
13001304

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ docker =
1616

1717
deps =
1818
-r{toxinidir}/dev_requirements.txt
19-
# passenv = TST_BUILDER_X,TST_RUNNER_X,GH_TOKEN,TST_REDIS_DIR,DOCKER_HOST,DOCKER_TLS_VERIFY,DOCKER_CERT_PATH
19+
20+
21+
passenv = TST_BUILDER_X,TST_RUNNER_X,GH_TOKEN,TST_REDIS_DIR,DOCKER_HOST,DOCKER_TLS_VERIFY,DOCKER_CERT_PATH
2022

2123
stoponfail =
2224
True

0 commit comments

Comments
 (0)