Skip to content

Add UUID to uniquely identify a deployment state - #1595

Merged
shreyas-goenka merged 2 commits into
mainfrom
uuid-deploy
Jul 16, 2024
Merged

Add UUID to uniquely identify a deployment state#1595
shreyas-goenka merged 2 commits into
mainfrom
uuid-deploy

Conversation

@shreyas-goenka

@shreyas-goenkashreyas-goenka commented Jul 15, 2024

Copy link
Copy Markdown
Contributor

Changes

We need a mechanism to invalidate the locally cached deployment state if a user uses the same working directory to deploy to multiple distinct deployments (separate targets, root_paths or even hosts).

This PR just adds the UUID to the deployment state in preparation for invalidating this cache. The actual invalidation will follow up at a later date (tracked in internal backlog).

Tests

Unit test. Manually checked the deployment state is actually being written.

@shreyas-goenka
shreyas-goenka marked this pull request as ready for review July 15, 2024 11:53
@shreyas-goenka
shreyas-goenka requested review from andrewnester and pietern and removed request for andrewnesterJuly 15, 2024 11:53
@shreyas-goenka
shreyas-goenka added this pull request to the merge queueJul 16, 2024
@github-merge-queue
github-merge-queueBot removed this pull request from the merge queue due to failed status checks Jul 16, 2024
Comment threadbundle/deploy/state.go Outdated
@shreyas-goenka
shreyas-goenka added this pull request to the merge queueJul 16, 2024
Merged via the queue into main with commit 39c2633Jul 16, 2024
@shreyas-goenka
shreyas-goenka deleted the uuid-deploy branch July 16, 2024 10:10
andrewnester added a commit that referenced this pull request Jul 18, 2024
CLI:
* [Fix] Do not buffer files in memory when downloading ([#1599](#1599)).
Bundles:
* Allow artifacts (JARs, wheels) to be uploaded to UC Volumes ([#1591](#1591)).
* Upgrade TF provider to 1.48.3 ([#1600](#1600)).
* Fixed job name normalisation for bundle generate ([#1601](#1601)).
Internal:
* Add UUID to uniquely identify a deployment state ([#1595](#1595)).
* Track multiple locations associated with a `dyn.Value` ([#1510](#1510)).
* Attribute Terraform API requests the CLI ([#1598](#1598)).
* Use local Terraform state only when lineage match ([#1588](#1588)).
* Implement readahead cache for Workspace API calls ([#1582](#1582)).
Dependency updates:
* Bump github.com/databricks/databricks-sdk-go from 0.43.0 to 0.43.2 ([#1594](#1594)).
@andrewnesterandrewnester mentioned this pull request Jul 18, 2024
andrewnester added a commit that referenced this pull request Jul 18, 2024
CLI:
* Do not buffer files in memory when downloading ([#1599](#1599)).
Bundles:
* Allow artifacts (JARs, wheels) to be uploaded to UC Volumes ([#1591](#1591)).
* Upgrade TF provider to 1.48.3 ([#1600](#1600)).
* Fixed job name normalisation for bundle generate ([#1601](#1601)).
Internal:
* Add UUID to uniquely identify a deployment state ([#1595](#1595)).
* Track multiple locations associated with a `dyn.Value` ([#1510](#1510)).
* Attribute Terraform API requests the CLI ([#1598](#1598)).
* Implement readahead cache for Workspace API calls ([#1582](#1582)).
* Use local Terraform state only when lineage match ([#1588](#1588)).
Dependency updates:
* Bump github.com/databricks/databricks-sdk-go from 0.43.0 to 0.43.2 ([#1594](#1594)).
@andrewnesterandrewnester mentioned this pull request Jul 18, 2024
github-merge-queueBot pushed a commit that referenced this pull request Jul 18, 2024
CLI:
* Do not buffer files in memory when downloading
([#1599](#1599)).
Bundles:
* Allow artifacts (JARs, wheels) to be uploaded to UC Volumes
([#1591](#1591)).
* Upgrade TF provider to 1.48.3
([#1600](#1600)).
* Fixed job name normalisation for bundle generate
([#1601](#1601)).
Internal:
* Add UUID to uniquely identify a deployment state
([#1595](#1595)).
* Track multiple locations associated with a `dyn.Value`
([#1510](#1510)).
* Attribute Terraform API requests the CLI
([#1598](#1598)).
* Implement readahead cache for Workspace API calls
([#1582](#1582)).
* Use local Terraform state only when lineage match
([#1588](#1588)).
* Add read-only mode for extension aware workspace filer
([#1609](#1609)).
Dependency updates:
* Bump github.com/databricks/databricks-sdk-go from 0.43.0 to 0.43.2
([#1594](#1594)).
denik pushed a commit that referenced this pull request May 20, 2026
## Changes
We need a mechanism to invalidate the locally cached deployment state if
a user uses the same working directory to deploy to multiple distinct
deployments (separate targets, root_paths or even hosts).
This PR just adds the UUID to the deployment state in preparation for
invalidating this cache. The actual invalidation will follow up at a
later date (tracked in internal backlog).
## Tests
Unit test. Manually checked the deployment state is actually being
written.
denik pushed a commit that referenced this pull request May 20, 2026
CLI:
* Do not buffer files in memory when downloading
([#1599](#1599)).
Bundles:
* Allow artifacts (JARs, wheels) to be uploaded to UC Volumes
([#1591](#1591)).
* Upgrade TF provider to 1.48.3
([#1600](#1600)).
* Fixed job name normalisation for bundle generate
([#1601](#1601)).
Internal:
* Add UUID to uniquely identify a deployment state
([#1595](#1595)).
* Track multiple locations associated with a `dyn.Value`
([#1510](#1510)).
* Attribute Terraform API requests the CLI
([#1598](#1598)).
* Implement readahead cache for Workspace API calls
([#1582](#1582)).
* Use local Terraform state only when lineage match
([#1588](#1588)).
* Add read-only mode for extension aware workspace filer
([#1609](#1609)).
Dependency updates:
* Bump github.com/databricks/databricks-sdk-go from 0.43.0 to 0.43.2
([#1594](#1594)).
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@shreyas-goenka@pietern@andrewnester