Skip to content

AIR CLI: attach docker_image_url to the run (follow-up to #6165) - #6237

Open
riddhibhagwat-db wants to merge 1 commit into
mainfrom
air-integration-m6-3
Open

AIR CLI: attach docker_image_url to the run (follow-up to #6165)#6237
riddhibhagwat-db wants to merge 1 commit into
mainfrom
air-integration-m6-3

Conversation

@riddhibhagwat-db

@riddhibhagwat-db riddhibhagwat-db commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Changes

Sets ai_runtime_task.docker_image_url from environment.docker_image.url in buildSubmitPayload, so a registered custom image is actually attached to the run — the last step of the docker-image wiring. Re-adds the two buildSubmitPayload tests (field set / field omitted).

Why

The parent work (#6165, now merged to main) verifies the image (config parse + prepareDockerImage preflight) but intentionally does not attach it to the submit payload, because the docker_image_url field on jobs.AiRuntimeTask was added to databricks-sdk-go after v0.170.0 and main is pinned to v0.166.0. Setting the field there would break the build, so it was split into this follow-up.

This one-line change is that deferred step. It has a hard dependency the parent did not:

Important

Blocked on an SDK bump. Do not merge until main's databricks-sdk-go is bumped to a release that includes AiRuntimeTask.docker_image_url (the field is on SDK main via databricks/databricks-sdk-go#1800, pending a release tag). That bump is its own PR (it also regenerates command stubs). Until it lands, this branch does not compile against the pinned SDK and CI will be red — expected.

Verified green (go test, golangci-lint, gofmt) against the SDK commit that has the field. Once the SDK bump merges, rebase this branch and it goes green with no further changes.

Tests

TestBuildSubmitPayloadDockerImage (field set from config) and TestBuildSubmitPayloadNoDockerImage (empty when no image) — both pass against the SDK that has the field; they cannot compile until the bump.

Base

Rebased onto main (the parent #6165 has merged).

This pull request and its description were written by Isaac.

@riddhibhagwat-db
riddhibhagwat-db marked this pull request as ready for review August 11, 2026 18:55
@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 9ae0b4a

Run: 31524634213

Env ✅​pass 🙈​skip Time
✅​ aws linux 82 11 4:42
✅​ aws windows 82 11 3:00
✅​ azure linux 81 11 5:01
✅​ azure windows 81 11 4:27
✅​ gcp linux 79 12 5:02
✅​ gcp windows 79 12 6:26
Top 5 slowest tests (at least 2 minutes):
duration env testname
3:20 gcp windows TestFilerWorkspaceFilesExtensionsReadDir
3:12 azure linux TestFilerWorkspaceFilesExtensionsReadDir
2:18 gcp linux TestFilerWorkspaceFilesExtensionsStat
2:05 aws linux TestFilerWorkspaceFilesExtensionsReadDir
2:03 azure linux TestFilerWorkspaceFilesExtensionsDelete

Base automatically changed from air-integration-m6-2 to main August 11, 2026 21:04
@riddhibhagwat-db
riddhibhagwat-db changed the base branch from main to air-cli August 12, 2026 00:47
Follow-up to the docker-image wiring: set ai_runtime_task.docker_image_url from
environment.docker_image.url so a registered custom image is actually used by
the run (the parent PR verifies the image but does not yet attach it).

REQUIRES an SDK bump: docker_image_url was added to jobs.AiRuntimeTask in
databricks-sdk-go after v0.170.0, and the CLI is pinned to v0.166.0. This one
line does not compile until the CLI bumps the SDK (a separate PR that also
regenerates the command stubs). Merge only after that bump lands; the code was
verified green against the SDK commit that has the field.

Re-adds the two buildSubmitPayload tests covering the field set and omitted.

Co-authored-by: Isaac
@riddhibhagwat-db
riddhibhagwat-db changed the base branch from air-cli to main August 12, 2026 00:49
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