-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Python] Add acceptance tests #2493
Conversation
@@ -0,0 +1,3 @@ | |||
trace uv run --with databricks-bundles==0.7.2 -q $CLI bundle validate --output json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why does this install the package from PyPI and not from local repo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
local package doesn't contain all necessary code yet
4045d19
to
c56be44
Compare
## Changes Fix issues with multiple resource loaders. Previously, we discarded outputs of all loaders except the last one. That worked well if there is only a single resource loader. ## Tests - Unit tests - Acceptance tests in #2493
## Changes Fix issues with bundles using multiple mutators. Previously, we didn't correctly chain output between them. ## Tests - Unit tests - Acceptance tests in #2493
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request adds acceptance tests for experimental Python integrations. It introduces tests for variable resolution, job mutators, and resource loading, and updates the corresponding configuration files.
- Adds acceptance tests in resolve-variable, mutator-ordering, resource-loading, and a test configuration file.
- Updates databricks.yml files to configure mutators, resources, and bundle settings.
Reviewed Changes
Copilot reviewed 7 out of 13 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
acceptance/bundle/python/resolve-variable/resources.py | Defines acceptance tests for variable resolution with various types including complex variables |
acceptance/bundle/python/mutator-ordering/mutators.py | Implements job mutators to append tasks to a job |
acceptance/bundle/python/resource-loading/resources.py | Provides resource loading tests using dictionary configs |
acceptance/bundle/python/mutator-ordering/databricks.yml | Configures the order of Python mutators and sync options |
acceptance/bundle/python/resource-loading/databricks.yml | Sets up resource configuration for resource-loading tests |
acceptance/bundle/python/resolve-variable/databricks.yml | Specifies variable defaults and resource configuration for variable resolution tests |
acceptance/bundle/python/test.toml | Test configuration toggling local and cloud environments |
Files not reviewed (6)
- acceptance/bundle/python/mutator-ordering/output.txt: Language not supported
- acceptance/bundle/python/mutator-ordering/script: Language not supported
- acceptance/bundle/python/resolve-variable/output.txt: Language not supported
- acceptance/bundle/python/resolve-variable/script: Language not supported
- acceptance/bundle/python/resource-loading/output.txt: Language not supported
- acceptance/bundle/python/resource-loading/script: Language not supported
Comments suppressed due to low confidence (1)
acceptance/bundle/python/resolve-variable/resources.py:55
- The job name is set to the unresolved variable 'Variables.string_variable'. Consider using bundle.resolve_variable(Variables.string_variable) to pass the actual string value.
name=Variables.string_variable,
Oh nice, we can outsource all nitpicks to Copilot |
Co-authored-by: Copilot <[email protected]>
Changes
Add acceptance tests for experimental/python