Skip to content

Commit

Permalink
Add unique ID to root_path for bundle integration test fixtures (#1917
Browse files Browse the repository at this point in the history
)

## Changes
Integration tests using these fixtures could have been flaky when run in
parallel using the same user's identity. They would also possibly have
piggybacked state from previous runs.

This PR adds a UUID to the root_path to force independent bundle
deployments for every test run.

I have checked that all bundles in `internal/bundle/bundles` have
`root_path` namespaced to a UUID.

## Tests
Self testing.
  • Loading branch information
shreyas-goenka authored Nov 20, 2024
1 parent ade95d9 commit 984c38e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 0 additions & 2 deletions internal/bundle/bundles/empty_bundle/databricks.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
bundle:
name: "bundle-playground"
name: recreate-pipeline

workspace:
root_path: "~/.bundle/{{.unique_id}}"

variables:
catalog:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
bundle:
name: "bundle-playground"
name: uc-schema

workspace:
root_path: "~/.bundle/{{.unique_id}}"

resources:
pipelines:
Expand Down

0 comments on commit 984c38e

Please sign in to comment.