databricks-cli/bundle
Andrew Nester 5273d0c51a
Support Python wheels larger than 10MB (#879)
## Changes
Previously we only supported uploading Python wheels smaller than 10mb
due to using Workspace.Import API and `content ` field
https://docs.databricks.com/api/workspace/workspace/import

By switching to use `WorkspaceFilesClient` we overcome the limit because
it uses POST body for the API instead.

## Tests
`TestAccUploadArtifactFileToCorrectRemotePath` integration test passes

```
=== RUN   TestAccUploadArtifactFileToCorrectRemotePath
    artifacts_test.go:28: gcp
2023/10/17 15:24:04 INFO Using Google Credentials sdk=true
    helpers.go:356: Creating /Users/.../integration-test-wsfs-ekggbkcfdkid
artifacts.Upload(test.whl): Uploading...
2023/10/17 15:24:06 INFO Using Google Credentials mutator=artifacts.Upload(test) sdk=true
artifacts.Upload(test.whl): Upload succeeded
    helpers.go:362: Removing /Users/.../integration-test-wsfs-ekggbkcfdkid
--- PASS: TestAccUploadArtifactFileToCorrectRemotePath (5.66s)
PASS
coverage: 14.9% of statements in ./...
ok      github.com/databricks/cli/internal      6.109s  coverage: 14.9% of statements in ./...
```
2023-10-18 10:20:43 +00:00
..
artifacts Support Python wheels larger than 10MB (#879) 2023-10-18 10:20:43 +00:00
config Support Unity Catalog Registered Models in bundles (#846) 2023-10-16 15:32:49 +00:00
deploy Support Unity Catalog Registered Models in bundles (#846) 2023-10-16 15:32:49 +00:00
deployer Fix locker unlock for destroy (#492) 2023-06-19 15:57:25 +02:00
env Consolidate environment variable interaction (#747) 2023-09-11 08:18:43 +00:00
internal/tf Propagate Terraform provider version into generated config (#874) 2023-10-16 15:27:46 +00:00
libraries Fixed using repo files as pipeline libraries (#847) 2023-10-09 10:10:28 +00:00
phases Added support for glob patterns in pipeline libraries section (#833) 2023-10-04 13:23:13 +00:00
python Emit an error when incompatible all purpose cluster used with Python wheel tasks (#823) 2023-09-29 12:19:05 +00:00
run Increase timeout waiting for job run to 1 day (#786) 2023-09-19 19:54:24 +00:00
schema Support Unity Catalog Registered Models in bundles (#846) 2023-10-16 15:32:49 +00:00
scripts Added `process.Background()` and `process.Forwarded()` (#804) 2023-09-27 09:04:44 +00:00
tests Support Unity Catalog Registered Models in bundles (#846) 2023-10-16 15:32:49 +00:00
bundle.go Use normalized short name for tag value in development mode (#821) 2023-10-02 06:58:51 +00:00
bundle_test.go Consolidate environment variable interaction (#747) 2023-09-11 08:18:43 +00:00
context.go Make sync command work in bundle context; reorder args (#207) 2023-02-20 11:33:30 +01:00
context_test.go Add command that writes the materialized bundle configuration to stdout (#95) 2022-11-21 15:39:53 +01:00
deferred.go Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00
deferred_test.go Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00
mutator.go Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00
mutator_test.go Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00
root.go Consolidate environment variable interaction (#747) 2023-09-11 08:18:43 +00:00
root_test.go Consolidate environment variable interaction (#747) 2023-09-11 08:18:43 +00:00
seq.go Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00
seq_test.go Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00