databricks-cli/bundle/artifacts
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
..
whl Added `python.DetectInterpreters` and other utils (#805) 2023-10-03 10:47:09 +00:00
all.go Upgraded Go version to 1.21 (#664) 2023-08-15 13:50:40 +00:00
artifacts.go Support Python wheels larger than 10MB (#879) 2023-10-18 10:20:43 +00:00
autodetect.go Allow referencing local Python wheels without artifacts section defined (#703) 2023-08-28 16:29:04 +00:00
build.go Auto detect Python wheel packages and infer build command (#603) 2023-07-26 10:07:26 +00:00
infer.go Allow referencing local Python wheels without artifacts section defined (#703) 2023-08-28 16:29:04 +00:00
upload.go Added support for artifacts building for bundles (#583) 2023-07-25 13:35:08 +02:00