databricks-cli/bundle
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
..
apps
artifacts Simplify whl artifact autodetection code (#2371) 2025-02-25 13:10:25 +00:00
config Change warning about incomplete permissions section into a recommendation (#2043) 2025-02-24 09:39:03 +00:00
deploy Upgrade to TF provider 1.65.1 (#2328) 2025-02-10 14:06:02 +00:00
docsgen Populate missing bundle config reference doc descriptions and fix resource reference doc template (#2314) 2025-02-24 18:59:12 +00:00
env
internal build(deps): bump github.com/databricks/databricks-sdk-go from 0.57.0 to 0.58.1 (#2357) 2025-02-25 11:20:29 +00:00
libraries Revert changes related to basename check for local libraries (#2345) 2025-02-12 20:05:49 +01:00
metadata
paths
permissions Change warning about incomplete permissions section into a recommendation (#2043) 2025-02-24 09:39:03 +00:00
phases Simplify whl artifact autodetection code (#2371) 2025-02-25 13:10:25 +00:00
render Use CreatePipeline instead of PipelineSpec for resources.Pipeline struct (#2287) 2025-02-07 17:22:51 +00:00
resources Use CreatePipeline instead of PipelineSpec for resources.Pipeline struct (#2287) 2025-02-07 17:22:51 +00:00
run Use CreatePipeline instead of PipelineSpec for resources.Pipeline struct (#2287) 2025-02-07 17:22:51 +00:00
schema build(deps): bump github.com/databricks/databricks-sdk-go from 0.57.0 to 0.58.1 (#2357) 2025-02-25 11:20:29 +00:00
scripts
tests
trampoline Fixed spark version check for clusters defined in the same bundle (#2374) 2025-02-26 13:04:45 +01:00
bundle.go
bundle_read_only.go
bundle_test.go
context.go
context_test.go
deferred.go
deferred_test.go
if.go
if_test.go
log_string.go
mutator.go
mutator_read_only.go
mutator_test.go
parallel.go
parallel_test.go
root.go
root_test.go
seq.go
seq_test.go