Skip to content

acceptance: use IPv6 loopback for local test servers on DBR - #8039

Draft
shreyas-goenka wants to merge 1 commit into
shreyas-goenka/dbr-local-taskfrom
shreyas-goenka/dbr-local-ipv6
Draft

shreyas-goenka wants to merge 1 commit into
shreyas-goenka/dbr-local-taskfrom
shreyas-goenka/dbr-local-ipv6

Conversation

@shreyas-goenka

@shreyas-goenka shreyas-goenka commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #8038. Serverless refuses IPv4 loopback connections to most ports (every kernel-assigned one included) but allows [::1], so the DBR runner sets DATABRICKS_TEST_LOOPBACK_HOST=::1 and the fake server, proxies and plain-HTTP loopback auth checks accept it. 15 tests whose output depends on the IPv4 host shape skip local DBR runs; default behaviour is unchanged.

This pull request and its description were written by Isaac.

Serverless refuses IPv4 loopback connections to most ports, including every kernel-assigned one, but allows IPv6 loopback. The DBR runner sets DATABRICKS_TEST_LOOPBACK_HOST=::1 and the fake server, proxies and plain-HTTP loopback auth checks accept it. Tests whose output depends on the IPv4 host shape skip local DBR runs.

Co-authored-by: Isaac <no-reply@databricks.com>
@github-actions

Copy link
Copy Markdown
Contributor

Regression test report ✅

Commit: d28e0061c | Workflow run

Selected 20 changed tests (limit=20, 0 not selected)

33 tests: regression=0 unreleased=1 coverage=32 failing=0
test branch main (2ab1082) latest (v1.28.0)
TestAccept/bundle/resources/alerts/basic/DMS= ✅ ✅ ✅
TestAccept/bundle/resources/alerts/basic/DMS=true ✅ ✅ ✅
TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions/DMS= ✅ ✅ ✅
TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions/DMS=true ✅ ✅ ✅
TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions/DMS= ✅ ✅ ✅
TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions/DMS=true ✅ ✅ ✅
TestAccept/bundle/resources/synced_database_tables/basic/DMS= ✅ ✅ ✅
TestAccept/bundle/resources/synced_database_tables/basic/DMS=true ✅ ✅ ✅
TestAccept/bundle/strict_profile_match/config_file/DMS= ✅ ✅ ✅
TestAccept/bundle/strict_profile_match/config_file/DMS=true ✅ ✅ ✅
TestAccept/bundle/strict_profile_match/default_profile/host/DMS= ✅ ✅ ✅
TestAccept/bundle/strict_profile_match/default_profile/host/DMS=true ✅ ✅ ✅
TestAccept/bundle/strict_profile_match/default_profile/no_host/DMS= ✅ ✅ ✅
TestAccept/bundle/strict_profile_match/default_profile/no_host/DMS=true ✅ ✅ ✅
TestAccept/bundle/strict_profile_match/disabled/DMS= ✅ ✅ ✅
TestAccept/bundle/strict_profile_match/disabled/DMS=true ✅ ✅ ✅
TestAccept/bundle/strict_profile_match/host/DMS= ✅ ✅ ✅
TestAccept/bundle/strict_profile_match/host/DMS=true ✅ ✅ ✅
TestAccept/bundle/strict_profile_match/list_targets/DMS= ✅ ✅ ✅
TestAccept/bundle/strict_profile_match/list_targets/DMS=true ✅ ✅ ✅
TestAccept/bundle/strict_profile_match/no_host/DMS= ✅ ✅ ✅
TestAccept/bundle/strict_profile_match/no_host/DMS=true ✅ ✅ ✅
TestAccept/bundle/strict_profile_match/profile/DMS= ✅ ✅ ✅
TestAccept/bundle/strict_profile_match/profile/DMS=true ✅ ✅ ✅
TestAccept/bundle/templates-machinery/workspace_variable/runtime/DMS= ✅ ✅ ✅
TestAccept/bundle/templates-machinery/workspace_variable/runtime/DMS=true ✅ ✅ ✅
TestAccept/bundle/templates/dbt-sql-workspace-id/DMS= ✅ ✅ ✅
TestAccept/bundle/templates/default-minimal/profiles/DMS= ✅ ✅ ✅
TestAccept/cmd/aitools/mcp/drift-profile-missing ✅ ✅ ✅
TestAccept/cmd/auth/login/device-code/non-interactive/nominal ✅ ✅ ❌
TestAccept/cmd/auth/login/discovery ✅ ✅ ✅
TestAccept/cmd/auth/login/nominal ✅ ✅ ✅
TestAccept/cmd/auth/logout/stale-account-id-workspace-host ✅ ✅ ✅
TestAccept/cmd/auth/login/device-code/non-interactive/nominal: branch ✅ | main (2ab1082) ✅ | latest (v1.28.0) ❌

latest (v1.28.0):

acceptance_test.go:1408: Diff:
        --- cmd/auth/login/device-code/non-interactive/nominal/output.txt
        +++ /tmp/TestAcceptcmdauthlogindevice-codenon-interactivenominal3788148773/002/output.txt
        @@ -15,6 +15,9 @@
         === The first step stores the device code and saves no profile
         
         >>> find.py home
        +home/.databricks/aitools/auto-install.json
        +home/.databricks/aitools/auto-install.json.lock
        +home/.databricks/aitools/auto-install.lock
         home/.databricks/token-cache.json
         
         >>> cache_keys

@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

✅ Integration test report

Commit: d28e006

Run: 45739848304

Env 💚​RECOVERED ✅​pass 🙈​skip Time
💚​ aws linux-2core-8gb 4 291 35 4:45
💚​ aws-windows-latest-4core-16gb 4 293 33 5:05
💚​ azure linux-2core-8gb 4 284 37 4:20
💚​ azure-windows-latest-4core-16gb 4 286 35 4:45
💚​ gcp linux-2core-8gb 4 288 36 4:06
💚​ gcp-windows-latest-4core-16gb 4 290 34 4:29
Test Name aws linux-2core-8gb aws-windows-latest-4core-16gb azure linux-2core-8gb azure-windows-latest-4core-16gb gcp linux-2core-8gb gcp-windows-latest-4core-16gb
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
💚​ TestAccept/bundle/resources/alerts/basic 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
💚​ TestAccept/bundle/resources/alerts/basic/DMS= 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
💚​ TestAccept/bundle/resources/alerts/basic/DMS=true 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
Top 3 slowest tests (at least 2 minutes):
duration env testname
4:04 aws-windows-latest-4core-16gb TestAccept
4:00 azure-windows-latest-4core-16gb TestAccept
3:48 gcp-windows-latest-4core-16gb TestAccept

This branch has not been deployed

No deployments
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