Skip to content

[pull] main from databricks:main#239

Merged
pull[bot] merged 2 commits into
Future-Outlier:mainfrom
databricks:main
May 29, 2026
Merged

[pull] main from databricks:main#239
pull[bot] merged 2 commits into
Future-Outlier:mainfrom
databricks:main

Conversation

@pull

@pull pull Bot commented May 29, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

databricks-ci-ghec-2 Bot and others added 2 commits May 29, 2026 06:21
This PR updates the SDK to the latest API changes.

NO_CHANGELOG=true

Co-authored-by: databricks-ci-ghec-2[bot] <184307802+databricks-ci-ghec-2[bot]@users.noreply.github.com>
## Summary

Two tests hardcode relative paths (`tests/testdata/...` and
`databricks/__init__.py`) that only resolve when pytest's cwd is the SDK
root. Switch them to `pathlib.Path(__file__)`-based paths so they work
no matter where pytest is launched.

## Why

Today's upstream invocation (`make test` from the SDK root) is the happy
case, so it goes unnoticed. But pytest from any other directory — a
different CWD, a CI runner that builds the source tree elsewhere, or a
Bazel test sandbox — fails the tests with `FileNotFoundError`.

## What changed

### Interface changes

None.

### Behavioral changes

None (same fixture files, just resolved by absolute path).

### Internal changes

- `tests/test_model_serving_auth.py`:
`\"tests/testdata/model-serving-test-token\"` and `\"...-v2\"`
parameters replaced with constants computed from
`pathlib.Path(__file__).parent / \"testdata\"`.
- `tests/test_init_file.py`: `open(\"databricks/__init__.py\")` replaced
with `open(pathlib.Path(__file__).parent.parent / \"databricks\" /
\"__init__.py\")`.

## How is this tested?

- `make test` from the SDK root: 2073 passed, 3 skipped, same baseline
as main.
- `pytest tests/test_model_serving_auth.py tests/test_init_file.py` from
outside the SDK root (e.g. `/tmp`): now passes (previously fails with
`FileNotFoundError`).

NO_CHANGELOG=true
@pull pull Bot locked and limited conversation to collaborators May 29, 2026
@pull pull Bot added the ⤵️ pull label May 29, 2026
@pull pull Bot had a problem deploying to test-trigger-is May 29, 2026 09:18 Failure
@pull pull Bot merged commit 51de41f into Future-Outlier:main May 29, 2026
1 of 12 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant