Repository navigation
chore: pin Compose images to those of the chart - #440
Conversation
Docker Compose ran rabbitmq:4.1 and mongo:7.0, floating tags, while the Helm chart pins rabbitmq:4.3.7 and mongo:7.0.45, and Dependabot covered neither file. - docker-compose.yaml runs the chart's image references for MongoDB, RabbitMQ and Flower; tests/test_repository.py checks they match deployment/values.yaml. - Dependabot updates both files in one pull request, with a multi-ecosystem group (service-images) of new docker-compose and helm entries; the helm entry ignores the library chart foca-common, which is bumped by hand. - Development docs and the upgrade notes of 0.6.0 describe the pins and the RabbitMQ upgrade of the Compose setup. Closes #435 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's GuideThe PR aligns Docker Compose with the Helm chart's pinned MongoDB, RabbitMQ, and Flower images, adds RabbitMQ 4.3 compatibility configuration for Celery, enforces cross-file image consistency with a YAML-based test, and groups Dependabot updates so future image bumps remain synchronized. Sequence diagram for RabbitMQ 4.3 Celery compatibilitysequenceDiagram
participant Compose as Docker Compose
participant RabbitMQ
participant Celery
Compose->>RabbitMQ: Mount rabbitmq-foca config
Note over Compose,RabbitMQ: deprecated_features.permit.transient_nonexcl_queues = true
Celery->>RabbitMQ: Queue.declare for transient non-exclusive queues
RabbitMQ-->>Celery: Queue declaration accepted
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #440 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 24 24
Lines 2685 2685
=========================================
Hits 2685 2685 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
RabbitMQ 4.3 denies transient non-exclusive queues by default, which Celery declares (rpc:// result backend, remote control), so the worker of the smoke test never became healthy. Mount the same conf.d setting as FOCA's library chart does for the chart's broker. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Hey - I've reviewed your changes and they look great!
Linked issues
#435 chore: pin Docker Compose images · 1 of 2 met
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Docker Compose uses the chart's exact versions, pinned like the repo's other images (tag plus digest where used). | 🟡 Partly met | The Compose image tags match the chart, but none includes a digest, so the references are not immutable as the issue asks where the repo uses tag-plus-digest pins. |
| 2 | .github/dependabot.yml covers docker-compose.yaml, grouped like the existing docker entry. | ✅ Met | The docker-compose entry is included in the monthly service-images multi-ecosystem group. |
Sourcery assessment
Needs a human reviewer. Compose upgrades RabbitMQ from 4.1 to 4.3.7 while reusing its persisted data volume. If RabbitMQ cannot start with that data, the documented recovery deletes the volume and loses queued tasks; reverting the image cannot restore messages already deleted.
MongoDB 8.0 refuses to start on Linux kernels 6.19 to 7.0.13, so the new docker-compose and helm entries ignore its minor and major updates; patches still come. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Summary
Docker Compose floated on
rabbitmq:4.1andmongo:7.0while the Helm chart pinsrabbitmq:4.3.7andmongo:7.0.45, and Dependabot covered neither file.docker-compose.yamlnow uses exactly the chart's image references (docker.io/library/mongo:7.0.45,docker.io/library/rabbitmq:4.3.7,docker.io/mher/flower:2.0.1); the chart pins patch tags without digests, so Compose does too. Existing comments (MongoDB 8 / kernels) are kept; the header explains the pin.Queue.declare: (541) INTERNAL_ERROR - Feature transient_nonexcl_queues is deprecated, worker unhealthy). Compose now mounts the same setting as FOCA's library chart mounts for the chart's broker (deprecated_features.permit.transient_nonexcl_queues = truein/etc/rabbitmq/conf.d/90-foca.conf), via an inline Composeconfigsentry (needs Docker Compose 2.23 or later).tests/test_repository.py::test_compose_images_of_chartasserts that the Compose images equalmongodb.image,broker.imageandflower.imageofdeployment/values.yaml(it runs without Helm, unliketests/test_chart.py), so the two can't drift..github/dependabot.yml: newdocker-compose(/) andhelm(/deployment) entries in one multi-ecosystem groupservice-images(monthly,target-branch: devon the group), so a bump changes both files in one PR and the drift test passes. Thehelmentry ignoresfoca-common, the library chart that is bumped by hand withChart.lockandcharts.sha256.docs/development.md(Helm chart section: the pins, the check, the Dependabot group; foca-common ignored) anddocs/upgrading.md(To version 0.6.0: Compose's RabbitMQ 4.1 to 4.3.7, MongoDB 7.0.45, what to do if RabbitMQ doesn't start on old data).Closes #435
Dependabot sources
helm/lib/dependabot/helm/file_parser.rbparses files matchingvalues.ya?mland takesimage:strings with a tag (registry/name:tag), soprotes.image(no tag) is left alone. Docker Compose is supported "in a similar way to Docker" (same page).scheduleundermulti-ecosystem-groups;patternsrequired on each entry) and Multi-ecosystem updates, Configuration merging behavior (target-branchis group-only; setting it on an entry is a configuration error).dependabot-2.0.json(0 errors).Verification
pytest tests/test_repository.py: 6 passed; the new test fails against the olddocker-compose.yaml({'rabbitmq': 'rabbitmq:4.1'} != {'rabbitmq': 'docker.io/library/rabbitmq:4.3.7'}).ruff check ./ruff format --check .(0.17.3, as in pre-commit): passed;mypy: no issues in 77 files.helm dependency build deployment(charts.sha256OK): 1614 passed, 11 skippedjsonschemaagainst https://json.schemastore.org/dependabot-2.0.json: 0 errors.docker compose config --quiet(2.39.1): valid. Docker isn't reachable from my sandbox, so the stack ran only in CI.CI passed, including the smoke test with RabbitMQ 4.3.7; the run on 3214119 failed in the smoke test, fixed by 69b89cc).Light lane: configuration (image pins, Dependabot) plus a check with its test and docs; no reviewer subagents, diff reviewed by me.
Declined review findings
None.
Open questions
None. Side note, outside this issue: CI's MongoDB service (
.github/workflows/ci.yml) and the local test example indocs/development.mdstill usemongo:7.0.Follow-up commit 5f7a178 (main session): the new
docker-composeandhelmentries ignore minor and major MongoDB updates, so Dependabot doesn't propose MongoDB 8.0 (kernel issue, see the Compose comment). CI on 5f7a178: all checks passed.🤖 Generated with Claude Code
Summary by Sourcery
Synchronize Docker Compose service images with the Helm chart and automate coordinated dependency updates while preserving RabbitMQ compatibility.
Bug Fixes:
Enhancements:
Documentation:
Tests: