Skip to content

acc: run ssh/connection locally#5907

Merged
radakam merged 2 commits into
mainfrom
acc-local-ssh-connection
Jul 15, 2026
Merged

acc: run ssh/connection locally#5907
radakam merged 2 commits into
mainfrom
acc-local-ssh-connection

Conversation

@radakam

@radakam radakam commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Changes

The dedicated-cluster counterpart to acceptance/ssh/connect-serverless-gpu (#5878). Flips acceptance/ssh/connection to Local = true and asserts the bootstrap job the CLI submits for ssh connect --cluster (existing_cluster_id, secret scope, notebook task, serverless=false), reusing the testserver SSH-tunnel stubs from #5878.

The default test cluster (TestDefaultClusterId) is now a running dedicated single-user cluster — the shape ssh connect --cluster requires (ValidateClusterAccess rejects anything else), matching the cloud TEST_DEFAULT_CLUSTER_ID it stands in for. Only bundle/deployment/bind/cluster (filters to cluster_name) and the cmd/api route stubs reference it, so no other goldens change.

Tests

  • acceptance/ssh/connection (asserts the submitted dedicated-cluster bootstrap job payload)

Flip acceptance/ssh/connection to Local = true so it runs against the
in-process testserver (it was disabled on both cloud and local in #4838).
This is the dedicated-cluster counterpart to connect-serverless-gpu: a full
SSH handshake can't complete locally (no real compute/sshd + a wss
driver-proxy), so the local run drives the connect flow up to the connection
attempt and asserts the dedicated-cluster bootstrap job the CLI submits
(existing_cluster_id, secret scope, notebook task, serverless=false).

Make the default test cluster a running dedicated single-user cluster so
`ssh connect --cluster` passes ValidateClusterAccess and the cluster-state
check, matching the cloud TEST_DEFAULT_CLUSTER_ID this fixture stands in for.

The connect attempt itself is expected to fail locally; its noisy output
goes to LOG.stderr (excluded from the golden files).
@radakam radakam temporarily deployed to test-trigger-is July 13, 2026 13:17 — with GitHub Actions Inactive
@radakam radakam temporarily deployed to test-trigger-is July 13, 2026 13:45 — with GitHub Actions Inactive
@radakam radakam temporarily deployed to test-trigger-is July 13, 2026 13:45 — with GitHub Actions Inactive
@radakam radakam marked this pull request as ready for review July 13, 2026 13:56
@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 1fc5b95

Run: 29255053901

Env 🟨​KNOWN 🔄​flaky 💚​RECOVERED 🙈​SKIP ✅​pass 🙈​skip Time
💚​ aws linux 4 4 230 1081 5:09
💚​ aws windows 4 4 232 1079 7:24
💚​ aws-ucws linux 4 4 316 998 5:35
💚​ aws-ucws windows 4 4 318 996 7:38
💚​ azure linux 4 4 230 1080 4:53
💚​ azure windows 4 4 232 1078 7:11
💚​ azure-ucws linux 4 4 318 995 6:03
🟨​ azure-ucws windows 3 1 4 320 993 11:53
🔄​ gcp linux 1 3 4 229 1082 6:29
💚​ gcp windows 4 4 231 1080 7:20
8 interesting tests: 4 SKIP, 3 KNOWN, 1 RECOVERED
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 🟨​K 🔄​f 💚​R
🟨​ TestFetchRepositoryInfoAPI_FromRepo/root 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 🟨​K 💚​R 💚​R
🟨​ TestFetchRepositoryInfoAPI_FromRepo/subdir 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 🟨​K 💚​R 💚​R
Top 10 slowest tests (at least 2 minutes):
duration env testname
6:43 azure-ucws windows TestAccept
6:26 gcp windows TestAccept
6:24 aws windows TestAccept
6:21 aws-ucws windows TestAccept
6:10 azure windows TestAccept
3:04 gcp linux TestAccept
2:56 aws linux TestAccept
2:54 azure linux TestAccept
2:49 azure-ucws linux TestAccept
2:41 aws-ucws linux TestAccept

@anton-107 anton-107 left a comment

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.

Approve. Clean and low-risk. Confirmed TestAccept/ssh/connection runs and passes locally (~0.9s) on the Linux job.

I verified the shared-fixture change has no golden blast radius: the only acceptance test that reads TestDefaultClusterId by GET is bundle/deployment/bind/cluster, which projects with jq "{cluster_name}", so the new State/DataSecurityMode/SingleUserName fields are filtered out and no other golden changes — matching the PR description. The change is also semantically more faithful to the cloud TEST_DEFAULT_CLUSTER_ID it stands in for.

The local run is a change-detector for the submitted bootstrap-job payload (the connect attempt is expected to fail; its output is correctly routed to LOG.stderr and excluded from goldens), which is a reasonable and deterministic thing to assert. Nice follow-up once #5920 lands: its websocket-scheme fix + /ssh handler would let this dedicated-cluster case complete a real handshake locally too.

@radakam radakam added this pull request to the merge queue Jul 15, 2026
Merged via the queue into main with commit fed17ca Jul 15, 2026
29 checks passed
@radakam radakam deleted the acc-local-ssh-connection branch July 15, 2026 05:46
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