Skip to content

Improve AIR log retrieval reliability - #6414

Merged
ben-hansen-db merged 4 commits into
mainfrom
ben-hansen/air-log-retrieval-reliability
Aug 28, 2026
Merged

Improve AIR log retrieval reliability#6414
ben-hansen-db merged 4 commits into
mainfrom
ben-hansen/air-log-retrieval-reliability

Conversation

@ben-hansen-db

Copy link
Copy Markdown
Contributor

Changes

  • Cache MLflow artifact roots and support UC Volume-backed logs.
  • Unify retry-attempt selection across Bricklens and MLflow.
  • Hand active empty Bricklens streams over to MLflow when artifacts appear.

Why

Make AIR log streaming and downloads reliable across artifact backends, retries, and active runs.

Tests

  • go test ./experimental/air/cmd

This PR was written with Codex.

@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: c9dc2cf

Run: 33201529618

Env 💚​RECOVERED 🙈​SKIP ✅​pass 🙈​skip Time
💚​ aws linux 1 1 274 1207 4:18
💚​ aws windows 1 1 276 1205 4:20
💚​ azure linux 1 1 273 1207 4:03
💚​ azure windows 1 1 275 1205 3:46
💚​ gcp linux 1 1 274 1207 4:20
💚​ gcp windows 1 1 276 1205 3:48
Test Name aws linux aws windows azure linux azure windows gcp linux gcp windows
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
🙈​ TestAccept/ssh/connection 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
Top 3 slowest tests (at least 2 minutes):
duration env testname
4:15 aws windows TestAccept
3:41 azure windows TestAccept
3:26 gcp windows TestAccept

@ben-hansen-db
ben-hansen-db force-pushed the ben-hansen/air-snapshot-workspace-parity branch from 29c379d to 6ba3037 Compare August 27, 2026 23:37
@ben-hansen-db
ben-hansen-db force-pushed the ben-hansen/air-log-retrieval-reliability branch from cf199c8 to 12eb9b3 Compare August 27, 2026 23:37
@ben-hansen-db
ben-hansen-db changed the base branch from ben-hansen/air-snapshot-workspace-parity to main August 27, 2026 23:37
@ben-hansen-db
ben-hansen-db force-pushed the ben-hansen/air-log-retrieval-reliability branch from 12eb9b3 to ee3a5be Compare August 27, 2026 23:42
@ben-hansen-db
ben-hansen-db marked this pull request as ready for review August 27, 2026 23:50
Comment thread .nextchanges/cli/air-log-reliability.md Outdated
@@ -0,0 +1 @@
Improved AIR log fallback, retry-attempt selection, and Unity Catalog volume artifact handling.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see a world where we don't have the MLflow artifact fallback but I'm not sure when bricklens will be stable so we should include it

Comment thread experimental/air/cmd/logmlflow.go Outdated
Comment on lines +365 to +366
if volumeRoot, ok := volumeArtifactRoot(root); ok {
fc, err := filer.NewWorkspaceFilesClient(w, volumeRoot)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls verify that NewWorkspaceFilesClient is what should be used for UC Volumes. I will stamp to unblock but make sure to verify.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified: NewWorkspaceFilesClient was not the correct client for /Volumes/.... The CLI routes dbfs:/Volumes/... through filer.NewFilesClient in cmd/fs/helpers.go, and bundle volume uploads use the same client in bundle/libraries/filer_volume.go; FilesClient is the filer backed by the /api/2.0/fs Files API. I switched both AIR listing and download paths to NewFilesClient and updated the regression test to exercise the Files API. Focused UC Volume test, full experimental/air/cmd tests, and changed-file lint all pass. Fixed in a506832.

ben-hansen-db and others added 3 commits August 28, 2026 18:23
experimental/air is not surfaced in the public CHANGELOG; prior air PRs added
no .nextchanges fragments. See .agents/rules/changelog.md and PR history.

Co-authored-by: Isaac <no-reply@databricks.com>
@ben-hansen-db
ben-hansen-db added this pull request to the merge queue Aug 28, 2026
Merged via the queue into main with commit 2b98c80 Aug 28, 2026
23 checks passed
@ben-hansen-db
ben-hansen-db deleted the ben-hansen/air-log-retrieval-reliability branch August 28, 2026 20:50
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