Skip to content

Add DATABRICKS_LITESWAP_TARGET to route requests to a liteswap unit - #6946

Merged
Sankalp-Mittal merged 1 commit into
mainfrom
sankalp-mittal/liteswap-add
Oct 6, 2026
Merged

Sankalp-Mittal merged 1 commit into
mainfrom
sankalp-mittal/liteswap-add

Conversation

@Sankalp-Mittal

Copy link
Copy Markdown
Contributor

Changes

New dev/test-only env var DATABRICKS_LITESWAP_TARGET. When it is set, every request from workspace, account, and bundle clients carries x-databricks-traffic-id: testenv://liteswap/<target>, which routes it to that LiteSwap pre-prod unit.

Why

Developers testing a service on a LiteSwap unit need CLI traffic routed there. The header format matches the existing hidden SSH --liteswap flag.

Out of scope for now: databricks api (builds its own config) and the SSH flag, which could later move to this mechanism. No changelog entry, since this is dev/test only.

Tests

New acceptance test acceptance/cmd/liteswap-target records request headers for a workspace command, an account command, and bundle validate, and checks the header is absent when the env var is unset.

This pull request and its description were written by Isaac.

When DATABRICKS_LITESWAP_TARGET is set, every request from workspace,
account, and bundle clients carries
x-databricks-traffic-id: testenv://liteswap/<target>, using the SDK's
Config.Headers hook. Dev/test only.

Co-authored-by: Isaac <no-reply@databricks.com>
@Sankalp-Mittal
Sankalp-Mittal requested review from a team as code owners October 6, 2026 11:49
@github-actions github-actions Bot added the DABs DABs related issues label Oct 6, 2026
@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: eca2cb2

Run: 37459097836

Env 🔄​flaky ✅​pass 🙈​skip Time
✅​ aws linux 276 17 5:45
✅​ aws windows 278 15 7:02
🔄​ azure linux 2 273 17 6:34
✅​ azure windows 277 15 7:13
✅​ gcp linux 276 17 6:04
✅​ gcp windows 278 15 7:01
Test Name azure linux
🔄​ TestFsCpDir 🔄​f
🔄​ TestFsCpDir/uc-volumes_to_uc-volumes 🔄​f
Top 6 slowest tests (at least 2 minutes):
duration env testname
7:11 azure windows TestAccept
7:00 aws windows TestAccept
6:59 gcp windows TestAccept
4:01 azure linux TestAccept
4:00 gcp linux TestAccept
3:52 aws linux TestAccept

@Sankalp-Mittal
Sankalp-Mittal added this pull request to the merge queue Oct 6, 2026
Merged via the queue into main with commit 5b3d97b Oct 6, 2026
25 checks passed
@Sankalp-Mittal
Sankalp-Mittal deleted the sankalp-mittal/liteswap-add branch October 6, 2026 12:38
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.

3 participants