Repository navigation
Delete integration tests for sqlexec covered by acceptance - #8198
Merged
Merged
Conversation
TestSQLExecNullParameter and TestSQLExecFailedStatement check NULL parameter binding and the FAILED statement error, which the acceptance tests added in #8072 check on every cloud. Their checks of unused API went with #8113. This removes the last tests in integration/libs/sqlexec. They were also the only cloud check of sqlexec's synchronous Execute, which pipelines show uses, so pipelines/show/missing-table runs that path on cloud against a missing table. cloud: TestAccept/pipelines/show/missing-table TestAccept/experimental/aitools/tools/query/null-parameter TestAccept/experimental/aitools/tools/query/failed-statement Co-authored-by: Isaac <no-reply@databricks.com>
Contributor
Regression test report ✅Commit: Selected 1 changed tests (limit=20, 0 not selected) 7 tests: regression=0 unreleased=0 coverage=7 failing=0
|
Collaborator
✅ Integration test reportCommit: df0dd99
Top 3 slowest tests (at least 2 minutes):
|
denik
marked this pull request as ready for review
November 30, 2026 12:33
denik
requested review from
Sankalp-Mittal,
andrewnester and
mihaimitrea-db
and removed request for
mihaimitrea-db
November 30, 2026 12:33
There was a problem hiding this comment.
Automated review at daba3aa. Each finding was verified against the code.
No blocking issues found. 2 non-blocking comment(s) below.
This PR deletes the last two integration/libs/sqlexec tests and adds acceptance/pipelines/show/missing-table, a Cloud = true test of sqlexec's synchronous Execute path. The deletion matches the integration-tree deprecation, and the new test does check the request shape and the real FAILED reply. I have two non-blocking points about how the test is set up. It repeats coverage and gating logic that already exist, where it could extend the existing test and reuse the helper.
andrewnester
approved these changes
Nov 30, 2026
Fold the cloud check of sqlexec's synchronous Execute into the existing pipelines/show/failed-statement test, which now relies on the testserver's default FAILED answer locally instead of a stub. Share the UC warehouse gate as require_uc_warehouse in acceptance/script.prepare. cloud: TestAccept/pipelines/show/failed-statement TestAccept/experimental/aitools/tools/query TestAccept/experimental/aitools/tools/statement Co-authored-by: Isaac <no-reply@databricks.com>
andrewnester
approved these changes
Nov 30, 2026
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.
Changes
Deletes the last two tests in
integration/libs/sqlexec, and with them the package:TestSQLExecNullParameterexperimental/aitools/tools/query/null-parameter(Cloud = true, every cloud)TestSQLExecFailedStatementexperimental/aitools/tools/query/failed-statement(Cloud = true, every cloud),pipelines/show/failed-statement(nowCloud = true, every cloud)#8072 added these acceptance tests and kept the two integration tests only because each also checked code with no production caller. #8113 removed that code and the checks. Nothing else in the package is left, and no helper was used only by it (
newClientlived in the deleted file).pipelines/show/failed-statementnow runs on cloud too. These two tests were the only cloud check of sqlexec's synchronousExecute(submit with a 10s server-side wait), whichpipelines showuses. Theaitools tools querytests from #8072 submit with0sand poll instead. The test runspipelines showon a missing table.statement failed: BAD_REQUEST:and pins the request (wait_timeout: 10s,on_wait_timeout: CONTINUE). Changing the wait timeout inlibs/sqlexecfails it locally.[TABLE_OR_VIEW_NOT_FOUND], so the real API must acceptExecute's request and answer with a FAILED statement.The UC-warehouse gate that the SQL cloud tests share moves from
experimental/aitools/tools/script.preparetorequire_uc_warehouseinacceptance/script.prepare, sopipelines/show/failed-statementcalls the same gate instead of a copy.Why
The integration tree is deprecated (integration/README.md): cloud coverage moves to acceptance tests with
Cloud = true. Follow-up to #8072 and #8113; same method as #6113, #6140, #6223, #6316 and #7251.Coverage proof
Both tests' coverage was recorded on AWS at a6c8694 with
-coverpkg=github.com/databricks/cli/...(one passing run each). It was compared block by block with acceptance coverage at the same commit: local runs ofexperimental/aitools/tools/*,pipelines/show/*andselftest/*, plus AWS runs of thequeryandstatementtests."Harness-only" blocks are
integration/internal/accandinternal/testutil, the integration tests' own setup. No real-gap blocks.Client.Execute, which only these tests andpipelines showcall, is covered by thepipelines/showtests.Assertion map
valueand bound as SQL NULL (true){"name":"maybe"}, resultis_null=trueExecutemusterr,statement failed: BAD_REQUEST:(cloud: and[TABLE_OR_VIEW_NOT_FOUND]); query/failed-statement: the same throughSubmit/PollExecute's request (wait_timeout: 10s,on_wait_timeout: CONTINUE)BAD_REQUEST, the TABLE_OR_VIEW_NOT_FOUND message andSQLSTATE: 42P01require_uc_warehouseinacceptance/script.prepareRuntime
The two integration tests took about 1s each on AWS. Added: the cloud run of
pipelines/show/failed-statement, under 2s on AWS.Gaps and risks
Executegap fixed above.pipelines/show/failed-statementrelies ondefaultresolving in the workspace's current catalog. Checked on AWS; azure and gcp run through this PR'scloud:line.require_uc_warehouse, used only by SQL cloud tests).This PR was created by the integration-deprecation loop.
🤖 AI agent (opus5.5, isaac_claude)
This pull request and its description were written by Isaac.