Repository navigation
refactor(docker): move service env files to env/docker - #21819
devashish2203 wants to merge 4 commits into
Conversation
Pure move of the six DataHub service env files from docker/<service>/env/docker.env to env/docker/<service>.env. The old paths stay as relative symlinks for one release. Compose env_file paths, the upgrade script, the mysql fragment and docs point at the new files. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
PR SummaryOverview Consumers now point at the new paths: compose profiles, the MySQL fragment, Tooling is aligned: CI path filters include Reviewed by Cursor Bugbot for commit 154370a. Bugbot is set up for automated code reviews on this repo. Configure here. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
✅ Meticulous evaluated 220 user flows and determined via code coverage that none of them exercise the code changed in this PR, so no replays were executed. View results. Last updated for commit |
There was a problem hiding this comment.
All reported issues were addressed across 32 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
Smart test selectionpytest smoke testsMode: active. Only the selection below runs for the pytest smoke tests on this PR (applied:
Selected scopes (81 files or classes, 377 tests)
Add the Playwright E2E testsThis run:
Add the commit |
|
Meticulous agent swarm testing found no browser-testable changes on
|
Initial JS bundle size ➡️
|
Boot web vitals (no backend)Unauthenticated /login against the two dist/ trees from this job. No GMS — this is eager JS, not search/dataset payload. Lantern, desktop, 1x CPU. Does not forecast fleet p75; do not gate on LCP. Web-vitals A/B — base (bd54830) (A) vs pr (154370a) (B)Lighthouse 12.8.2, throttling simulate (cpu 1x, rtt 40 ms, 10240 kbps). Form factor: desktop. Cache: cold (fresh incognito context per run). target n=3/build, 1 warm-up discarded, alternating A,B. Boot-only (no GMS). Unauthenticated login route — eager JS/CSS/font transfer and parse, not search/dataset payload. Do not treat as a fleet p75.
|
| metric | A p50 | B p50 | Δ p50 | Δ% | A p95 | B p95 |
|---|---|---|---|---|---|---|
| fcp | 847 ms | 840 ms | -7 ms | -0.9% | 848 ms | 842 ms |
| lcp | 1294 ms | 1285 ms | -9 ms | -0.7% | 1297 ms | 1286 ms |
| cls | 0.0000 | 0.0000 | 0.0000 | — | 0.0000 | 0.0000 |
| tbt | 5 ms | 6 ms | 0 ms | +0.0% | 8 ms | 6 ms |
| tti | 1295 ms | 1286 ms | -9 ms | -0.7% | 1298 ms | 1287 ms |
| ttfb | 1 ms | 1 ms | 0 ms | -2.6% | 1 ms | 1 ms |
| transferredBytes | 1077.0 KB | 1077.0 KB | 0.0 KB | +0.0% | 1077.0 KB | 1077.0 KB |
| mainThread | 253 ms | 235 ms | -18 ms | -7.0% | 259 ms | 239 ms |
| bootup | 127 ms | 124 ms | -3 ms | -2.4% | 137 ms | 126 ms |
Resource transfer by type (p50):
| type | A bytes | B bytes | Δ bytes | A requests | B requests |
|---|---|---|---|---|---|
| document | 1.3 KB | 1.3 KB | 0.0 KB | 1 | 1 |
| script | 645.2 KB | 645.2 KB | 0.0 KB | 8 | 8 |
| stylesheet | 3.0 KB | 3.0 KB | 0.0 KB | 2 | 2 |
| image | 48.7 KB | 48.7 KB | 0.0 KB | 1 | 1 |
| media | 257.3 KB | 257.3 KB | 0.0 KB | 1 | 1 |
| font | 106.6 KB | 106.6 KB | 0.0 KB | 3 | 3 |
| other | 0.0 KB | 0.0 KB | 0.0 KB | 0 | 0 |
LCP element A: div > div.sc-fpAkvV > div.sc-pRPz > p.sc-pNWdM — Welcome to DataHub
LCP element B: div > div.sc-fpAkvV > div.sc-pRPz > p.sc-pNWdM — Welcome to DataHub
These numbers rank changes and gate regressions against the measured origin(s). They do not sum across PRs and do not forecast any fleet-wide production number.
…tignore exception The env symlinks are already tracked, so the .gitignore exception for them has no effect. The README examples use a path relative to docker/datahub-upgrade/, which they now say. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
1 issue found across 32 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="docs/deploy/aws.md">
<violation number="1" location="docs/deploy/aws.md:322">
P3: The link now points only to `env/docker/gms.env`, but the sentence says the "env files" for datahub-gms are there. Link to the `env/docker/` directory instead, or reword to say the base GMS env file is at this path.</violation>
</file>
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
| - `datahub docker quickstart --quickstart-compose-file docker/quickstart/docker-compose.quickstart-profile.yml` | ||
| 2. If you are not using quickstart recipes, you can modify environment variable in GMS to point to the ES instance. The | ||
| env files for datahub-gms are located [here](../../docker/datahub-gms/env/). | ||
| env files for datahub-gms are located [here](../../env/docker/gms.env). |
There was a problem hiding this comment.
P3: The link now points only to env/docker/gms.env, but the sentence says the "env files" for datahub-gms are there. Link to the env/docker/ directory instead, or reword to say the base GMS env file is at this path.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At docs/deploy/aws.md, line 322:
<comment>The link now points only to `env/docker/gms.env`, but the sentence says the "env files" for datahub-gms are there. Link to the `env/docker/` directory instead, or reword to say the base GMS env file is at this path.</comment>
<file context>
@@ -319,7 +319,7 @@ in datahub to point to the specific ES instance -
- `datahub docker quickstart --quickstart-compose-file docker/quickstart/docker-compose.quickstart-profile.yml`
2. If you are not using quickstart recipes, you can modify environment variable in GMS to point to the ES instance. The
- env files for datahub-gms are located [here](../../docker/datahub-gms/env/).
+ env files for datahub-gms are located [here](../../env/docker/gms.env).
Further, you can find a list of properties supported to work with a custom ES
</file context>
| env files for datahub-gms are located [here](../../env/docker/gms.env). | |
| env files for datahub-gms are located [here](../../env/docker/). |
|
Stack-wide notes from reviewing #21819–#21862. I put them here because #21819 is where the 1. CI does not watch
2. The 3. The group-file list is repeated by hand (medium) Once #21862 lands, the |
The service env files now live under env/docker/. A PR that edits only them matched none of the docker/** filters, so Docker build and smoke jobs could be skipped. The docs impact check also globbed only the old docker/*/env/* location. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
3 issues found across 35 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name=".github/actions/ci-optimization/action.yml">
<violation number="1" location=".github/actions/ci-optimization/action.yml:85">
P2: This exact-file glob misses the debug frontend variant that PR 21828 adds (`env/docker/variants/debug/frontend.env`), so changes there will not set `frontend-change`. Use a globstar so variant files match too: `"env/docker/**/frontend.env"`.</violation>
<violation number="2" location=".github/actions/ci-optimization/action.yml:117">
P3: `env/**` also matches `env/README.md`, so documentation-only edits set `backend-change` and enable backend test jobs. Restrict this backend pattern to runtime env files, such as `env/**/*.env`.</violation>
<violation number="3" location=".github/actions/ci-optimization/action.yml:148">
P2: This exact-file glob will not match the postgres actions variant (`env/docker/variants/postgres/actions.env`) added later in the stack, so `actions-change` will stay false for it. Use a globstar so the variant matches too: `"env/docker/**/actions.env"`.</violation>
</file>
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
| actions: | ||
| - "datahub-actions/**" | ||
| - "docker/datahub-actions/**" | ||
| - "env/docker/actions.env" |
There was a problem hiding this comment.
P2: This exact-file glob will not match the postgres actions variant (env/docker/variants/postgres/actions.env) added later in the stack, so actions-change will stay false for it. Use a globstar so the variant matches too: "env/docker/**/actions.env".
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At .github/actions/ci-optimization/action.yml, line 148:
<comment>This exact-file glob will not match the postgres actions variant (`env/docker/variants/postgres/actions.env`) added later in the stack, so `actions-change` will stay false for it. Use a globstar so the variant matches too: `"env/docker/**/actions.env"`.</comment>
<file context>
@@ -135,13 +137,15 @@ runs:
actions:
- "datahub-actions/**"
- "docker/datahub-actions/**"
+ - "env/docker/actions.env"
java-client:
- "metadata-integration/java/datahub-client/**"
</file context>
| - "env/docker/actions.env" | |
| - "env/docker/**/actions.env" |
| - "datahub-frontend/**" | ||
| - "datahub-web-react/**" | ||
| - "docker/datahub-frontend/**" | ||
| - "env/docker/frontend.env" |
There was a problem hiding this comment.
P2: This exact-file glob misses the debug frontend variant that PR 21828 adds (env/docker/variants/debug/frontend.env), so changes there will not set frontend-change. Use a globstar so variant files match too: "env/docker/**/frontend.env".
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At .github/actions/ci-optimization/action.yml, line 85:
<comment>This exact-file glob misses the debug frontend variant that PR 21828 adds (`env/docker/variants/debug/frontend.env`), so changes there will not set `frontend-change`. Use a globstar so variant files match too: `"env/docker/**/frontend.env"`.</comment>
<file context>
@@ -82,6 +82,7 @@ runs:
- "datahub-frontend/**"
- "datahub-web-react/**"
- "docker/datahub-frontend/**"
+ - "env/docker/frontend.env"
ingestion:
- "metadata-ingestion-modules/**"
</file context>
| - "env/docker/frontend.env" | |
| - "env/docker/**/frontend.env" |
| - "docker/datahub-ingestion-base/**" | ||
| docker: | ||
| - "docker/**" | ||
| - "env/**" |
There was a problem hiding this comment.
P3: env/** also matches env/README.md, so documentation-only edits set backend-change and enable backend test jobs. Restrict this backend pattern to runtime env files, such as env/**/*.env.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At .github/actions/ci-optimization/action.yml, line 117:
<comment>`env/**` also matches `env/README.md`, so documentation-only edits set `backend-change` and enable backend test jobs. Restrict this backend pattern to runtime env files, such as `env/**/*.env`.</comment>
<file context>
@@ -113,6 +114,7 @@ runs:
- "docker/datahub-ingestion-base/**"
docker:
- "docker/**"
+ - "env/**"
backend:
- "metadata-models/**"
</file context>
| - "env/**" | |
| - "env/**/*.env" |
Summary
Pure move of the six DataHub service env files from
docker/<service>/env/docker.envtoenv/docker/<service>.env(gms,system-update,frontend,actions,mae-consumer,mce-consumer). No values change. This is the first step of layering Docker env underenv/.env_filepaths underdocker/profiles/, the mysql fragment,datahub-upgrade.sh, docs (including the env file link indocs/deploy/aws.md) andenv/README.mduse the new paths.datahub-upgradeREADME says itsdocker run --env-fileexamples run fromdocker/datahub-upgrade/, since the env file path is relative to that folder.docker.postgres.env,docker-without-neo4j.env, ...) and allenvironment:blocks are untouched.Verification
docker compose configenv for every profile and service, before and after: identical (33 profiles, 231 profile/service pairs). Thedebug-frontendprofile does not render alone, before or after../gradlew :docker:generateQuickstartComposeConfig, thengit diff --exit-code docker/quickstart/: clean.python3 smoke-test/check_env_parity.py: exit 0.Checklist
🤖 Generated with Claude Code
Summary by cubic
Moves the DataHub Docker service env files from
docker/<service>/env/docker.envtoenv/docker/<service>.env, the first step of consolidating env layering underenv/. The old paths remain as relative symlinks for one release, so existing references keep working.Details
env_filepaths, the MySQL fragment,datahub-upgrade.sh(with README examples now stating they are relative todocker/datahub-upgrade/), and docs point to the new files.env/so PRs touching only these files still run the Docker build, backend, frontend, actions, and smoke jobs; the docs impact env check now coversenv/*.env.environment:blocks are untouched.Verified by rendering
docker compose configfor all 33 profiles (231 service pairs) with identical output before and after, plus quickstart config generation and env parity checks.Written for commit 154370a. Summary will update on new commits.