Skip to content

bundle: add DATABRICKS_BUNDLE_HTTP_TIMEOUT_SECONDS; prop context to WorkspaceClient - #5040

Merged
denik merged 5 commits into
mainfrom
denik/fix-python-test
Apr 21, 2026
Merged

bundle: add DATABRICKS_BUNDLE_HTTP_TIMEOUT_SECONDS; prop context to WorkspaceClient#5040
denik merged 5 commits into
mainfrom
denik/fix-python-test

Conversation

@denik

Copy link
Copy Markdown
Contributor

Allows overriding the HTTP timeout for bundle operations. The acceptance test for upload timeout now uses a 5s timeout instead of 90s, reducing test runtime from ~2 minutes to ~6 seconds.

Co-authored-by: Isaac

@denikdenik mentioned this pull request Apr 20, 2026
Comment threadbundle/config/workspace.go Outdated
Comment threadbundle/config/workspace.go Outdated
denik added 2 commits April 20, 2026 17:47
Allows overriding the HTTP timeout for bundle operations. The acceptance
test for upload timeout now uses a 5s timeout instead of 90s, reducing
test runtime from ~2 minutes to ~6 seconds.
Co-authored-by: Isaac
Move DATABRICKS_BUNDLE_HTTP_TIMEOUT_SECONDS to bundle/env package alongside
other bundle env vars, and use libs/env.Lookup(ctx, ...) instead of os.Getenv
so tests can override it via context. Plumb context.Context through
Config, Client, WorkspaceClientE, WorkspaceClient, and ClearWorkspaceClient.
Co-authored-by: Isaac
@denikdenik changed the title bundle: add DATABRICKS_BUNDLE_HTTP_TIMEOUT_SECONDS env varbundle: add DATABRICKS_BUNDLE_HTTP_TIMEOUT_SECONDS; prop context to WorkspaceClientApr 20, 2026
@denik
denikforce-pushed the denik/fix-python-test branch from 6aa87d0 to e9704deCompareApril 20, 2026 15:51
@denik
denik requested a review from pieternApril 20, 2026 15:52
@denik
denik enabled auto-merge April 21, 2026 06:50
does not affect test time
--- PASS: TestAccept/bundle/upload/timeout (0.00s)
--- PASS: TestAccept/bundle/upload/timeout/DATABRICKS_BUNDLE_ENGINE=terraform (5.57s)
--- PASS: TestAccept/bundle/upload/timeout/DATABRICKS_BUNDLE_ENGINE=direct (5.57s)
@denik
denik added this pull request to the merge queueApr 21, 2026
Merged via the queue into main with commit cb4c90dApr 21, 2026
24 checks passed
@denik
denik deleted the denik/fix-python-test branch April 21, 2026 07:43
varundeepsaini pushed a commit to varundeepsaini/cli that referenced this pull request Apr 21, 2026
## Changes
- Remove Slow tests support from acceptance test runner, Makefile.
- The only test that was using it is upload/timeout - this will be
updated to be faster [in separate
PR.](databricks#5040)
## Why
Split between short and fast tests adds complexity to Makefile and makes
it possible to miss failures. Better strategy is not to have slow tests.
denik added a commit that referenced this pull request May 20, 2026
## Changes
- Remove Slow tests support from acceptance test runner, Makefile.
- The only test that was using it is upload/timeout - this will be
updated to be faster [in separate
PR.](#5040)
## Why
Split between short and fast tests adds complexity to Makefile and makes
it possible to miss failures. Better strategy is not to have slow tests.
denik added a commit that referenced this pull request May 20, 2026
…orkspaceClient (#5040)
Allows overriding the HTTP timeout for bundle operations. The acceptance
test for upload timeout now uses a 5s timeout instead of 90s, reducing
test runtime from ~2 minutes to ~6 seconds.
Co-authored-by: Isaac
Sign up for freeto 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.

2 participants

@denik@pietern