Skip to content

acc: run ssh/connect-serverless-cpu locally#5941

Merged
anton-107 merged 3 commits into
mainfrom
acc-ssh-connect-serverless-cpu-local
Jul 17, 2026
Merged

acc: run ssh/connect-serverless-cpu locally#5941
anton-107 merged 3 commits into
mainfrom
acc-ssh-connect-serverless-cpu-local

Conversation

@radakam

@radakam radakam commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Flip to Local = true / Cloud = false. The bare ssh connect (serverless CPU) now runs against the in-process testserver, whose driver-proxy /ssh websocket is backed by a real sshd — so the test asserts both the submitted bootstrap job and a full handshake + remote exec over the tunnel.
  • Linux-only ([GOOS]), skipped when sshd is absent, matching the sibling SSH tests.
  • Add a Repls for databricks-cpu-<hash>: with no --name, the connection name is derived from a hash of the workspace host (a random localhost port locally), so it's normalized to keep the submitted job payload deterministic.
  • Keep the CLOUD_ENV branch so the real serverless-CPU path is preserved for when cloud ssh connect is re-enabled.

Why

Cloud = false reflects that cloud ssh connect is currently disabled (#4838); the real coverage now comes from the local run. Consistent with connect-serverless-gpu and connection.

radakam added 2 commits July 16, 2026 09:40
Mirror the connect-serverless-gpu local conversion for the bare
`ssh connect` (serverless CPU) invocation: run against the in-process
testserver, which backs the driver-proxy /ssh websocket with a real sshd,
so the run asserts both the submitted bootstrap job and a full handshake +
remote exec over the ws:// tunnel. Linux-only and skipped when sshd is
absent, matching the sibling ssh tests.

Unlike the GPU test, the CPU invocation passes no --name, so the CLI
derives the connection name from a hash of the workspace host. That host is
a random localhost port locally, so a Repls entry normalizes
databricks-cpu-<hash> to keep the submitted job payload deterministic.

The cloud branch (Connection successful over real serverless CPU) is
preserved for when cloud is re-enabled.
@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 7ffc996

Run: 29576425132

Env 💚​RECOVERED 🙈​SKIP ✅​pass 🙈​skip Time
💚​ aws linux 4 4 227 1120 4:52
💚​ aws windows 4 4 229 1118 6:45
💚​ aws-ucws linux 4 4 314 1037 6:26
💚​ aws-ucws windows 4 4 316 1035 7:33
💚​ azure linux 4 4 227 1119 4:54
💚​ azure windows 4 4 229 1117 6:46
💚​ azure-ucws linux 4 4 316 1034 7:56
💚​ azure-ucws windows 4 4 318 1032 7:43
💚​ gcp linux 4 4 226 1121 4:52
💚​ gcp windows 4 4 228 1119 6:54
8 interesting tests: 4 RECOVERED, 4 SKIP
Test Name aws linux aws windows aws-ucws linux aws-ucws windows azure linux azure windows azure-ucws linux azure-ucws windows gcp linux gcp windows
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
🙈​ TestAccept/bundle/invariant/no_drift 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_endpoints/drift/recreated_same_name 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_indexes/recreate/embedding_dimension 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/ssh/connection 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
💚​ TestFetchRepositoryInfoAPI_FromRepo 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
💚​ TestFetchRepositoryInfoAPI_FromRepo/root 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
💚​ TestFetchRepositoryInfoAPI_FromRepo/subdir 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
Top 10 slowest tests (at least 2 minutes):
duration env testname
6:30 azure-ucws windows TestAccept
6:30 gcp windows TestAccept
6:20 aws windows TestAccept
6:17 azure windows TestAccept
6:12 aws-ucws windows TestAccept
3:11 gcp linux TestAccept
2:59 azure linux TestAccept
2:55 aws linux TestAccept
2:52 azure-ucws linux TestAccept
2:47 aws-ucws linux TestAccept

@radakam
radakam marked this pull request as ready for review July 16, 2026 10:34
@radakam
radakam requested a review from anton-107 July 16, 2026 10:34
Comment thread acceptance/ssh/connect-serverless-cpu/script Outdated
Comment thread acceptance/ssh/connect-serverless-cpu/script
echo "SKIP_TEST sshd (openssh-server) not installed"
exit 0
fi
errcode $CLI ssh connect --releases-dir=$CLI_RELEASES_DIR --user-known-hosts-file=known_hosts -- "echo 'Connection successful'" >out.stdout.txt 2>LOG.stderr

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.

would be good to have the core of this test CLI ssh connect traced and/or titled. optional args could be set based on env

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.

Added a title "CLI ssh connect ..." so the core command shows up in the golden output, but left the actual invocation on errcode + redirect rather than trace because its stdout/stderr are non-deterministic.

Merge the two CLOUD_ENV conditionals so the local setup lives in one
branch, replace the ': >file' idiom with touch, and title the core
'ssh connect' command so it surfaces in the golden output.
@anton-107
anton-107 added this pull request to the merge queue Jul 17, 2026
Merged via the queue into main with commit ceb956f Jul 17, 2026
26 checks passed
@anton-107
anton-107 deleted the acc-ssh-connect-serverless-cpu-local branch July 17, 2026 14:26
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.

4 participants