Skip to content

Agent Templates: use uv.lock#201

Merged
bbqiu merged 3 commits intodatabricks:mainfrom
bbqiu:bbqiu/set-uv-lock
Apr 29, 2026
Merged

Agent Templates: use uv.lock#201
bbqiu merged 3 commits intodatabricks:mainfrom
bbqiu:bbqiu/set-uv-lock

Conversation

@bbqiu
Copy link
Copy Markdown
Contributor

@bbqiu bbqiu commented Apr 24, 2026

with support for uv as a package manager and the whitelisting of our databricks-ai-bridge packages, set uv.lock so all dependencies are downloaded before the deployment is marked as ready

https://docs.databricks.com/aws/en/dev-tools/databricks-apps/dependencies#define-python-dependencies-with-uv

verified these apps work by running integration tests + deploying to prod app without access to internal registry

Signed-off-by: Bryan Qiu <bryan.qiu@databricks.com>
@bbqiu bbqiu changed the title Agent Templates: use uv.lock [dont merge] Agent Templates: use uv.lock Apr 24, 2026
bbqiu added 2 commits April 28, 2026 16:23
Co-authored-by: Isaac
Signed-off-by: Bryan Qiu <bryan.qiu@databricks.com>
Replace internal Databricks PyPI proxy URLs with public pypi.org so
external customers can install dependencies from these templates.

Co-authored-by: Isaac
Signed-off-by: Bryan Qiu <bryan.qiu@databricks.com>
@bbqiu bbqiu changed the title [dont merge] Agent Templates: use uv.lock Agent Templates: use uv.lock Apr 28, 2026
@bbqiu bbqiu requested a review from fanzeyi April 28, 2026 21:09
@bbqiu bbqiu merged commit dfeb4ac into databricks:main Apr 29, 2026
dhruv0811 added a commit that referenced this pull request Apr 30, 2026
The previous scrub of UV_EXCLUDE_NEWER alone wasn't sufficient.
CI run 25147991251 deploy logs show two distinct contamination
messages, not one:

  [BUILD] Ignoring existing lockfile due to removal of global exclude newer
  [BUILD] Ignoring existing lockfile due to removal of exclude newer
          for package `databricks-openai`

The first is UV_EXCLUDE_NEWER (already scrubbed). The second comes
from the runner repo's `uv.toml` `[exclude-newer-package]` overrides
for databricks-openai / databricks-ai-bridge / databricks-langchain /
databricks-agents. uv discovers that config file by walking up from
the template subdir to the workspace root — so popping UV_CONFIG_FILE
alone doesn't help.

Fix: pop UV_CONFIG_FILE *and* set UV_NO_CONFIG=1 to disable walk-up
discovery entirely. Now both contamination sources are blocked at the
process level for any subprocess helpers.py spawns, and the
template's checked-in lockfile reaches the Apps runtime byte-identical
to what Bryan committed in #201.

Co-authored-by: Isaac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants