Skip to content

acc: surface tool-version checks as a TestAccept/prerequisites subtest#5712

Open
pietern wants to merge 2 commits into
mainfrom
acc-min-versions
Open

acc: surface tool-version checks as a TestAccept/prerequisites subtest#5712
pietern wants to merge 2 commits into
mainfrom
acc-min-versions

Conversation

@pietern

@pietern pietern commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

The acceptance prerequisite checks (jq, uv, ruff, python) ran inline in TestAccept, so a stale tool failed as a bare TestAccept that says nothing about the cause. This runs them in a TestAccept/prerequisites subtest so the failure names the problem.

EnsurePython is split into RequirePython (the check, run in the subtest) and ConfigurePython (the PATH side effect). ConfigurePython runs on the parent t after the subtest, since its t.Setenv/t.TempDir would be torn down at a subtest's end.

Follow-up to #5698.

This pull request and its description were written by Isaac.

The acceptance prerequisite checks (jq, uv, ruff, python) ran inline in
TestAccept, so a stale or missing tool failed as a bare TestAccept, which says
nothing about the cause. Run them in a TestAccept/prerequisites subtest so the
failure names the actual problem.

Split EnsurePython into RequirePython (pure version check, safe in the subtest)
and ConfigurePython (the PATH side effect). ConfigurePython runs on the parent
TestAccept t after the subtest passes: it prepends to PATH via t.Setenv and uses
t.TempDir, both of which are torn down when their test returns, so running it
from a subtest would revert the PATH change before the rest of the suite runs.

Co-authored-by: Isaac
@github-actions

Copy link
Copy Markdown
Contributor

Waiting for approval

Based on git history, these people are best suited to review:

  • @denik -- recent work in acceptance/

Eligible reviewers: @andrewnester, @anton-107, @renaudhartert-db, @shreyas-goenka, @simonfaltum

Suggestions based on git history. See OWNERS for ownership rules.

@pietern pietern temporarily deployed to test-trigger-is June 24, 2026 21:02 — with GitHub Actions Inactive
@pietern pietern temporarily deployed to test-trigger-is June 24, 2026 21:02 — with GitHub Actions Inactive
ConfigurePython's PATH side effect is documented on ConfigurePython itself; it
is not a concern of requirePrerequisites.

Co-authored-by: Isaac
@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 27237fb

Run: 28129484224

Env 🟨​KNOWN 💚​RECOVERED 🙈​SKIP ✅​pass 🙈​skip Time
🟨​ aws linux 7 1 13 244 1024 5:31
🟨​ aws windows 7 1 13 246 1022 8:58
💚​ aws-ucws linux 8 13 334 940 5:46
💚​ aws-ucws windows 8 13 336 938 6:40
💚​ azure linux 2 15 247 1022 4:42
💚​ azure windows 2 15 249 1020 5:52
💚​ azure-ucws linux 2 15 339 936 6:23
💚​ azure-ucws windows 2 15 341 934 5:41
💚​ gcp linux 2 15 246 1024 4:39
💚​ gcp windows 2 15 248 1022 5:11
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 5 slowest tests (at least 2 minutes):
duration env testname
3:59 azure windows TestAccept
3:31 gcp windows TestAccept
3:12 aws-ucws windows TestAccept
3:11 azure-ucws windows TestAccept
2:19 aws windows TestSecretsPutSecretStringValue

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.

2 participants