Skip to content

acc: run volume_doesnot_exist locally; fix testserver schema predictive-optimization flag#5697

Merged
radakam merged 4 commits into
mainfrom
deco-27488-acc-volume-doesnot-exist-local
Jun 25, 2026
Merged

acc: run volume_doesnot_exist locally; fix testserver schema predictive-optimization flag#5697
radakam merged 4 commits into
mainfrom
deco-27488-acc-volume-doesnot-exist-local

Conversation

@radakam

@radakam radakam commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Changes

Run acceptance/bundle/artifacts/artifact_path_with_volume/volume_doesnot_exist locally as well as on cloud (Local = true).

To make local output match cloud, fix the testserver instead of papering over the diff: libs/testserver/schemas.go now returns DISABLE (was ENABLE) for effective_predictive_optimization_flag.value, matching the real test metastore the fake already pins to. Regenerated the goldens that baked in the old ENABLE:

  • acceptance/bundle/resources/schemas/recreate/output.txt
  • acceptance/bundle/resources/grants/schemas/out_of_band_principal/{out.plan.direct.json,out.plan2.direct.json}
  • acceptance/bundle/resources/grants/schemas/duplicate_principals/out.plan.direct.json
  • bundle/direct/dresources/schema_test.go (unit test hitting the same fake)

Why

Part of converting Local = false acceptance tests to local+cloud. The only divergence was the metastore-inherited optimization flag (DISABLE on the real metastore, ENABLE on the fake). It's a fixed value, not per-run, so the faithful fix is to make the fake return what the real API returns. This keeps one golden valid for both local and cloud and improves testserver fidelity for every schema test. Same approach as #5689. The cloud-only sibling volume_not_deployed already records DISABLE, corroborating the real value.

Tests

  • go test ./acceptance -run 'TestAccept/bundle/(artifacts/artifact_path_with_volume|resources/grants/schemas|resources/schemas)' and go test ./bundle/direct/dresources pass locally (terraform + direct).
  • ./task fmt, ./task checks, ./task lint clean.

@radakam radakam temporarily deployed to test-trigger-is June 24, 2026 09:35 — with GitHub Actions Inactive
@radakam radakam temporarily deployed to test-trigger-is June 24, 2026 09:35 — with GitHub Actions Inactive
@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: ffc03a5

Run: 28154606352

Env 🟨​KNOWN 💚​RECOVERED 🙈​SKIP ✅​pass 🙈​skip Time
🟨​ aws linux 7 1 13 243 1024 7:00
🟨​ aws windows 7 1 13 245 1022 8:43
💚​ aws-ucws linux 8 13 330 941 5:03
💚​ aws-ucws windows 8 13 332 939 5:28
💚​ azure linux 2 15 246 1022 5:02
💚​ azure windows 2 15 248 1020 4:29
💚​ azure-ucws linux 2 15 335 937 6:54
💚​ azure-ucws windows 2 15 337 935 5:30
💚​ gcp linux 2 15 245 1024 5:16
💚​ gcp windows 2 15 247 1022 5:28
21 interesting tests: 13 SKIP, 7 KNOWN, 1 RECOVERED
Test Name aws linux aws windows aws-ucws linux aws-ucws windows azure linux azure windows azure-ucws linux azure-ucws windows gcp linux gcp windows
🟨​ TestAccept 🟨​K 🟨​K 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
🙈​ TestAccept/bundle/invariant/no_drift 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/permissions 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🟨​ TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions 🟨​K 🟨​K 💚​R 💚​R 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🟨​ TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions/DATABRICKS_BUNDLE_ENGINE=direct 🟨​K 🟨​K 💚​R 💚​R
🟨​ TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions/DATABRICKS_BUNDLE_ENGINE=terraform 🟨​K 🟨​K 💚​R 💚​R
🟨​ TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions 🟨​K 🟨​K 💚​R 💚​R 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🟨​ TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions/DATABRICKS_BUNDLE_ENGINE=direct 🟨​K 🟨​K 💚​R 💚​R
🟨​ TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions/DATABRICKS_BUNDLE_ENGINE=terraform 🟨​K 🟨​K 💚​R 💚​R
🙈​ TestAccept/bundle/resources/postgres_branches/basic 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/postgres_branches/recreate 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/postgres_branches/replace_existing 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/postgres_branches/update_protected 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/postgres_branches/without_branch_id 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/postgres_endpoints/basic 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/postgres_projects/update_display_name 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/synced_database_tables/basic 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_endpoints/drift/recreated_same_name 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_indexes/recreate/embedding_dimension 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/ssh/connection 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
💚​ TestFetchRepositoryInfoAPI_FromRepo 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
Top 6 slowest tests (at least 2 minutes):
duration env testname
3:28 azure-ucws windows TestAccept
3:23 gcp windows TestAccept
3:16 aws-ucws windows TestAccept
2:48 aws linux TestSecretsPutSecretStringValue
2:44 azure windows TestAccept
2:27 gcp linux TestSecretsPutSecretStringValue

