Skip to content

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

Merged
pietern merged 3 commits into
mainfrom
acc-min-versions
Jun 30, 2026
Merged

acc: surface tool-version checks as a TestAccept/prerequisites subtest#5712
pietern merged 3 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
@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

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

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 5840031

Run: 28396185949

Env 💚​RECOVERED 🙈​SKIP ✅​pass 🙈​skip Time
💚​ aws linux 8 13 231 1037 3:45
💚​ aws windows 8 13 233 1035 2:38
💚​ aws-ucws linux 8 13 315 955 4:20
💚​ aws-ucws windows 8 13 317 953 3:12
💚​ azure linux 2 15 231 1036 3:58
💚​ azure windows 2 15 233 1034 2:40
💚​ azure-ucws linux 2 15 317 952 5:05
💚​ azure-ucws windows 2 15 319 950 3:16
💚​ gcp linux 2 15 230 1038 3:37
💚​ gcp windows 2 15 232 1036 2:34
21 interesting tests: 13 SKIP, 8 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 💚​R 💚​R 💚​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 💚​R 💚​R 💚​R 💚​R 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
💚​ TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions/DATABRICKS_BUNDLE_ENGINE=direct 💚​R 💚​R 💚​R 💚​R
💚​ TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions/DATABRICKS_BUNDLE_ENGINE=terraform 💚​R 💚​R 💚​R 💚​R
💚​ TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions 💚​R 💚​R 💚​R 💚​R 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
💚​ TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions/DATABRICKS_BUNDLE_ENGINE=direct 💚​R 💚​R 💚​R 💚​R
💚​ TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions/DATABRICKS_BUNDLE_ENGINE=terraform 💚​R 💚​R 💚​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

@pietern pietern temporarily deployed to test-trigger-is June 29, 2026 19:08 — with GitHub Actions Inactive
@pietern pietern temporarily deployed to test-trigger-is June 29, 2026 19:08 — with GitHub Actions Inactive
@pietern pietern added this pull request to the merge queue Jun 30, 2026
Merged via the queue into main with commit 67fc339 Jun 30, 2026
25 checks passed
@pietern pietern deleted the acc-min-versions branch June 30, 2026 09:05
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