Skip to content

bundle: drop EngineSetting, validate the engine setting instead of resolving it - #6959

Merged
denik merged 2 commits into
mainfrom
denik/tf-cleanup-engine-setting
Oct 7, 2026
Merged

denik merged 2 commits into
mainfrom
denik/tf-cleanup-engine-setting

Conversation

@denik

@denik denik commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

The direct engine is the only one, so the resolved engine setting is always direct. ResolveEngineSetting becomes ValidateEngineSetting, which only returns an error, and the EngineSetting type is removed. The migration telemetry source (via_config / via_env / via_default) is now read from bundle.engine and DATABRICKS_BUNDLE_ENGINE where it is recorded, so Deploy and CommitMigration no longer take an engine argument.

Also removes the engine parameter of PullResourcesState, an always-true IsDirect() check before backing up a leftover remote Terraform state, and the unused terraform.TerraformConfigFileName. No behaviour change.

This pull request and its description were written by Isaac.

@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: b1ec06a

Run: 37583188834

Env ✅​pass 🙈​skip Time
✅​ aws linux 276 16 4:44
✅​ aws windows 278 14 3:14
✅​ azure linux 275 16 5:06
✅​ azure windows 277 14 3:17
✅​ gcp linux 276 16 5:24
✅​ gcp windows 278 14 3:15
Top 6 slowest tests (at least 2 minutes):
duration env testname
4:12 gcp linux TestAccept
3:51 azure linux TestAccept
3:15 azure windows TestAccept
3:13 gcp windows TestAccept
3:12 aws windows TestAccept
2:53 aws linux TestAccept

Base automatically changed from denik/engine-env-message to main October 6, 2026 23:11
EngineSetting.Source and SourceDefault had no readers. PullResourcesState
only used the requested engine to pick the engine for a new deployment,
which is always direct now. The direct-engine guard before backing up a
lingering remote terraform state is always true at that point (deploy
migrates first, or the state is already direct). TerraformConfigFileName
had no references.

Co-authored-by: Isaac <no-reply@databricks.com>
@denik
denik force-pushed the denik/tf-cleanup-engine-setting branch from 3eb831d to 8ac5795 Compare October 6, 2026 23:13
@github-actions github-actions Bot added the DABs DABs related issues label Oct 6, 2026
The direct engine is the only one, so a valid engine setting needs no
resolution: drop the EngineSetting type and return only an error. The
migration telemetry source (via_config / via_env / via_default) is read
from bundle.engine and DATABRICKS_BUNDLE_ENGINE where it is recorded, so
Deploy and CommitMigration no longer carry the engine setting.

Co-authored-by: Isaac <no-reply@databricks.com>
@denik denik changed the title bundle: drop engine setting fields that are dead or always direct bundle: drop EngineSetting, validate the engine setting instead of resolving it Oct 7, 2026
@denik
denik marked this pull request as ready for review October 7, 2026 07:27
@denik
denik requested review from a team as code owners October 7, 2026 07:27
@denik
denik requested a review from andrewnester October 7, 2026 07:27
@denik
denik added this pull request to the merge queue Oct 7, 2026
Merged via the queue into main with commit 72f5e0a Oct 7, 2026
40 of 42 checks passed
@denik
denik deleted the denik/tf-cleanup-engine-setting branch October 7, 2026 07:53
andreamatt pushed a commit to andreamatt/databricks-cli that referenced this pull request Oct 9, 2026
…ricks#6961)

Fixes a flake in `bundle/apps/job_permissions`. On the direct engine the
job permissions and the app (which grants the job permission) can be
deployed in either order, so `CAN_MANAGE_RUN` after the first deploy is
order-dependent. The script used to drop the direct variant of that
output, but databricks#6877 renamed the terraform variant to the generic
`out.after_first_deploy.txt`, so the flaky result is now compared (seen
on databricks#6959's `task test (linux, direct)`). The second-deploy check, which
is what databricks#4309 covers, is unchanged.

This pull request and its description were written by Isaac.

---------

Co-authored-by: Isaac <no-reply@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DABs DABs related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants