From 6e4b2a25291aeee702e34b120a9453819ead713c Mon Sep 17 00:00:00 2001 From: Andrew Snare Date: Fri, 6 Mar 2026 16:48:00 +0100 Subject: [PATCH 1/3] Improve identification for parametrized integration tests. --- tests/integration/test_backends.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/integration/test_backends.py b/tests/integration/test_backends.py index c9c921fb..15e9fd36 100644 --- a/tests/integration/test_backends.py +++ b/tests/integration/test_backends.py @@ -117,13 +117,13 @@ def test_runtime_backend_works_maps_permission_denied(ws): @pytest.mark.parametrize( "query", [ - INCORRECT_SCHEMA, - INCORRECT_TABLE, - INCORRECT_DESCRIBE, - INCORRECT_TABLE_FETCH, - SYNTAX_ERROR_EXECUTE, - SYNTAX_ERROR_FETCH, - UNKNOWN_ERROR, + pytest.param(INCORRECT_SCHEMA, id="INCORRECT_SCHEMA"), + pytest.param(INCORRECT_TABLE, id="INCORRECT_TABLE"), + pytest.param(INCORRECT_DESCRIBE, id="INCORRECT_DESCRIBE"), + pytest.param(INCORRECT_TABLE_FETCH, id="INCORRECT_TABLE_FETCH"), + pytest.param(SYNTAX_ERROR_EXECUTE, id="SYNTAX_ERROR_EXECUTE"), + pytest.param(SYNTAX_ERROR_FETCH, id="SYNTAX_ERROR_FETCH"), + pytest.param(UNKNOWN_ERROR, id="UNKNOWN_ERROR"), ], ) def test_runtime_backend_errors_handled(ws, query): From abea4704cf38817172d6c7580c296723b67ebd89 Mon Sep 17 00:00:00 2001 From: Andrew Snare Date: Tue, 3 Mar 2026 15:07:30 +0100 Subject: [PATCH 2/3] Upgrade Hatch: 1.9.4 -> 1.16.5 --- .github/workflows/acceptance.yml | 6 +++++- .github/workflows/downstreams.yml | 7 ++++++- .github/workflows/nightly.yml | 6 +++++- .github/workflows/push.yml | 8 ++++++-- .github/workflows/release.yml | 6 +++++- 5 files changed, 27 insertions(+), 6 deletions(-) diff --git a/.github/workflows/acceptance.yml b/.github/workflows/acceptance.yml index 710f7542..4c55ec6c 100644 --- a/.github/workflows/acceptance.yml +++ b/.github/workflows/acceptance.yml @@ -12,6 +12,10 @@ permissions: concurrency: group: single-acceptance-job-per-repo +env: + HATCH_VERBOSE: "2" + HATCH_VERSION: "1.16.5" + jobs: integration: if: github.event_name == 'pull_request' && github.event.pull_request.draft == false @@ -32,7 +36,7 @@ jobs: python-version: '3.10' - name: Install hatch - run: pip install hatch==1.9.4 + run: pip install "hatch==${HATCH_VERSION}" - name: Run integration tests uses: databrickslabs/sandbox/acceptance@acceptance/v0.4.2 diff --git a/.github/workflows/downstreams.yml b/.github/workflows/downstreams.yml index 4c8badba..7175bbb9 100644 --- a/.github/workflows/downstreams.yml +++ b/.github/workflows/downstreams.yml @@ -20,6 +20,10 @@ permissions: contents: read pull-requests: write +env: + HATCH_VERBOSE: "2" + HATCH_VERSION: '1.16.5' + jobs: compatibility: strategy: @@ -44,7 +48,8 @@ jobs: - name: Install toolchain run: | - pip install hatch==1.9.4 + pip install "hatch==${HATCH_VERSION}" + - name: Acceptance uses: databrickslabs/sandbox/downstreams@acceptance/v0.4.2 with: diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 0f504ff9..c105ddcb 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -14,6 +14,10 @@ permissions: concurrency: group: single-acceptance-job-per-repo +env: + HATCH_VERBOSE: "2" + HATCH_VERSION: "1.16.5" + jobs: integration: environment: runtime @@ -32,7 +36,7 @@ jobs: python-version: '3.10' - name: Install hatch - run: pip install hatch==1.9.4 + run: pip install "hatch==${HATCH_VERSION}" - name: Run nightly tests uses: databrickslabs/sandbox/acceptance@acceptance/v0.4.2 diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 10665e63..31527390 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -14,6 +14,10 @@ on: branches: - main +env: + HATCH_VERBOSE: "2" + HATCH_VERSION: "1.16.5" + jobs: ci: strategy: @@ -34,7 +38,7 @@ jobs: - name: Run unit tests run: | - pip install hatch==1.9.4 + pip install "hatch==${HATCH_VERSION}" make test - name: Publish test coverage @@ -55,7 +59,7 @@ jobs: - name: Format all files run: | - pip install hatch==1.9.4 + pip install "hatch==${HATCH_VERSION}" make dev fmt - name: Fail on differences diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 528e0254..2fb3e248 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,10 @@ on: tags: - 'v*' +env: + HATCH_VERBOSE: "2" + HATCH_VERSION: "1.16.5" + jobs: publish: runs-on: @@ -27,7 +31,7 @@ jobs: - name: Build wheels run: | - pip install hatch==1.9.4 + pip install "hatch==${HATCH_VERSION}" hatch build - name: Draft release From 721fd13d59c92810ba1b6e50630802dd38464449 Mon Sep 17 00:00:00 2001 From: Andrew Snare Date: Fri, 6 Mar 2026 17:23:39 +0100 Subject: [PATCH 3/3] Improve the way we trigger an unknown error. The prior way assumed we didn't have certain permissions, but CI/CD does have them. --- tests/integration/test_backends.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/test_backends.py b/tests/integration/test_backends.py index 15e9fd36..898bee3c 100644 --- a/tests/integration/test_backends.py +++ b/tests/integration/test_backends.py @@ -80,7 +80,7 @@ from databricks.sdk.errors import Unknown backend = RuntimeBackend() try: - grants = backend.fetch("SHOW GRANTS ON METASTORE") + list(backend.fetch("SELECT assert_true(false)")) print("FAILED") except Unknown: print("PASSED")