databricks-cli/internal/bundle
Andrew Nester 5431174302
Do not add wheel content hash in uploaded Python wheel path (#1015)
## Changes
Removed hash from the upload path since it's not useful anyway.

The main reason for that change was to make it work on all-purpose
clusters. But in order to make it work, wheel version needs to be
increased anyway. So having only hash in path is useless.

Note: using --build-number (build tag) flag does not help with
re-installing libraries on all-purpose clusters. The reason is that
`pip` ignoring build tag when upgrading the library and only look at
wheel version.
Build tag is only used for sorting the versions and the one with higher
build tag takes priority when installed. It only works if no library is
installed.
See
a15dd75d98/src/pip/_internal/index/package_finder.py (L522-L556)
https://github.com/pypa/pip/issues/4781

Thus, the only way to reinstall the library on all-purpose cluster is to
increase wheel version manually or use automatic version generation,
f.e.
```
setup(
  version=datetime.datetime.utcnow().strftime("%Y%m%d.%H%M%S"),
  ...
)
```

## Tests
Integration tests passed.
2023-11-29 10:40:12 +00:00
..
bundles Correctly overwrite local state if remote state is newer (#1008) 2023-11-24 11:15:46 +00:00
artifacts_test.go Do not add wheel content hash in uploaded Python wheel path (#1015) 2023-11-29 10:40:12 +00:00
deploy_then_remove_resources_test.go Make bundle deploy work if no resources are defined (#767) 2023-09-13 22:50:37 +00:00
empty_bundle_test.go Make bundle deploy work if no resources are defined (#767) 2023-09-13 22:50:37 +00:00
helpers.go Added end-to-end test for deploying and running Python wheel task (#741) 2023-09-07 14:08:16 +00:00
job_metadata_test.go Make `file_path` and `artifact_path` fields consistent with json tag (#987) 2023-11-15 13:37:26 +00:00
local_state_staleness_test.go Correctly overwrite local state if remote state is newer (#1008) 2023-11-24 11:15:46 +00:00
python_wheel_test.go Added test for tasks with python wheel wrapper on (#897) 2023-10-20 15:03:29 +00:00