Repository navigation
air: show the Databricks AI environment in air get - #7637
Merged
Merged
Conversation
`air run` submits a databricks_ai_v* version as spec.base_environment (workspace-base-environments/databricks_ai_v6), but `air get` and the `air list` info pane read only spec.environment_version, so Environment showed N/A. Strip the shared prefix and show the configured version. Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
Contributor
|
Commit: Regression test reportSelected 2 changed tests (limit=20, 0 not selected) 2 tests: regression=2 unreleased=0 coverage=0 failing=0
TestAccept/air/control-chars: branch ✅ | main (a96363b) ❌ | latest (v1.26.0) ❌main (a96363b): latest (v1.26.0): TestAccept/air/get-databricks-ai: branch ✅ | main (a96363b) ❌ | latest (v1.26.0) ❌main (a96363b): latest (v1.26.0): same output as main (a96363b) |
Collaborator
✅ Integration test reportCommit: 2dccfb2
Top 3 slowest tests (at least 2 minutes):
|
- Strip control characters from the Environment cell, as for the other server-supplied cells, and cover it in the control-character tests. - Reword the base environment comments: any workspace base environment shows its ID, not only databricks_ai_v*; pin that with a dbe_ test row. Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
caroline-db
approved these changes
Nov 16, 2026
Co-authored-by: Isaac <no-reply@databricks.com>
Collaborator
❌ Integration test reportCommit: f3d4425
30 interesting tests: 11 flaky, 9 FAIL, 9 RECOVERED, 1 KNOWN
Top 50 slowest tests (at least 2 minutes):
|
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
air gettext output now shows the environment, for exampledatabricks_ai_v6, for runs submitted withenvironment.version: databricks_ai_v*, instead ofEnvironment N/A. Theair listinfo pane renders through the same code and is fixed too.air runsubmits those versions asspec.base_environment = workspace-base-environments/<version>with noenvironment_version. The Environment cell now showsenvironment_versionwhen it is set, else the workspace base environment ID with that prefix stripped. The prefix is the constantworkspaceBaseEnvironmentPrefix, shared withbuildRunEnvironmentandconvert-to-dabs. Any other workspace base environment, such as a customdbe_<uuid>, shows its ID the same way.air get -o jsonis unchanged: since air: Include run details in air get JSON #7624 it reportsenvironment_versionand the rawbase_environment.stripControl, like the other server-supplied cells, so escape sequences in a base environment name cannot reach the terminal.Why
Every run on the Databricks AI environment, which most AI Runtime cookbook recipes use, showed
Environment N/A. A realjobs/runs/getresponse for such a run, fromair runwithenvironment.version: databricks_ai_v6, returns"environments": [{"environment_key": "default", "spec": {"base_environment": "workspace-base-environments/databricks_ai_v6"}}].Tests
TestAiRuntimeEnvironment: for a numericenvironment_version, adatabricks_ai_v6base environment and a customdbe_<uuid>base environment, checks the raw values read from runs/get and the Environment cell text.TestEnrichRunDetails: the base-environment case now expects the Environment celldatabricks_ai_v5instead ofN/A; its rawbase_environmentvalue is unchanged.acceptance/air/get-databricks-ai:air gettext output for adatabricks_ai_v6run.TestRenderFieldsStripsControlCharactersand theacceptance/air/control-charstest now put an escape sequence into the environment and assert clean output.go test ./cmd/air/...andgo test ./acceptance -run 'TestAccept/air/'pass;./task lint-q,./task fmt-qand./task check-changelogare clean. Unit tests ran withDATABRICKS_WORKSPACE_IDunset:TestLogsCommandRepeatsRunLinkAfterStreamingalso fails onmainwhen that variable is set.This pull request and its description were written by Isaac.