databricks-cli/bundle/tests/relative_path_with_includes
Pieter Noordhuis 5d9bc3b553
Allow artifact path to be located outside the sync root (#2128)
## Changes

We perform a check during path translation that the path being
referenced is contained in the bundle's sync root. If it isn't, it's not
a valid remote reference. However, this doesn't apply to paths that are
_always_ local, such as the artifact path. An artifact's build command
is executed in its path. Files created by the artifact build (e.g.
wheels or JARs) don't need to be in the sync root because they have a
dedicated and different upload path into `${workspace.artifact_path}`.

Therefore, this check that a path is contained in the bundle's sync root
doesn't apply to artifact paths. This change modifies the structure of
path translation to allow opting out of this check.

Fixes #1927.

## Tests

* Existing and new tests pass.
* Manually confirmed that building and using a wheel built outside the
sync root path works as expected.
* No acceptance tests because we don't run build as part of validate.
2025-01-14 08:34:55 +00:00
..
artifact_a Allow artifact path to be located outside the sync root (#2128) 2025-01-14 08:34:55 +00:00
subfolder Allow artifact path to be located outside the sync root (#2128) 2025-01-14 08:34:55 +00:00
bundle.yml Make resource and artifact paths in bundle config relative to config folder (#708) 2023-09-04 09:55:01 +00:00