Skip to content

acceptance: split local DBR tests across parallel tasks - #8062

Draft
shreyas-goenka wants to merge 2 commits into
shreyas-goenka/dbr-local-run-rootfrom
shreyas-goenka/dbr-local-shards
Draft

shreyas-goenka wants to merge 2 commits into
shreyas-goenka/dbr-local-run-rootfrom
shreyas-goenka/dbr-local-shards

Conversation

@shreyas-goenka

Copy link
Copy Markdown
Contributor

Stacked on #8061. All local tests take ~2.5h on one 4-CPU serverless driver, close to the 3h job wait. TESTS_SELECT_SHARD=i/N runs only the subtests hashed into shard i, and TestDbrAcceptance runs DBR_LOCAL_TEST_SHARDS (default 6) local tasks in parallel.

This pull request and its description were written by Isaac.

All local tests take about 2.5h on one 4-CPU serverless driver, close to the 3h job wait. TESTS_SELECT_SHARD=i/N runs only the subtests hashed into shard i, and TestDbrAcceptance runs DBR_LOCAL_TEST_SHARDS (default 6) local tasks in parallel.

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

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Regression test report ✅

Commit: e925cd464 | Workflow run

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

35 tests: regression=0 unreleased=1 coverage=34 failing=0
test branch main (2ab1082) latest (v1.28.0)
TestAccept/air/image-push ✅ ✅ ❌
TestAccept/air/run ✅ ✅ ✅
TestAccept/air/run-submit ✅ ✅ ✅
TestAccept/apps/validate ✅ ✅ ✅
TestAccept/apps/validate-package-manager ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/cli_defaults/DMS= ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/cli_defaults/DMS=true ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/config_edits/DMS= ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/config_edits/DMS=true ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/flushed_cache/DMS= ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/flushed_cache/DMS=true ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/formatting_preserved/DMS= ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/formatting_preserved/DMS=true ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/job_fields/DMS= ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/job_fields/DMS=true ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/job_multiple_tasks/DMS= ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/job_multiple_tasks/DMS=true ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/job_params_variables/DMS= ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/job_params_variables/DMS=true ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/job_pipeline_task/DMS= ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/job_pipeline_task/DMS=true ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/json_status_selectors/DMS= ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/json_status_selectors/DMS=true ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/multiple_files/DMS= ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/multiple_files/DMS=true ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/multiple_resources/DMS= ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/multiple_resources/DMS=true ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/output_json/DMS= ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/output_json/DMS=true ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/output_no_changes/DMS= ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/output_no_changes/DMS=true ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/pipeline_fields/DMS= ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/pipeline_fields/DMS=true ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/policy_injected_cluster_fields/DMS= ✅ ✅ ✅
TestAccept/bundle/config-remote-sync/policy_injected_cluster_fields/DMS=true ✅ ✅ ✅
TestAccept/air/image-push: branch ✅ | main (2ab1082) ✅ | latest (v1.28.0) ❌

latest (v1.28.0):

