Repository navigation
feat(docker): add an extension env slot for the debug variant - #21908
Conversation
An extension could set values for every Docker service through its
docker/ folder, but had no place for values meant only for the debug
services. The debug services now also read the extension's
docker/variants/debug/{all,<service>}.env, right after its docker/ files,
and `env list` shows the GMS file in that position. Only the debug variant
gets an extension slot. With no extension set, the rendered compose model
is unchanged.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014jwVYNVXbAnyBmNyhWCmxi
PR SummaryOverview Debug compose services that already read base debug variant env (frontend, GMS, system-update, MAE consumer, and the shared
Reviewed by Cursor Bugbot for commit 07db30a. Bugbot is set up for automated code reviews on this repo. Configure here. |
Smart test selectionpytest smoke testsMode: active. Only the selection below runs for the pytest smoke tests on this PR (applied:
Selected scopes (82 files or classes, 378 tests)
Add the Playwright E2E testsThis run:
Add the commit |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Summary
An extension (
DATAHUB_ENV_EXTENSION_DIR) can set values for every Docker service through itsdocker/{all,<service>}.env, but had no place for values that should apply only to the debug services. This addsdocker/variants/debug/{all,<service>}.envto the extension, read only by the debug services, right after the extension'sdocker/files (mirroring the base order: service file, then variant file).env/docker/variants/debug/<service>.env(debug system-update, GMS, MAE consumer and frontend) also reads the extension's debug files.env_filelist with non-debug services (actions, AI service, MCE consumer,system-update-debug-postgres-cdc) are unchanged.datahub-dev env listreports the new GMS layer.env/README.mddocuments the slot;debugis the only variant with an extension folder.Stacked on #21905.
Testing
docker/variants/debug/gms.envrenders ondatahub-gms-debug, wins over the same key indocker/gms.env, and does not render ondatahub-gms-quickstart; same for frontend.scripts/dev/testspass.Checklist
🤖 Generated with Claude Code
https://claude.ai/code/session_014jwVYNVXbAnyBmNyhWCmxi
Summary by cubic
Adds a debug-only env slot to the Docker extension so debug services can receive values that don't apply to the normal stack.
Extensions could already set values for every Docker service through
docker/{all,<service>}.env, but had no place for values meant only for debug services (system-update, GMS, MAE consumer, frontend). Those debug services now also readdocker/variants/debug/{all,<service>}.envfrom the extension, right after itsdocker/files, mirroring the base order.datahub-dev env listreports the new GMS layer, andenv/README.mddocuments the slot. Debug services sharing their env files with non-debug services are unchanged, and with no extension set the rendered compose model is identical.Written for commit 07db30a. Summary will update on new commits.