Skip to content

Conversation

@timothytamm-db
Copy link

@timothytamm-db timothytamm-db commented Jan 16, 2026

Changes

  1. Make checking for serverless_comput_id more robust since that field does not exist on serverless client v1 and fill throw an error right now otherwise.

Why

This will make the example test compatible with the upcoming workspace unit testing feature.

Tests

Copy link
Contributor

@lennartkats-db lennartkats-db left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please review, I'm not sure these changes are needed?

"""Configure pytest session."""
with _allow_stderr_output(config):
src_path = pathlib.Path(__file__).parent.parent / "src"
sys.path.insert(0, str(src_path))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line doesn't seem right to me, could you look at alternative options for your test runner instead? Normally imports in tests just work out of the box, as seen at https://github.com/databricks/bundle-examples/blob/333bab00d7dc17aa3d2491f3a9d1883590984793/default_python/tests/sample_taxis_test.py#L3. There must be something wrong with your environment, maybe that can be fixed in some other way?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found a better way to do this directly in our test runner, so i removed this

timothytamm-db and others added 2 commits January 20, 2026 16:57
…ts/conftest.py

Co-authored-by: Lennart Kats (databricks) <lennart.kats@databricks.com>
@github-actions
Copy link

An authorized user can trigger integration tests manually by following the instructions below:

Trigger:
go/deco-tests-run/cli

Inputs:

  • PR number: 4306
  • Commit SHA: 90de912243ce78f66bc5d9490e56dd2f096153c1

Checks will be approved automatically on success.

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