acceptance_test.go:1431: Diff:
        --- air/image-push/output.txt
        +++ /tmp/TestAcceptairimage-push1164416533/002/output.txt
        @@ -8,340 +8,6 @@
         Updated Docker config: [TEST_TMP_DIR]/home/docker/config.json
         Installed Docker credential helper: [TEST_TMP_DIR]/home/bin/docker-credential-databricks
         Using local source image nvidia/cuda:13.4.1
        -Source image nvidia/cuda:13.4.1 is 7.1 GB uncompressed.
        -Tagging image as [WORKSPACE_ID].container.us-west-2.localhost/my-catalog.my-schema.cuda:13.4.1-cudnn-devel-ubuntu26.04
        -Pushing image to [WORKSPACE_ID].container.us-west-2.localhost/my-catalog.my-schema.cuda:13.4.1-cudnn-devel-ubuntu26.04
        -Docker push progress
        -Pushed image.
        -Compressed image size: 3.1 GB (layers: 2).
        -For Databricks Artifact Registry image limits, see https://docs.databricks.com/aws/en/artifact-registry/#limitations
        -Now you can set `environment.unity_catalog_image = my-catalog.my-schema.cuda:13.4.1-cudnn-devel-ubuntu26.04` in your YAML config and create a workload with `databricks air run -f config.yaml`.
        +Error: source image nvidia/cuda:13.4.1 has platform "linux/amd64|7140000000|"; AIR requires linux/amd64: use --pull to fetch a compatible image, or rebuild the source for linux/amd64
         
        -=== inferred region and workspace ID requests
        -
        ->>> print_requests.py --get //api
        -{
        -  "method": "GET",
        -  "path": "/api/2.0/preview/scim/v2/Me",
        -  "q": {
        -    "excludedAttributes": "entitlements"
        -  }
        -}
        -{
        -  "method": "GET",
        -  "path": "/api/2.1/unity-catalog/metastore_summary"
        -}
        -
        -=== docker commands
        -image ls --quiet nvidia/cuda:13.4.1
        -image inspect --format {{.Os}}/{{.Architecture}}|{{.Size}}|{{with .Config}}{{.WorkingDir}}{{end}} nvidia/cuda:13.4.1
        -tag nvidia/cuda:13.4.1 [WORKSPACE_ID].container.us-west-2.localhost/my-catalog.my-schema.cuda:13.4.1-cudnn-devel-ubuntu26.04
        -push [WORKSPACE_ID].container.us-west-2.localhost/my-catalog.my-schema.cuda:13.4.1-cudnn-devel-ubuntu26.04
        -manifest inspect --verbose [WORKSPACE_ID].container.us-west-2.localhost/my-catalog.my-schema.cuda:13.4.1-cudnn-devel-ubuntu26.04
        -
        -=== missing image is pulled for AIR; destination defaults to source
        -
        ->>> databricks air images push -p docker-test -s example/image:v1 --catalog main --schema training
        -Warning: This feature is in Preview. APIs may change, and the workspace must enable the Preview features.
        -Pushing example/image:v1 as main.training.image:v1 using profile docker-test
        -Configured Docker credential helper for [WORKSPACE_ID].container.us-west-2.localhost
        -Updated Docker config: [TEST_TMP_DIR]/home/docker/config.json
        -Installed Docker credential helper: [TEST_TMP_DIR]/home/bin/docker-credential-databricks
        -Pulling source image example/image:v1 for linux/amd64
        -Docker pull progress
        -Source image example/image:v1 is 7.1 GB uncompressed.
        -Tagging image as [WORKSPACE_ID].container.us-west-2.localhost/main.training.image:v1
        -Pushing image to [WORKSPACE_ID].container.us-west-2.localhost/main.training.image:v1
        -Docker push progress
        -Pushed image.
        -Compressed image size: 3.1 GB (layers: 2).
        -For Databricks Artifact Registry image limits, see https://docs.databricks.com/aws/en/artifact-registry/#limitations
        -Now you can set `environment.unity_catalog_image = main.training.image:v1` in your YAML config and create a workload with `databricks air run -f config.yaml`.
        -
        -=== forced pull and JSON output
        -
        ->>> databricks air images push -p docker-test -s example/image:v1 --catalog main --schema training --pull -o json
        -Warning: This feature is in Preview. APIs may change, and the workspace must enable the Preview features.
        -Pushing example/image:v1 as main.training.image:v1 using profile docker-test
        -Configured Docker credential helper for [WORKSPACE_ID].container.us-west-2.localhost
        -Updated Docker config: [TEST_TMP_DIR]/home/docker/config.json
        -Installed Docker credential helper: [TEST_TMP_DIR]/home/bin/docker-credential-databricks
        -Pulling source image example/image:v1 for linux/amd64
        -Docker pull progress
        -Source image example/image:v1 is 7.1 GB uncompressed.
        -Tagging image as [WORKSPACE_ID].container.us-west-2.localhost/main.training.image:v1
        -Pushing image to [WORKSPACE_ID].container.us-west-2.localhost/main.training.image:v1
        -Docker push progress
        -Pushed image.
        -Compressed image size: 3.1 GB (layers: 2).
        -For Databricks Artifact Registry image limits, see https://docs.databricks.com/aws/en/artifact-registry/#limitations
        -
        ->>> jq -e {v, data} [TEST_TMP_DIR]/home/result.json
        -{
        -  "v": 1,
        -  "data": {
        -    "unity_catalog_image": "main.training.image:v1",
        -    "registry_image": "[WORKSPACE_ID].container.us-west-2.localhost/main.training.image:v1"
        -  }
        -}
        -
        -=== image with WORKDIR warns but is pushed
        -
        ->>> databricks air images push -p docker-test -s example/image:v1 --catalog main --schema training
        -Warning: This feature is in Preview. APIs may change, and the workspace must enable the Preview features.
        -Pushing example/image:v1 as main.training.image:v1 using profile docker-test
        -Configured Docker credential helper for [WORKSPACE_ID].container.us-west-2.localhost
        -Updated Docker config: [TEST_TMP_DIR]/home/docker/config.json
        -Installed Docker credential helper: [TEST_TMP_DIR]/home/bin/docker-credential-databricks
        -Using local source image example/image:v1
        -Source image example/image:v1 is 7.1 GB uncompressed.
        -Warning: source image example/image:v1 sets WORKDIR /app. Use absolute paths in your command and scripts. See how AI Runtime command paths work:
        -  AWS: https://docs.databricks.com/aws/en/machine-learning/ai-runtime/connecting/cli/yaml-config#command
        -  Azure: https://learn.microsoft.com/azure/databricks/machine-learning/ai-runtime/connecting/cli/yaml-config#command
        -Tagging image as [WORKSPACE_ID].container.us-west-2.localhost/main.training.image:v1
        -Pushing image to [WORKSPACE_ID].container.us-west-2.localhost/main.training.image:v1
        -Docker push progress
        -Pushed image.
        -Compressed image size: 3.1 GB (layers: 2).
        -For Databricks Artifact Registry image limits, see https://docs.databricks.com/aws/en/artifact-registry/#limitations
        -Now you can set `environment.unity_catalog_image = main.training.image:v1` in your YAML config and create a workload with `databricks air run -f config.yaml`.
        -
        -=== image with WORKDIR / does not warn
        -
        ->>> databricks air images push -p docker-test -s example/image:v1 --catalog main --schema training
        -Warning: This feature is in Preview. APIs may change, and the workspace must enable the Preview features.
        -Pushing example/image:v1 as main.training.image:v1 using profile docker-test
        -Configured Docker credential helper for [WORKSPACE_ID].container.us-west-2.localhost
        -Updated Docker config: [TEST_TMP_DIR]/home/docker/config.json
        -Installed Docker credential helper: [TEST_TMP_DIR]/home/bin/docker-credential-databricks
        -Using local source image example/image:v1
        -Source image example/image:v1 is 7.1 GB uncompressed.
        -Tagging image as [WORKSPACE_ID].container.us-west-2.localhost/main.training.image:v1
        -Pushing image to [WORKSPACE_ID].container.us-west-2.localhost/main.training.image:v1
        -Docker push progress
        -Pushed image.
        -Compressed image size: 3.1 GB (layers: 2).
        -For Databricks Artifact Registry image limits, see https://docs.databricks.com/aws/en/artifact-registry/#limitations
        -Now you can set `environment.unity_catalog_image = main.training.image:v1` in your YAML config and create a workload with `databricks air run -f config.yaml`.
        -
        -=== daemon failure must not pull
        -
        ->>> musterr databricks air images push -p docker-test -s example/image:v1 --catalog main --schema training
        -Warning: This feature is in Preview. APIs may change, and the workspace must enable the Preview features.
        -Pushing example/image:v1 as main.training.image:v1 using profile docker-test
        -Configured Docker credential helper for [WORKSPACE_ID].container.us-west-2.localhost
        -Updated Docker config: [TEST_TMP_DIR]/home/docker/config.json
        -Installed Docker credential helper: [TEST_TMP_DIR]/home/bin/docker-credential-databricks
        -Cannot connect to the Docker daemon
        -Error: check local source image example/image:v1 (ensure Docker is running and accessible): exit status 1
        -
        -=== inspect failure must not pull
        -
        ->>> musterr databricks air images push -p docker-test -s example/image:v1 --catalog main --schema training
        -Warning: This feature is in Preview. APIs may change, and the workspace must enable the Preview features.
        -Pushing example/image:v1 as main.training.image:v1 using profile docker-test
        -Configured Docker credential helper for [WORKSPACE_ID].container.us-west-2.localhost
        -Updated Docker config: [TEST_TMP_DIR]/home/docker/config.json
        -Installed Docker credential helper: [TEST_TMP_DIR]/home/bin/docker-credential-databricks
        -Using local source image example/image:v1
        -Docker inspect failed
        -Error: inspect source image example/image:v1: exit status 1
        -
        -=== unreadable image sizes warn but the image is pushed
        -
        ->>> databricks air images push -p docker-test -s example/image:v1 --catalog main --schema training
        -Warning: This feature is in Preview. APIs may change, and the workspace must enable the Preview features.
        -Pushing example/image:v1 as main.training.image:v1 using profile docker-test
        -Configured Docker credential helper for [WORKSPACE_ID].container.us-west-2.localhost
        -Updated Docker config: [TEST_TMP_DIR]/home/docker/config.json
        -Installed Docker credential helper: [TEST_TMP_DIR]/home/bin/docker-credential-databricks
        -Using local source image example/image:v1
        -Warning: could not read the uncompressed size of source image example/image:v1 (got "").
        -Tagging image as [WORKSPACE_ID].container.us-west-2.localhost/main.training.image:v1
        -Pushing image to [WORKSPACE_ID].container.us-west-2.localhost/main.training.image:v1
        -Docker push progress
        -Pushed image.
        -Warning: could not read the compressed size of [WORKSPACE_ID].container.us-west-2.localhost/main.training.image:v1: no such manifest: [WORKSPACE_ID].container.us-west-2.localhost/main.training.image:v1
        -For Databricks Artifact Registry image limits, see https://docs.databricks.com/aws/en/artifact-registry/#limitations
        -Now you can set `environment.unity_catalog_image = main.training.image:v1` in your YAML config and create a workload with `databricks air run -f config.yaml`.
        -
        -=== incompatible local image must not be pushed
        -
        ->>> musterr databricks air images push -p docker-test -s example/image:v1 --catalog main --schema training
        -Warning: This feature is in Preview. APIs may change, and the workspace must enable the Preview features.
        -Pushing example/image:v1 as main.training.image:v1 using profile docker-test
        -Configured Docker credential helper for [WORKSPACE_ID].container.us-west-2.localhost
        -Updated Docker config: [TEST_TMP_DIR]/home/docker/config.json
        -Installed Docker credential helper: [TEST_TMP_DIR]/home/bin/docker-credential-databricks
        -Using local source image example/image:v1
        -Error: source image example/image:v1 has platform "linux/arm64"; AIR requires linux/amd64: use --pull to fetch a compatible image, or rebuild the source for linux/amd64
        -
        -=== incompatible pulled image must not be pushed
        -
        ->>> musterr databricks air images push -p docker-test -s example/image:v1 --catalog main --schema training --pull
        -Warning: This feature is in Preview. APIs may change, and the workspace must enable the Preview features.
        -Pushing example/image:v1 as main.training.image:v1 using profile docker-test
        -Configured Docker credential helper for [WORKSPACE_ID].container.us-west-2.localhost
        -Updated Docker config: [TEST_TMP_DIR]/home/docker/config.json
        -Installed Docker credential helper: [TEST_TMP_DIR]/home/bin/docker-credential-databricks
        -Pulling source image example/image:v1 for linux/amd64
        -Docker pull progress
        -Error: source image example/image:v1 has platform "linux/arm64"; AIR requires linux/amd64: use --pull to fetch a compatible image, or rebuild the source for linux/amd64
        -
        -=== rejected push still links the registry limits
        -
        ->>> musterr databricks air images push -p docker-test -s example/image:v1 --catalog main --schema training
        -Warning: This feature is in Preview. APIs may change, and the workspace must enable the Preview features.
        -Pushing example/image:v1 as main.training.image:v1 using profile docker-test
        -Configured Docker credential helper for [WORKSPACE_ID].container.us-west-2.localhost
        -Updated Docker config: [TEST_TMP_DIR]/home/docker/config.json
        -Installed Docker credential helper: [TEST_TMP_DIR]/home/bin/docker-credential-databricks
        -Using local source image example/image:v1
        -Source image example/image:v1 is 7.1 GB uncompressed.
        -Tagging image as [WORKSPACE_ID].container.us-west-2.localhost/main.training.image:v1
        -Pushing image to [WORKSPACE_ID].container.us-west-2.localhost/main.training.image:v1
