databricks-cli/bundle/trampoline
Andrew Nester cdea775bd2
Fixed spark version check for clusters defined in the same bundle (#2374)
## Changes
Previously using python wheel tasks in the tasks with compute referering
to interactive cluster defied in the same bundle would produce a warning
like below

```
GET /api/2.1/clusters/get?cluster_id=${resources.clusters.development_cluster.id}
< HTTP/2.0 400 Bad Request
< {
<   "error_code": "INVALID_PARAMETER_VALUE",
<   "message": "Cluster ${resources.clusters.development_cluster.id} does not exist"
< } pid=14465 mutator=seq mutator=initialize mutator=seq mutator=PythonWrapperWarning sdk=true
```

This PR fixes it by making sure that we check spark version for such
clusters based on its bundle configuration and don't make API calls

## Tests
Added acceptance test
2025-02-26 13:04:45 +01:00
..
conditional_transform_test.go Rename `RootPath` -> `BundleRootPath` (#1792) 2024-09-27 10:03:05 +00:00
python_dbr_warning.go Fixed spark version check for clusters defined in the same bundle (#2374) 2025-02-26 13:04:45 +01:00
python_dbr_warning_test.go Fixed spark version check for clusters defined in the same bundle (#2374) 2025-02-26 13:04:45 +01:00
python_wheel.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00
python_wheel_test.go Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
trampoline.go Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
trampoline_test.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00