Repository navigation
Remove the terraform engine from the acceptance CI matrix - #6877
Merged
Merged
Conversation
Collaborator
Integration test reportCommit: aa4e242
Top 15 slowest tests (at least 2 minutes):
|
denik
force-pushed
the
denik/remove-tf-ci-matrix
branch
3 times, most recently
from
September 30, 2026 08:56
9b7e99d to
3015115
Compare
denik
force-pushed
the
denik/remove-tf-ci-matrix
branch
from
September 30, 2026 10:25
3015115 to
ab15880
Compare
2 of 4 tasks
denik
force-pushed
the
denik/remove-tf-ci-matrix
branch
2 times, most recently
from
October 2, 2026 09:34
c9565df to
ac061d5
Compare
denik
marked this pull request as ready for review
October 2, 2026 09:40
denik
requested review from
a team,
jefferycheng1,
kanterov and
lennartkats-db
as code owners
October 2, 2026 09:40
janniklasrose
approved these changes
Oct 2, 2026
janniklasrose
left a comment
Member
There was a problem hiding this comment.
approved based on PR summary & spot checks
pietern
approved these changes
Oct 2, 2026
denik
enabled auto-merge
October 2, 2026 10:16
Drop the global DATABRICKS_BUNDLE_ENGINE matrix and EnvVaryOutput so the acceptance suite is direct-only. The terraform engine code stays; it is removed in a follow-up PR. - acceptance/test.toml: drop EnvMatrix.DATABRICKS_BUNDLE_ENGINE / EnvMatrixExclude.noplantf / EnvRepl. - acceptance/bundle/test.toml: drop EnvVaryOutput and EnvMatrixExclude.dms_needs_direct. - push.yml: drop the terraform cell; direct/directdms cells filter on DMS only. - 57 mixed engine matrices collapsed to ["direct"]; 183 scripts drop the .$DATABRICKS_BUNDLE_ENGINE output suffix. - delete 412 *.terraform.* goldens; rename 468 *.direct.* goldens to plain. - remove 14 terraform-only tests (terraform-specific behavior / rejection paths, obsolete once the engine is gone - their coverage returns as removal-error tests alongside the engine removal); convert cmd/completion and generate/auto-bind to direct-only. Co-authored-by: Isaac <no-reply@databricks.com>
…ine-forced tests Co-authored-by: Isaac <no-reply@databricks.com>
The CI-matrix removal stripped `.$DATABRICKS_BUNDLE_ENGINE` from the scripts' intermediate filenames (e.g. plan_raw.$DATABRICKS_BUNDLE_ENGINE.json -> plan_raw.json) but left the matching Ignore entries as plan_raw.direct.json / plan_raw.terraform.json, so the renamed intermediate was no longer ignored and tripped the "unexpected files" check. Collapse each pair to the plain name. Co-authored-by: Isaac <no-reply@databricks.com>
Dropping DATABRICKS_BUNDLE_ENGINE from the matrix left several scripts still referencing the now-unset variable. Under set -u those errored, and a prior -update baked the "unbound variable" output into their goldens (permissions, recreate-keys, grants, resource_deps), so the tests were green against broken goldens. - Strip the engine suffix from the remaining out.*.$DATABRICKS_BUNDLE_ENGINE.json writes (permissions/_script, recreate-keys/_script, run_as/pipelines/_script). - Drop the direct-only `if [ "$DATABRICKS_BUNDLE_ENGINE" = "direct" ]` guards now that direct is the only engine (volumes/uppercase-name, grants remove-principal), and the dead terraform-only blocks in resource_deps. - Default read_state.py to the direct engine when the variable is unset (terraform only when set explicitly); direct is the CLI default now. - Point the templates/default-python/classic and readplan/lineage-mismatch plan reads at the renamed plain plan files. - Pin generate/auto-bind to the plain DMS variant (bind is unsupported with deployment history), matching its previous single engine run. - Fix user_agent/verify.py to expect engine/direct now that recorded requests are no longer engine-suffixed, and regenerate all affected goldens. Co-authored-by: Isaac <no-reply@databricks.com>
…nd DMS pin Co-authored-by: Isaac <no-reply@databricks.com>
denik
force-pushed
the
denik/remove-tf-ci-matrix
branch
from
October 2, 2026 10:23
2d11a48 to
aa4e242
Compare
Collaborator
Integration test reportCommit: b84661a
10 interesting tests: 6 FAIL, 4 flaky
Top 50 slowest tests (at least 2 minutes):
|
MarioCadenas
added a commit
that referenced
this pull request
Oct 6, 2026
#6877 dropped the default DATABRICKS_BUNDLE_ENGINE matrix, so the test now runs direct-only. Co-authored-by: Isaac <no-reply@databricks.com> Signed-off-by: MarioCadenas <MarioCadenas@users.noreply.github.com>
yiweidai-db
pushed a commit
to yiweidai-db/cli
that referenced
this pull request
Oct 6, 2026
…icks#6941) ## Changes The testserver's stale-read / never-finishing-delete injection (`staleOnceEnabled` in `acceptance/internal/prepare_server.go`) required both `INJECT_STALE_ON_DIRECT=1` and `DATABRICKS_BUNDLE_ENGINE=direct`. Now it only requires `INJECT_STALE_ON_DIRECT=1`. ## Why databricks#6877 removed the terraform engine from the acceptance matrix, so `DATABRICKS_BUNDLE_ENGINE` is no longer set and the injection silently turned off. Running `-update` in that PR then regenerated `postgres_synced_tables/recreate_capped` with a successful recreate (`Recreated postgres_synced_tables.my_table`). The test exists to check the opposite: its section title is "the capped wait times out and the recreate fails". It has been passing on main without checking anything since. With the gate fixed, the golden is back to exactly what databricks#6728 committed: the `DATABRICKS_BUNDLE_RESOURCE_MAX_WAIT` timeout error. The dashboards tests that also set `INJECT_STALE_ON_DIRECT` pass unchanged. ## Tests `TestAccept/bundle/resources/(postgres_synced_tables|dashboards)` This pull request and its description were written by Isaac. Co-authored-by: Isaac <no-reply@databricks.com>
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>
This was referenced Nov 24, 2026
apeforest
pushed a commit
to apeforest/cli
that referenced
this pull request
Nov 25, 2026
## Changes
Correct the `Badness` notes in `acceptance/bundle/resources` tests so
they match what the expected output records today. This is a one-time
scan of existing tests; only `test.toml` lines change, no outputs.
Badness is meant to say what is wrong in the recorded output and what
the right behavior would be. Some notes described problems that are
already fixed, problems of the removed Terraform engine, or how the test
is set up.
Removed (the output now shows correct behavior):
- `dashboards/nested-folders`: deploy succeeds and `lakeview get`
returns `"lifecycle_state": "ACTIVE"`.
- `jobs/on_failure_empty_slice`: no permanent drift left; the plan after
deploy only has `"email_notifications.on_failure": {"action": "skip",
"reason": "empty"}`.
- `permissions/target_permissions`: not a bug. The target's CAN_MANAGE
is for the deploying user and is upgraded to `"permission_level":
"IS_OWNER"` on purpose. The terraform/direct comparison no longer
applies (databricks#6877).
- `pipelines/zero-value-fields`: Terraform-only. The request now has
`"continuous": false`, `"development": false`, `"photon": false`,
`"serverless": false`.
- `postgres_endpoints/recreate`: Terraform-only; direct prints
`Recreated postgres_endpoints.my_endpoint`. The test.toml held only
Badness, so it is deleted.
- `postgres_roles/recreate-postgres-role`: Terraform-only; direct plans
`recreate postgres_roles.my_role`. The test.toml held only Badness, so
it is deleted.
Updated (accurate but stale or vague):
- `catalogs/rename_out_of_band`, `catalogs/rename_all_out_of_band`:
dropped the PR-time "Same on main."; now says what destroy leaves behind
(`Destroy: 0 deleted`) and what should happen.
- `schemas/destroy_after_rename_out_of_band`,
`schemas/foreign_at_recorded_name`: dropped "Same on main."; added the
right behavior (look the schema up by `schema_id`).
- `pipelines/num-workers-zero`: the config never sets num_workers. The
note now says that a single-node pipeline cluster is created without
`num_workers`, while clusters and job clusters get `num_workers: 0`. It
no longer mentions Terraform.
- `postgres_projects/add_default_endpoint_settings`: removed the
Terraform comparison from the Badness and from the test.toml and script
comments, since no output shows it any more. Kept the failure: `Field
'spec.default_endpoint_settings.suspension' is in update_mask but not
provided in request`.
- `postgres_roles/inherited-role-conflict`: removed the Badness. Roles
already support `replace_existing`, and the sibling `replace_existing`
test takes the role over, so the conflict without it is expected. A
comment now points to `replace_existing` and `inherited-role-bind`.
- `synced_database_tables/basic`: now quotes the unresolved name: `Name:
${resources.database_catalogs.my_catalog.name}.${...database_name}.my_synced_table`.
- `vector_search_endpoints/update/target_qps`: said `min_qps`, but the
test changes `target_qps`. The note now quotes `update
vector_search_endpoints.my_endpoint.permissions` (a PUT of the same
ACL).
- `vector_search_indexes/recreate/with_endpoint`: dropped the follow-up
plan and added the right behavior (recreate the index together with its
endpoint).
Added (the output records bad behavior with no note):
- `catalogs/auto-approve`: `Error: cannot plan resources.schemas.foo:
cannot resolve "${resources.catalogs.bar.name}": internal error:
resources.catalogs.bar: action is "delete" missing new_state`. This is
an internal error, it comes after the files are uploaded, and the
`--auto-approve` prompt the test is for is never reached.
- `experiments/basic`: adding a tag is silently ignored (`Plan: 0 to
add, 0 to change, 0 to delete, 1 unchanged`, and k2 never shows up).
- `models/basic`: same for model tags; the model keeps only key1.
- `materialization_sets/settled_failure`: without deployment-history
recording, destroy prints `Destroy: 3 deleted` while the set is still in
the workspace.
Kept as accurate: `clusters/libraries-content-change`,
`dashboards/publish-failure-stale-content`, `grants/schemas/remove_all`,
`job_runs/interrupted_run`, `jobs/whole-block-overlap`,
`postgres_data_apis/update`,
`postgres_endpoints/remove_suspend_timeout`,
`postgres_projects/remove_history_retention`,
`secrets/remove-expire-time`,
`vector_search_endpoints/drift/recreated_same_name`.
## Why
Stale or vague Badness misleads readers and hides which tests record
real bugs.
## Tests
All touched tests pass locally (Badness does not affect how a test
runs). Only `test.toml` changes; no outputs change.
Dashboard: none. This does not fix a failing test or error.
AI agent (opus5.5, isaac_claude)
This pull request and its description were written by Isaac.
---------
Co-authored-by: Isaac <no-reply@databricks.com>
apeforest
pushed a commit
to apeforest/cli
that referenced
this pull request
Nov 25, 2026
…icks#7920) ## Changes Correct the `Badness` notes in the deploy-related acceptance tests (`bundle/resource_deps`, `bundle/deploy`, `bundle/artifacts`, `bundle/migrate`, `bundle/dms`) so they match what the expected output records today. This is a one-time scan of existing tests; only `test.toml` lines and script comments change, no outputs. Removed (fixed or no longer true): - `artifacts/globs_in_files_in_include`: fixed in databricks#2540. Globs resolve against `resources/` from every cwd (`"source": "[TEST_TMP_DIR]/resources/a1.txt"` in all three runs). - `deploy/readplan/whl-not-uploaded/test.toml`: the bug was fixed and the test moved to `readplan/whl-upload` in databricks#6682, which left only this test.toml behind. - `resource_deps/jobs_update/script`: "output should not be different per engine". Terraform left the matrix in databricks#6877, and there is one output file. - `migrate/command/dashboards/script`: said the plan shows `recreate`, but the next lines show `Plan: ... 1 unchanged`. Updated (accurate but stale or vague): - `artifacts/artifact_path_with_volume/volume_not_deployed`: says what fails (`volume ... does not exist` on the first deploy) and why (artifacts upload before resources are created). - `deploy/mlops-stacks`: names the two warnings: `expected a string value, found null` at `targets.dev.workspace.host` and `unknown field: description` at `resources.experiments.experiment`. - `resource_deps/bad_syntax`: `${resources.volumes.bar.bad..syntax}` is not reported. Validate, plan and deploy all accept it, and deploy succeeds (`Unexpected success`). - `resource_deps/loop_self`: `Validation OK!`, then files uploaded before `cycle detected`. - `resource_deps/missing_ingestion_definition`: dropped the Terraform half. Direct creates `pipelines.foo`, then fails with `ingestion_definition: cannot access nil value`. - `resource_deps/missing_map_key`: adds that `jobs.test` is created before `key "missing_tag" not found in map`. - `resource_deps/non_existent_field`: "could be nicer" was vague. The error names internal types (`dresources.VolumeState`, `catalog.VolumeInfo`). - `resource_deps/unicode_reference`: the old text described the fix rather than a problem. The real gap is that nothing recorded shows the unicode reference resolving: `RecordRequests = false`, and `bundle summary` prints `Name: ${resources.jobs.变量.id}` because it never resolves resource references, for ASCII keys too. - `migrate/command/default-python/script` (first note): the plan no longer has `num_workers` changes, only `libraries[0].whl`. Added: - `dms/empty-grants`: the recorded `PATCH .../operations/schemas.foo.grants` without a state field is the known bug (the real service rejects it). It is the same bug as the `grants/schemas/remove_all` Badness. The Badness is now its only description, and the comment keeps just the `Cloud = false` reason. - Comments: `migrate/command/dashboards` keeps the databricks#3966 link on the commented-out recreate steps; removed the stale per-engine comment in `resource_deps/jobs_update`. Kept as accurate: `deploy/files/out-of-band-delete`, `resource_deps/loop_jobs`, `resource_deps/preset_tags_not_applied_to_whole_map_reference`, `migrate/command/default-python/script` (second note). ## Why Stale or vague Badness misleads readers and hides which tests record real bugs. ## Tests All touched tests pass locally (Badness does not affect how a test runs). No outputs change. Dashboard: none. This does not fix a failing test or error. AI agent (opus5.5, isaac_claude) This pull request and its description were written by Isaac. --------- Co-authored-by: Isaac <no-reply@databricks.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes the terraform engine from the acceptance CI matrix so the suite runs direct-only, and drops the now-single-value
DATABRICKS_BUNDLE_ENGINEmatrix pins (usingEnv.DATABRICKS_BUNDLE_ENGINEonly where a test forces a specific engine). The terraform engine code itself is untouched here; it is rejected in #6888 and removed in #6889.This pull request and its description were written by Isaac.