Skip to content

internal: Convert deployplan.ActionType to int-based enum#3585

Merged
denik merged 5 commits intomainfrom
denik/action-int
Sep 11, 2025
Merged

internal: Convert deployplan.ActionType to int-based enum#3585
denik merged 5 commits intomainfrom
denik/action-int

Conversation

@denik
Copy link
Contributor

@denik denik commented Sep 10, 2025

Changes

  • The order defines severity of action which will be used to decide final action for resource.
  • Add a new 'resize' action type, will be useful when we add clusters.

Why

We will be able to decide on final action for the given resource as max(actions...), where actions come from local and remote comparison of individual fields.

Tests

Existing tests.

- The order defines severity of action which will be used to decide final action for resource.
- Add a new 'resize' action, will be useful when we add clusters.
@eng-dev-ecosystem-bot
Copy link
Collaborator

eng-dev-ecosystem-bot commented Sep 10, 2025

Run: 17639977762

Env ✅​pass ❌​FAIL 🙈​skip
✅​ aws linux 311 526
✅​ aws windows 312 525
❌​ aws-ucws linux 421 2 424
❌​ aws-ucws windows 422 2 423
✅​ azure linux 311 525
✅​ azure windows 312 524
❌​ azure-ucws linux 421 2 423
❌​ azure-ucws windows 422 2 422
✅​ gcp linux 310 527
✅​ gcp windows 311 526
Test Name aws-ucws linux aws-ucws windows azure-ucws linux azure-ucws windows
TestAccept ❌​FAIL ❌​FAIL ❌​FAIL ❌​FAIL
TestAccept/bundle/deploy/lakebase/synced-database-table ❌​FAIL ❌​FAIL ❌​FAIL ❌​FAIL

@denik denik temporarily deployed to test-trigger-is September 10, 2025 15:09 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is September 11, 2025 08:23 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is September 11, 2025 09:12 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is September 11, 2025 09:17 — with GitHub Actions Inactive
@denik denik enabled auto-merge September 11, 2025 09:17
@denik denik disabled auto-merge September 11, 2025 13:56
@denik denik merged commit fd14d40 into main Sep 11, 2025
12 of 13 checks passed
@denik denik deleted the denik/action-int branch September 11, 2025 13:56
type ActionType string
type ActionType int

// Actions are ordered in increasing severity.
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: After looking at https://github.com/databricks/cli/pull/3595/files, this should be priority, not severity.

denik added a commit that referenced this pull request Sep 11, 2025
…() (#3595)

## Changes
New method FieldTriggers(), which is a more powerful version of
RecreateFields() that allows associate any action with a field.

Builds on top of #3585

## Why
This covers existing classification use cases without custom code.

We might still need ClassifyChange function in the future, but exact
types involved will likely change by that time (with regard to
serialized plan work).

## Tests
Existing tests.
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.

3 participants