Skip to content

Retry bundle file uploads on transient server errors - #7014

Draft
denik wants to merge 2 commits into
mainfrom
denik/file-upload-retries
Draft

denik wants to merge 2 commits into
mainfrom
denik/file-upload-retries

Conversation

@denik

@denik denik commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Changes

Overwriting writes to the workspace (synced files, libraries, state, metadata) are now retried up to twice on 5xx/408 errors the SDK doesn't already retry, same as bundle/direct. The retry logic moved to libs/retry, plus a filer.Filer wrapper that only retries OverwriteIfExists writes.

Why

A single 504 on a file upload failed the whole deploy, while the direct engine tolerates the same error on resource calls.

Tests

Unit tests in libs/retry, acceptance test bundle/deploy/files/upload-504.

This pull request and its description were written by Isaac.

denik and others added 2 commits October 12, 2026 12:59
Add libs/retry with the retry logic previously private to bundle/direct and a
filer wrapper that retries overwriting writes. Use it for synced files,
libraries, state and metadata uploads.

Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
@github-actions github-actions Bot added the DABs DABs related issues label Oct 12, 2026
@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: dfbb482

Run: 38239871016

Env 🔄​flaky ✅​pass 🙈​skip Time
✅​ aws linux-2core-8gb 276 17 5:54
✅​ aws-windows-latest-4core-16gb 278 15 3:49
🔄​ azure linux-2core-8gb 2 273 17 6:11
✅​ azure-windows-latest-4core-16gb 277 15 3:36
✅​ gcp linux-2core-8gb 276 17 6:33
✅​ gcp-windows-latest-4core-16gb 278 15 3:49
Test Name azure linux-2core-8gb
🔄​ TestFsCpFileToDirWithOverwriteFlag 🔄​f
🔄​ TestFsCpFileToDirWithOverwriteFlag/uc-volumes_to_local 🔄​f
Top 6 slowest tests (at least 2 minutes):
duration env testname
3:53 aws linux-2core-8gb TestAccept
3:53 azure linux-2core-8gb TestAccept
3:48 gcp linux-2core-8gb TestAccept
3:47 gcp-windows-latest-4core-16gb TestAccept
3:47 aws-windows-latest-4core-16gb TestAccept
3:34 azure-windows-latest-4core-16gb TestAccept

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

DABs DABs related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants