Repository navigation
refactor(docker): move Gradle spark settings into a job folder - #21832
devashish2203 wants to merge 12 commits into
Conversation
quickstartSpark selects spark-smoke-test/env through DATAHUB_ENV_JOB_DIR instead of smoke-gms.env and a METADATA_SERVICE_AUTH_ENABLED Gradle value. METADATA_SERVICE_AUTH_ENABLED moves from GMS environment: to env/docker/gms.env with the same default so a job file can set it. Drop METADATA_TESTS_ENABLED, which no service received. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR SummaryOverview
Gradle no longer sets Reviewed by Cursor Bugbot for commit 80f3b30. 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:
Medium confidence: a wrong tag means tests are skipped, so check the tags above against what this PR touches. Selected scopes (12 files or classes, 111 tests)
Add the Playwright E2E testsThis run:
Specs selected because of this PR (5)
Add the commit |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
# Conflicts: # .gitignore
Stacked on #21831.
Moves the setting-type env that Gradle passes to compose into env layers, where a layer can express it without changing any rendered value.
quickstartSparkreads a new job folder,metadata-integration/java/acryl-spark-lineage/spark-smoke-test/env/, throughDATAHUB_ENV_JOB_DIR. Itsall.envholdsREST_API_AUTHORIZATION_ENABLED=falsefor every service, assmoke-gms.envdid through the common ad-hoc slot. Itsgms.envholdsMETADATA_SERVICE_AUTH_ENABLED=falsefor GMS only, as the Gradle value did.smoke-gms.envis deleted.METADATA_SERVICE_AUTH_ENABLEDmoves from the GMS composeenvironment:block toenv/docker/gms.env, with the same${METADATA_SERVICE_AUTH_ENABLED:-true}form, so that a job file can set it.METADATA_TESTS_ENABLED=trueputs are deleted fromdocker/build.gradle. No compose file, env file or entrypoint names the key, so no container ever received it.env/README.mdlists the new job folder, and.gitignoregets a negation for it.Gradle entries
DATAHUB_LOCAL_ACTIONS_ENVDEV_TOOLING_ENABLED=truequickstartOS3quickstart-opensearch3DATAHUB_LOCAL_COMMON_ENV(smoke-gms.env)quickstartSparkDATAHUB_ENV_JOB_DIRand the spark job folderMETADATA_SERVICE_AUTH_ENABLED=falsequickstartSparkspark-smoke-test/env/gms.envDATAHUB_VERSION,DATAHUB_APP_VERSION,DATAHUB_REPODATAHUB_TELEMETRY_ENABLED=falseMETADATA_TESTS_ENABLED=trueDEV_TOOLING_ENABLED=trueDATAHUB_SYSTEM_CLIENT_SECRET, token signing key and saltBehaviour change
An ad-hoc env file can now set
METADATA_SERVICE_AUTH_ENABLEDfor GMS. Before, composeenvironment:masked the file. This is the precedence change planned for the env layers: ad-hoc files beat compose defaults.METADATA_SERVICE_AUTH_ENABLEDDATAHUB_LOCAL_COMMON_ENV=zdu-test.envalone, or adatahub-dev env setfiletruefalseforzdu-test.env)docker/profiles/zdu-test.envor anyDATAHUB_LOCAL_*_ENVfileThe ZDU framework's own compose calls are unchanged: they also export
METADATA_SERVICE_AUTH_ENABLED=falsefrom the shell, so they renderedfalsebefore and still do.One more edge case for
quickstartSpark: before, itsadditionalEnvreplaced anyDATAHUB_LOCAL_COMMON_ENVset in the shell. Now a shellDATAHUB_LOCAL_COMMON_ENVfile is also applied, as the ad-hoc layer on top of the job folder. CI sets no such variable.Verification
Each check compared the base branch with this branch, using
docker compose configrenders. No stack was started.quickstart_configskey, rendered with the env and arguments the compose plugin passes: 27 configs, no differences.quickstartDebugSearchSplitfails to render on both sides because its override file is not in the repo.debug,debug-consumers), rendered with the framework's real compose files and env: the full service model is identical. That env includes the shell export, and the cleanup phase's env was rendered too. A ZDU render without the shell export shows only the behaviour change above../gradlew :docker:generateQuickstartComposeConfig:docker/quickstart/unchanged.python3 smoke-test/check_env_parity.py: passes.Moving
zdu-test.envinto a ZDU job folder follows in a separate PR. That change reworks several framework phases and the daily ZDU workflow.Checklist
🤖 Generated with Claude Code
Summary by cubic
Moves the setting-type env that Gradle passes to compose into env layers, so the spark smoke test can express it without changing any rendered value.
quickstartSparknow selects the job foldermetadata-integration/java/acryl-spark-lineage/spark-smoke-test/env/throughDATAHUB_ENV_JOB_DIR, replacingsmoke-gms.envand the GradleMETADATA_SERVICE_AUTH_ENABLED=falsevalue.Behavior changes
METADATA_SERVICE_AUTH_ENABLEDfor GMS; before, the composeenvironment:entry masked env files.METADATA_TESTS_ENABLED=truefromdocker/build.gradle; no compose file, env file, or entrypoint names the key, so no container ever received it.Written for commit 9e8b404. Summary will update on new commits.