From 8242c62820c81cba673b9ce590d71f927bfdffdb Mon Sep 17 00:00:00 2001 From: dimk0 <4886215+dimk0@users.noreply.github.com> Date: Fri, 13 Nov 2026 07:57:07 +0000 Subject: [PATCH 1/2] air: Show the experiment, accelerators and config in the `air list` info pane The info pane (`i`) built its data without the step `air get` uses to read an ai_runtime_task run's experiment, accelerators and config path. For those runs it showed "N/A" for Experiment and Accelerators and no Configuration box, although the list row and `air get` had them. Co-authored-by: Isaac --- cmd/air/list_detail.go | 5 +++++ cmd/air/list_detail_test.go | 42 +++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) diff --git a/cmd/air/list_detail.go b/cmd/air/list_detail.go index 96e50728dc0..f1d033d2e2d 100644 --- a/cmd/air/list_detail.go +++ b/cmd/air/list_detail.go @@ -26,6 +26,11 @@ func runDetailText(ctx context.Context, w *databricks.WorkspaceClient, runID int workspaceID, _ := w.CurrentWorkspaceID(ctx) data := buildGetData(run) + // As in `air get`: an ai_runtime_task run keeps its experiment, accelerators + // and config path on the task. + if genAIComputeTask(run) == nil { + enrichFromAiRuntimeTask(run, &data) + } data.DashboardURL = dashboardURL(w.Config.Host, runID, workspaceID) ids := mlflowIDs(ctx, w, run) if ids != nil { diff --git a/cmd/air/list_detail_test.go b/cmd/air/list_detail_test.go index 8cbe2c8d3b6..bb62e035c91 100644 --- a/cmd/air/list_detail_test.go +++ b/cmd/air/list_detail_test.go @@ -95,3 +95,45 @@ func TestListRowAndPanesLinkTheSameOlderRetry(t *testing.T) { assert.Contains(t, info, "MLflow URL: "+srv.URL+"/ml/experiments/E1/runs/R1\n") assert.Contains(t, logs, "\nMLflow URL (retry 1): "+wantURL+"\n") } + +func TestRunDetailTextShowsAiRuntimeTaskFields(t *testing.T) { + // An ai_runtime_task run carries its experiment, accelerators and config + // path on the task, not on a gen_ai_compute_task. + const experiment = "quickstart/qwen-finetune-lora-r16-alpha32-lr2e-4-warmup500-seed42" + run := jobs.Run{RunId: 7, Tasks: []jobs.RunTask{{ + RunId: 70, + AiRuntimeTask: &jobs.AiRuntimeTask{ + Experiment: "/Users/me@example.com/" + experiment, + Deployments: []jobs.DeploymentSpec{{ + CommandPath: "/Workspace/run/command.sh", + Compute: jobs.ComputeSpec{AcceleratorType: jobs.ComputeSpecAcceleratorTypeGpu1xA10, AcceleratorCount: 1}, + }}, + }, + }}} + srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + switch r.URL.Path { + case "/api/2.2/jobs/runs/get": + _ = json.NewEncoder(w).Encode(run) + case "/api/2.0/workspace/export": + if r.URL.Query().Get("path") == "/Workspace/run/training_config.yaml" { + _, _ = w.Write([]byte("command: python train.py\n")) + return + } + w.WriteHeader(http.StatusNotFound) + default: + _, _ = w.Write([]byte(`{}`)) + } + })) + t.Cleanup(srv.Close) + ctx := cmdio.MockDiscard(t.Context()) + + info, err := runDetailText(ctx, newTestWorkspaceClient(t, srv.URL), 7) + require.NoError(t, err) + + // The pane shows what the list row and `air get` show, with the experiment + // name whole. + assert.Equal(t, experiment, buildListRow(&run, srv.URL, 0).Experiment) + assert.Contains(t, info, "Experiment "+experiment) + assert.Contains(t, info, "Accelerators 1x A10") + assert.Contains(t, info, "command: python train.py") +} From 180a07d6c0663d8749ee331f1374ec4c13133022 Mon Sep 17 00:00:00 2001 From: dimk0 <4886215+dimk0@users.noreply.github.com> Date: Fri, 13 Nov 2026 07:57:37 +0000 Subject: [PATCH 2/2] Add changelog fragment Co-authored-by: Isaac --- .nextchanges/air/7587.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 .nextchanges/air/7587.md diff --git a/.nextchanges/air/7587.md b/.nextchanges/air/7587.md new file mode 100644 index 00000000000..b2f040b4a47 --- /dev/null +++ b/.nextchanges/air/7587.md @@ -0,0 +1 @@ +* Show the experiment, accelerators and configuration in the `air list` info pane for runs where it showed `N/A`. ([#7587](https://github.com/databricks/cli/pull/7587))