Make DB Connect work out of the box for unit tests with the default-python template#3254
Merged
lennartkats-db merged 26 commits intomainfrom Sep 2, 2025
Merged
Make DB Connect work out of the box for unit tests with the default-python template#3254lennartkats-db merged 26 commits intomainfrom
lennartkats-db merged 26 commits intomainfrom
Conversation
pietern
reviewed
Jul 16, 2025
libs/template/templates/default-python/template/{{.project_name}}/README.md.tmpl
Outdated
Show resolved
Hide resolved
libs/template/templates/default-python/template/{{.project_name}}/README.md.tmpl
Outdated
Show resolved
Hide resolved
libs/template/templates/default-python/template/{{.project_name}}/README.md.tmpl
Outdated
Show resolved
Hide resolved
libs/template/templates/default-python/template/{{.project_name}}/README.md.tmpl
Outdated
Show resolved
Hide resolved
libs/template/templates/default-python/template/{{.project_name}}/conftest.py.tmpl
Outdated
Show resolved
Hide resolved
github-merge-queue bot
pushed a commit
that referenced
this pull request
Jul 16, 2025
## Changes A test failure in #3254 shows the Python scripts called from our acceptance tests were using `cp1252` encoding on Windows, which is incompatible with tests using UTF-8. This change makes these tests always use UTF-8. ## Tests Adds an emoji to the diff selftest.
Collaborator
|
3 tasks
pietern
reviewed
Sep 1, 2025
6b8469d to
ae92d07
Compare
cf7009e to
ae92d07
Compare
pietern
approved these changes
Sep 2, 2025
acceptance/bundle/templates/default-python/classic/output/my_default_python/tests/conftest.py
Outdated
Show resolved
Hide resolved
deco-sdk-tagging bot
added a commit
that referenced
this pull request
Sep 3, 2025
## Release v0.267.0 ### CLI * Introduce retries to `databricks psql` command ([#3492](#3492)) * Add rule files for coding agents working on the CLI code base ([#3245](#3245)) ### Dependency updates * Upgrade TF provider to 1.88.0 ([#3529](#3529)) * Upgrade Go SDK to 0.82.0 ### Bundles * Update default-python template to make DB Connect work out of the box for unit tests, using uv to install dependencies ([#3254](#3254)) * Add support for `TaskRetryMode` for continuous jobs ([#3529](#3529)) * Add support for specifying database instance as an application resource ([#3529](#3529)) * Allow referencing job libraries outside bundle root without the need to specify sync root ([#2842](#2842)) * Add top level `run_as` support for Lakeflow Declarative Pipelines ([#3307](#3307))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
This update
default-pythonto make DB Connect work out of the box:SparkSessions.builder.getOrCreate())Usage
bundle initpytestuv. Or from the VS Code extension.Why
Manually setting up testing with DB Connect is still rather hard. With these changes, uv can be used to setup testing automatically.
Tests