Skip to content

air: align run --watch status with air get - #7892

Open
caroline-db wants to merge 2 commits into
mainfrom
air/watch-task-status
Open

caroline-db wants to merge 2 commits into
mainfrom
air/watch-task-status

Conversation

@caroline-db

Copy link
Copy Markdown
Contributor

Changes

  • Make air run --watch -o json use the same AIR-task status projection as air get.
  • Report PENDING until the AIR task starts, while preserving existing air logs, retry, terminal-state, and backend-fallback behavior.

Why

The Jobs parent run can report RUNNING while its AIR task is still pending or queued. AIR users should see RUNNING only after the accelerator workload starts.

Tests

  • go test ./cmd/air -count=1
  • go test ./acceptance -run 'TestAccept/air/' -count=1
  • ./task fmt
  • ./task checks
  • ./task lint
  • Built the CLI and verified a live run where air run --watch -o json and repeated air get -o json calls agreed through PENDING → RUNNING → SUCCESS.

This PR was written by Codex.

@caroline-db
caroline-db requested review from a team as code owners November 23, 2026 20:25
@github-actions github-actions Bot added the AIR Databricks AI Runtime CLI label Nov 23, 2026
@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

✅ Integration test report

Commit: e48317c

Run: 45259403274

Env 💚​RECOVERED ✅​pass 🙈​skip Time
💚​ aws linux-2core-8gb 1 272 19 17:39
💚​ aws-windows-latest-4core-16gb 1 274 17 10:29
💚​ azure linux-2core-8gb 1 271 19 19:14
💚​ azure-windows-latest-4core-16gb 1 273 17 10:16
💚​ gcp linux-2core-8gb 1 272 19 21:04
💚​ gcp-windows-latest-4core-16gb 1 274 17 14:28
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 45 slowest tests (at least 2 minutes):
duration env testname
6:52 gcp linux-2core-8gb TestFilerReadWrite/workspace_files_extensions
5:21 gcp-windows-latest-4core-16gb TestImportDir
5:15 azure linux-2core-8gb TestFilerWorkspaceFilesExtensionsReadDir
4:49 aws-windows-latest-4core-16gb TestFilerWorkspaceFilesExtensionsReadDir
4:36 gcp linux-2core-8gb TestFilerRecursiveDelete/workspace_files_extensions
4:16 azure linux-2core-8gb TestFilerRecursiveDelete/workspace_files
4:10 aws linux-2core-8gb TestAccept
4:07 gcp-windows-latest-4core-16gb TestAccept
4:02 azure linux-2core-8gb TestAccept
3:47 azure linux-2core-8gb TestSyncIncrementalFileSync
3:42 aws-windows-latest-4core-16gb TestAccept
3:41 azure-windows-latest-4core-16gb TestAccept
3:34 azure-windows-latest-4core-16gb TestFilerWorkspaceFilesExtensionsReadDir
3:28 azure-windows-latest-4core-16gb TestFilerReadDir/workspace_files
3:25 aws linux-2core-8gb TestFilerWorkspaceFilesExtensionsReadDir
3:21 azure linux-2core-8gb TestFilerReadWrite/workspace_files
3:16 gcp linux-2core-8gb TestAccept
3:05 aws linux-2core-8gb TestFilerWorkspaceFilesExtensionsStat
3:04 azure-windows-latest-4core-16gb TestSyncIncrementalFileSync
2:56 aws-windows-latest-4core-16gb TestFilerWorkspaceFilesExtensionsRead
2:53 aws linux-2core-8gb TestImportDirWithOverwriteFlag
2:53 aws-windows-latest-4core-16gb TestFilerWorkspaceFilesExtensionsStat
2:52 gcp-windows-latest-4core-16gb TestImportDirWithOverwriteFlag
2:46 azure-windows-latest-4core-16gb TestFilerRecursiveDelete/workspace_files
2:40 aws linux-2core-8gb TestSyncNestedFolderDoesntFailOnNonEmptyDirectory
2:40 azure linux-2core-8gb TestFilerReadWrite/workspace_files_extensions
2:40 azure-windows-latest-4core-16gb TestFilerReadWrite/workspace_files_extensions
2:40 azure-windows-latest-4core-16gb TestExportDir
2:39 aws linux-2core-8gb TestFilerWorkspaceFilesExtensionsDelete
2:35 gcp-windows-latest-4core-16gb TestFilerRecursiveDelete/workspace_files
2:35 azure-windows-latest-4core-16gb TestLock
2:33 azure-windows-latest-4core-16gb TestFilerReadWrite/workspace_files
2:32 aws-windows-latest-4core-16gb TestImportDir
2:28 gcp linux-2core-8gb TestFilerWorkspaceFilesExtensionsDelete
2:26 aws linux-2core-8gb TestExportDir
2:25 azure linux-2core-8gb TestFilerWorkspaceFilesExtensionsDelete
2:23 aws linux-2core-8gb TestFilerRecursiveDelete/workspace_files
2:21 gcp-windows-latest-4core-16gb TestExportDir
2:20 gcp linux-2core-8gb TestFilerRecursiveDelete/workspace_files
2:18 aws linux-2core-8gb TestFilerReadWrite/workspace_files_extensions
2:14 azure-windows-latest-4core-16gb TestSyncFullFileSync
2:09 aws-windows-latest-4core-16gb TestSyncFullFileSync
2:05 gcp-windows-latest-4core-16gb TestFilerWorkspaceFilesExtensionsRead
2:03 gcp-windows-latest-4core-16gb TestLockUnlockWithAllowsLockFileNotExist
2:02 gcp-windows-latest-4core-16gb TestFilerWorkspaceNotebook/sqlJupyterNotebook.ipynb

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

AIR Databricks AI Runtime CLI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants