Repository navigation
refactor(docker): move ONNX override env into env/docker/variants/onnx - #21829
devashish2203 wants to merge 11 commits into
Conversation
Move the ONNX semantic-search values of the debug GMS and system-update
services out of docker-compose.onnx-override.yml into
env/docker/variants/onnx/{gms,system-update}.env. The override adds these
files to the service env_file lists; compose appends them after the
service's own list, so they come after the ad-hoc slots, as the override's
environment: already beat ad-hoc files.
ONNX_EMBEDDING_MODEL_DIR stays in environment: it is tied to the
/datahub/models mount of the same service.
The rendered compose config is unchanged in every scenario, including
the quickstartDebugBuiltinEmbedding Gradle scenario.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
PR SummaryOverview
Reviewed by Cursor Bugbot for commit fda3c07. 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 (16 files or classes, 54 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! |
david-leifker
left a comment
There was a problem hiding this comment.
One precedence problem, otherwise this looks good.
| services: | ||
| datahub-gms-debug: | ||
| env_file: | ||
| - ../../env/docker/variants/onnx/gms.env |
There was a problem hiding this comment.
Compose appends an override file's env_file entries after the base service's list, so this ONNX file now wins over every layer in the base list: env/docker/gms.env, <mode>/all.env, the extension dir and the job dir. That is the reverse of the documented order, where variants sit below the extension and job layers. I confirmed it by rendering with an ad-hoc file that sets one of these keys: the ONNX value wins.
Before this PR the same values sat in the override's environment: block, which also outranks env_file, so an ad-hoc or job file could not override them then either. The change is not a regression. It does mean the new layering doc is wrong for this variant.
Either document that the ONNX variant is last, or add the variant to the base env_file list at its normal position. The same applies to system-update-debug below.
There was a problem hiding this comment.
Confirmed: the override's env_file entries are appended after the service's whole list, so the ONNX variant beats the extension, job and ad-hoc layers. Kept the behaviour and documented it in env/README.md and next to each env_file in the override (fda3c07). Only environment: beats it.
The ONNX override file's env_file entries are appended after the service's whole list, so the variant wins over the extension, job and ad-hoc layers. Say so in env/README.md and next to each env_file in the override. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Stacked on #21828.
Moves the ONNX semantic-search values of
datahub-gms-debugandsystem-update-debugout ofdocker-compose.onnx-override.ymlintoenv/docker/variants/onnx/{gms,system-update}.env. The rendered compose config is unchanged in every scenario.Moved
EMBEDDING_PROVIDER_TYPE,ELASTICSEARCH_SEMANTIC_SEARCH_ENABLED,SEARCH_SERVICE_SEMANTIC_SEARCH_ENABLED,ONNX_EMBEDDING_MODEL_NAME,ELASTICSEARCH_ENTITY_INDEX_SEMANTIC_SEARCH_MODELS_SNOWFLAKE_ARCTIC_EMBED_S_VECTORDIMENSION,ONNX_EMBEDDING_POOLING,ONNX_EMBEDDING_QUERY_INSTRUCTION. The query instruction ends with a space, so it is double-quoted in the env file; compose strips the quotes and keeps the space.Kept in
environment:ONNX_EMBEDDING_MODEL_DIR: the path is tied to the/datahub/modelsmount of the same service. Volumes are unchanged.env_file merge
Compose appends the override's
env_filelist to the base service's list, so the ONNX file comes after the extension, job and ad-hoc slots. This matches today: the override'senvironment:already beat ad-hoc files, so no rendered value changes.Verification
Rendered with
compose_env_snapshot.py(from #21820) on a clean copy of the base and on this branch, then diffed:gradle(all 27quickstart_configskeys, includingquickstartDebugBuiltinEmbedding, with the print task'sdocker/build.gradlecopied over scratch copies only): no differences (quickstartDebugSearchSplitis known-broken on the base too).bare,shell,smoke,ai,zdu: no differences (71 scenarios;debug-frontendis known-broken on the base too).docker compose -f docker-compose.yml -f docker-compose.onnx-override.yml --profile debug config:environmentof both services identical on base and head../gradlew :docker:generateQuickstartComposeConfigthengit diff --exit-code docker/quickstart/: clean.Checklist
env/README.md🤖 Generated with Claude Code
Summary by cubic
Moves the ONNX semantic-search environment for the debug GMS and system-update services out of
docker-compose.onnx-override.ymlintoenv/docker/variants/onnx/{gms,system-update}.env. The rendered compose config is unchanged in every scenario.Refactors
env_filelists; Compose appends them after each service's own list, matching the previous precedence of the override'senvironment:.ONNX_EMBEDDING_MODEL_DIRinline because it is tied to the/datahub/modelsvolume mount.ONNX_EMBEDDING_QUERY_INSTRUCTIONso its trailing space is preserved.onnxvariant's env_file precedence inenv/README.mdand in comments next to eachenv_filein the override.Written for commit f35167d. Summary will update on new commits.