@radakam radakam temporarily deployed to test-trigger-is June 24, 2026 12:18 — with GitHub Actions Inactive
@radakam radakam temporarily deployed to test-trigger-is June 24, 2026 12:18 — with GitHub Actions Inactive
@radakam radakam temporarily deployed to test-trigger-is June 24, 2026 12:33 — with GitHub Actions Inactive
@radakam radakam temporarily deployed to test-trigger-is June 24, 2026 12:33 — with GitHub Actions Inactive
@radakam radakam marked this pull request as ready for review June 24, 2026 12:51
@radakam radakam changed the title acc: run artifacts/artifact_path_with_volume/volume_doesnot_exist loc… acc: run volume_doesnot_exist locally; fix testserver schema predictive-optimization flag Jun 24, 2026
@radakam radakam force-pushed the deco-27488-acc-volume-doesnot-exist-local branch from 4f16bb3 to 4755dfc Compare June 24, 2026 13:08
@radakam radakam temporarily deployed to test-trigger-is June 24, 2026 13:08 — with GitHub Actions Inactive
@radakam radakam temporarily deployed to test-trigger-is June 24, 2026 13:08 — with GitHub Actions Inactive
@radakam radakam force-pushed the deco-27488-acc-volume-doesnot-exist-local branch from 4755dfc to 334bdcb Compare June 24, 2026 14:59
@radakam radakam temporarily deployed to test-trigger-is June 24, 2026 14:59 — with GitHub Actions Inactive
@radakam radakam temporarily deployed to test-trigger-is June 24, 2026 14:59 — with GitHub Actions Inactive
@radakam radakam temporarily deployed to test-trigger-is June 24, 2026 18:29 — with GitHub Actions Inactive
@radakam radakam temporarily deployed to test-trigger-is June 24, 2026 18:29 — with GitHub Actions Inactive
radakam added 4 commits June 25, 2026 05:18
…ally

Enable the volume_doesnot_exist acceptance test to run against the local
testserver in addition to cloud. The testserver already models UC schema
and volume CRUD (including a 404 on a missing volume), so the test passes
end-to-end locally: bundle deploy fails with the expected "volume ... does
not exist" error.

The only divergence is the effective predictive optimization value, which
is inherited from the metastore (DISABLE on the test metastore vs ENABLE on
the testserver). A test-scoped Repls normalizes it so a single golden stays
valid for both local and cloud runs.

Part of DECO-27488.
Replace the test-scoped Repls in volume_doesnot_exist with a fix to the
testserver itself: the fake schema-create response now inherits DISABLE
from the metastore, matching the real test metastore. Local and cloud
then produce identical output, so the single golden is valid for both
without masking the value.

Regenerate the schema goldens that previously baked in the testserver's
ENABLE value (schemas/recreate, grants/schemas/{out_of_band_principal,
duplicate_principals}).

Part of DECO-27488.
…on flag

The testserver fake now inherits DISABLE for
effective_predictive_optimization_flag.value, so the dresources schema
unit test that exercises the same SchemasCreate path must expect DISABLE.
@radakam radakam force-pushed the deco-27488-acc-volume-doesnot-exist-local branch from 99e15aa to ffc03a5 Compare June 25, 2026 07:37
@radakam radakam temporarily deployed to test-trigger-is June 25, 2026 07:37 — with GitHub Actions Inactive
@radakam radakam temporarily deployed to test-trigger-is June 25, 2026 07:37 — with GitHub Actions Inactive
@radakam radakam added this pull request to the merge queue Jun 25, 2026
Merged via the queue into main with commit 4746ca6 Jun 25, 2026
23 checks passed
@radakam radakam deleted the deco-27488-acc-volume-doesnot-exist-local branch June 25, 2026 08:29
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