ci: reach the rabbitmq service by network alias instead of a host port #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/rabbitmq-service-host-port-collision"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes the runner failure on task 1980 (and 1981-1983):
Root cause
The
rabbitmq-routingservice declaredports: [5672:5672], which publishes0.0.0.0:5672on the shared runner host (source-build, runner a445892c, capacity 20). The push run and the PR run of the same commit execute concurrently (different concurrency groups), so the second job's service container creation collides on the host port and the job dies before any step runs.rabbitmq-routinghas never passed on this runner for this reason.Fix
portsmapping: the service container joins the job's Docker network with DNS aliasrabbitmq(verified by livedocker inspecton the runner host: both job and service onstarintel-actions, service aliasrabbitmq, no port bindings). No host publishing → no cross-job collision.127.0.0.1(separate network namespaces), so the integration tests readBBPD_TEST_RABBITMQ_HOST(default127.0.0.1, preserving local/GitHub behavior) and the workflow overrides it to the service alias.Verification
BBPD_TEST_RABBITMQ_HOSTcompileall,ruff,pytest)Follow-up found while verifying
The
python/determinismjobs also fail: they check outlost-rob0t/starintel-gpt-auto-dig, which does not exist on this forge (the schema repo lives atnsaspy/starintel-gpt-auto-dig). Worth a separate fix if those jobs should gate merges here.