... (146 more lines truncated, raise DATABRICKS_CLI_TEST_MAX_LOG to see more)

@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

✅ Integration test report

Commit: e925cd4

Run: 45857363408

Env 💚​RECOVERED ✅​pass 🙈​skip Time
💚​ aws linux-2core-8gb 1 355 45 11:36
💚​ aws-windows-latest-4core-16gb 1 291 65 5:12
💚​ azure linux-2core-8gb 1 354 45 10:48
💚​ azure-windows-latest-4core-16gb 1 290 65 4:55
💚​ gcp linux-2core-8gb 1 355 45 11:02
💚​ gcp-windows-latest-4core-16gb 1 291 65 5:10
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
Top 10 slowest tests (at least 2 minutes):
duration env testname
6:34 aws linux-2core-8gb TestAccept/bundle/config-remote-sync/multiple_resources/DMS=true
6:33 aws linux-2core-8gb TestAccept/bundle/config-remote-sync/multiple_resources/DMS=
6:27 gcp linux-2core-8gb TestAccept/bundle/config-remote-sync/multiple_resources/DMS=
6:12 gcp linux-2core-8gb TestAccept/bundle/config-remote-sync/multiple_resources/DMS=true
4:45 azure linux-2core-8gb TestAccept/bundle/config-remote-sync/multiple_resources/DMS=true
4:45 azure linux-2core-8gb TestAccept/bundle/config-remote-sync/multiple_resources/DMS=
3:55 azure-windows-latest-4core-16gb TestAccept
3:46 aws-windows-latest-4core-16gb TestAccept
3:45 gcp-windows-latest-4core-16gb TestAccept
2:01 aws linux-2core-8gb TestAccept

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

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