From b30eb484443d5a8af6d2520d143be3a972f8f1df Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Tue, 12 May 2026 11:43:58 -0400 Subject: [PATCH] test: isolate scheduler-k3s registry tags per bats file Parallel `unit.scheduler-k3s-*` matrix jobs all pushed to the same `savant/rdmtestapp:1` tag on Docker Hub, so a herokuish run pod could pull a CNB or dockerfile image that another job had just overwritten and fail with `exec: "/exec": stat /exec: no such file or directory`. The image-repo-template now embeds the bats file basename so each job owns its own tag namespace. --- tests/unit/test_helper.bash | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_helper.bash b/tests/unit/test_helper.bash index a998d67bc..0424c2a43 100644 --- a/tests/unit/test_helper.bash +++ b/tests/unit/test_helper.bash @@ -706,7 +706,10 @@ install_k3s() { echo "status: $status" assert_success - run /bin/bash -c "dokku registry:set --global image-repo-template '$DOCKERHUB_USERNAME/{{ .AppName }}'" + local test_basename + test_basename="$(basename "$BATS_TEST_FILENAME" .bats)" + + run /bin/bash -c "dokku registry:set --global image-repo-template '$DOCKERHUB_USERNAME/$test_basename-{{ .AppName }}'" echo "output: $output" echo "status: $status" assert_success