Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add no_compute attribute to databricks_app #4364

Merged
merged 19 commits into from
Jan 24, 2025
Merged

Conversation

mgyucht
Copy link
Contributor

@mgyucht mgyucht commented Dec 30, 2024

Changes

Support no_compute flag for Apps. The flag is only used on create to determine whether compute should be provisioned as part of the Create App RPC. Changes to this flag for existing resources are no-ops and simply propagated from plan to state.

Tests

  • make test run locally
  • relevant change in docs/ folder
  • covered with integration tests in internal/acceptance
  • using Go SDK
  • using TF Plugin Framework

@mgyucht mgyucht changed the title [WIP][Feature] add no_compute support [WIP][Feature] Add no_compute to databricks_app Dec 30, 2024
@eng-dev-ecosystem-bot
Copy link
Collaborator

Test Details: go/deco-tests/12548206084

@mgyucht mgyucht temporarily deployed to test-trigger-is January 23, 2025 15:06 — with GitHub Actions Inactive
@mgyucht mgyucht changed the base branch from main to bump-go-sdk-v0.56 January 23, 2025 15:07
@mgyucht mgyucht temporarily deployed to test-trigger-is January 23, 2025 15:12 — with GitHub Actions Inactive
Base automatically changed from bump-go-sdk-v0.56 to main January 24, 2025 10:31
@mgyucht mgyucht temporarily deployed to test-trigger-is January 24, 2025 11:17 — with GitHub Actions Inactive
@mgyucht mgyucht temporarily deployed to test-trigger-is January 24, 2025 11:17 — with GitHub Actions Inactive
@mgyucht mgyucht changed the title [WIP][Feature] Add no_compute to databricks_app [Feature] Add no_compute to databricks_app Jan 24, 2025
@mgyucht mgyucht marked this pull request as ready for review January 24, 2025 11:18
@mgyucht mgyucht requested a review from a team as a code owner January 24, 2025 11:18
@mgyucht mgyucht requested a review from a team as a code owner January 24, 2025 11:18
@mgyucht mgyucht requested review from parthban-db and removed request for a team January 24, 2025 11:18
@mgyucht mgyucht temporarily deployed to test-trigger-is January 24, 2025 11:19 — with GitHub Actions Inactive
@mgyucht mgyucht temporarily deployed to test-trigger-is January 24, 2025 11:21 — with GitHub Actions Inactive
@alexott alexott changed the title [Feature] Add no_compute to databricks_app [Feature] Add no_compute attribute to databricks_app Jan 24, 2025
Copy link
Contributor

@alexott alexott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

codewise looks good

@mgyucht mgyucht temporarily deployed to test-trigger-is January 24, 2025 12:34 — with GitHub Actions Inactive
Copy link

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/terraform

Inputs:

  • PR number: 4364
  • Commit SHA: d819e17596b1dd7f101767ba4f23d78aaf757ef8

Checks will be approved automatically on success.

@mgyucht mgyucht temporarily deployed to test-trigger-is January 24, 2025 12:35 — with GitHub Actions Inactive
@mgyucht mgyucht requested a review from alexott January 24, 2025 12:36
@mgyucht mgyucht enabled auto-merge January 24, 2025 13:05
@mgyucht mgyucht added this pull request to the merge queue Jan 24, 2025
Merged via the queue into main with commit 8b63826 Jan 24, 2025
12 checks passed
@mgyucht mgyucht deleted the apps-no-compute branch January 24, 2025 13:40
mgyucht added a commit that referenced this pull request Jan 27, 2025
### New Features and Improvements

 * Add `no_compute` attribute to `databricks_app` ([#4364](#4364)).
 * Skip calling Read after Create/Update operations for `databricks_notebook` ([#4173](#4173)).

### Bug Fixes

 * Recreate `databricks_token` if it's not found or expired ([#4431](#4431)).
 * Handle empty response properly in `databricks_mws_workspaces` data source ([#4414](#4414)).
 * Recreate `databricks_obo_token` if it's removed or expired ([#4428](#4428)).

### Documentation

 * Added Queue Data Contributor role to Azure terraform docs ([#4412](#4412)).
 * Replaced references to data security mode with access mode ([#4408](#4408)).

### Internal Changes

 * Account for historical release headers when filtering on past changelog sections ([#4409](#4409)).
 * Introduce automated tagging ([#4366](#4366)).
 * Remove .extraheader config ([#4405](#4405)).
 * Remove tag signing in tagging.py script ([#4407](#4407)).
 * Set runs-on to use our internal runners ([#4403](#4403)).

### Dependency Updates

 * Bump Databricks Go SDK to v0.56.1 ([#4430](#4430)).
 * Bump github.com/hashicorp/terraform-plugin-go from 0.25.0 to 0.26.0 ([#4429](#4429)).
 * Bump github.com/hashicorp/terraform-plugin-mux from 0.17.0 to 0.18.0 ([#4432](#4432)).
 * Bump github.com/zclconf/go-cty from 1.16.1 to 1.16.2 ([#4423](#4423)).

### Exporter

 * **Breaking**: rename `workspace` service into `wsconf` ([#4425](#4425)).
 * Add listing for `databricks_permissions` so we can emit permissions for tokens ([#4402](#4402)).
 * Refactor jobs implementation to use only Go SDK ([#4380](#4380)).
 * improve handling of Emit/Add operations under the heavy load ([#4401](#4401)).
github-merge-queue bot pushed a commit that referenced this pull request Jan 27, 2025
### New Features and Improvements

* Add `no_compute` attribute to `databricks_app`
([#4364](#4364)).
* Skip calling Read after Create/Update operations for
`databricks_notebook`
([#4173](#4173)).


### Bug Fixes

* Recreate `databricks_token` if it's not found or expired
([#4431](#4431)).
* Handle empty response properly in `databricks_mws_workspaces` data
source
([#4414](#4414)).
* Recreate `databricks_obo_token` if it's removed or expired
([#4428](#4428)).


### Documentation

* Added Queue Data Contributor role to Azure terraform docs
([#4412](#4412)).
* Replaced references to data security mode with access mode
([#4408](#4408)).


### Internal Changes

* Account for historical release headers when filtering on past
changelog sections
([#4409](#4409)).
* Introduce automated tagging
([#4366](#4366)).
* Remove .extraheader config
([#4405](#4405)).
* Remove tag signing in tagging.py script
([#4407](#4407)).
* Set runs-on to use our internal runners
([#4403](#4403)).


### Dependency Updates

* Bump Databricks Go SDK to v0.56.1
([#4430](#4430)).
* Bump github.com/hashicorp/terraform-plugin-go from 0.25.0 to 0.26.0
([#4429](#4429)).
* Bump github.com/hashicorp/terraform-plugin-mux from 0.17.0 to 0.18.0
([#4432](#4432)).
* Bump github.com/zclconf/go-cty from 1.16.1 to 1.16.2
([#4423](#4423)).


### Exporter

* **Breaking**: rename `workspace` service into `wsconf`
([#4425](#4425)).
* Add listing for `databricks_permissions` so we can emit permissions
for tokens
([#4402](#4402)).
* Refactor jobs implementation to use only Go SDK
([#4380](#4380)).
* improve handling of Emit/Add operations under the heavy load
([#4401](#4401)).
Sign up for free to 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.

4 participants