ci: unique qdrant container name per run — parallel workflows on one host clash
PR Checks / hadolint (pull_request) Successful in 41s
Docker Build and Push / test (pull_request) Successful in 4m14s
Docker Build and Push / integration-test (pull_request) Failing after 4m23s
Docker Build and Push / build (pull_request) Skipped
PR Checks / pytest (pull_request) Successful in 3m52s
PR Checks / build-test (pull_request) Successful in 5m26s

Two concurrent jobs (docker-build + PR Checks on the same push) both
used container name 'qdrant'; the second job's 'docker rm -f qdrant'
destroyed the first job's Qdrant mid-run, so the test collection 404'd.
Name is now qdrant-${{ github.run_id }} everywhere (cleanup included).
This commit is contained in:
OpenCode Cabillot committed 2026-10-09 01:28:43 +00:00
1 parent 55841310bb
commit aa30111a8e
4 files changed
+12 -12

No files matched your search

+3 -3
View File
@@ -37,11 +37,11 @@ jobs:
- name: Cleanup old Qdrant container
run: |
docker rm -f mcp-maildir-ci-qdrant 2>/dev/null || true
docker rm -f qdrant-${{ github.run_id }} 2>/dev/null || true
- name: Start Qdrant
run: |
docker run -d --name mcp-maildir-ci-qdrant \
docker run -d --name qdrant-${{ github.run_id }} \
--network "container:$(hostname)" \
docker.io/qdrant/qdrant:latest
@@ -68,7 +68,7 @@ jobs:
- name: Cleanup Qdrant
if: always()
run: docker rm -f mcp-maildir-ci-qdrant || true
run: docker rm -f qdrant-${{ github.run_id }} || true
build-push:
needs: [test, integration-test]