Skip to content

Apply the timeout to the auth token inline login - #7267

Merged
maksim-zuev-db merged 3 commits into
mainfrom
auth-token-inline-login-timeout
Oct 30, 2026
Merged

maksim-zuev-db merged 3 commits into
mainfrom
auth-token-inline-login-timeout

Conversation

@maksim-zuev-db

Copy link
Copy Markdown
Member

Changes

runInlineLogin in databricks auth token now creates its timeout context before NewPersistentAuth, as databricks auth login does.

Why

Follow-up to this review on #7196.

PersistentAuth.Challenge uses the context passed to NewPersistentAuth, but the timeout context was created after it, so the one hour timeout never applied. Closing the browser tab left auth token waiting until Ctrl+C.

Tests

  • cmd/auth unit tests pass.
  • No new test: covering it would need the one hour defaultTimeout to be injectable.

This pull request and its description were written by Isaac.

@maksim-zuev-db
maksim-zuev-db marked this pull request as ready for review October 30, 2026 15:59
@maksim-zuev-db
maksim-zuev-db requested review from a team as code owners October 30, 2026 15:59
@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: dc28d3e

Run: 41093738118

Env ✅​pass 🙈​skip Time
✅​ aws linux-2core-8gb 281 15 5:44
✅​ aws-windows-latest-4core-16gb 283 13 3:39
✅​ azure linux-2core-8gb 280 15 5:22
✅​ azure-windows-latest-4core-16gb 282 13 4:05
✅​ gcp linux-2core-8gb 281 15 5:22
✅​ gcp-windows-latest-4core-16gb 283 13 5:37
Top 6 slowest tests (at least 2 minutes):
duration env testname
5:29 gcp-windows-latest-4core-16gb TestAccept
4:01 azure-windows-latest-4core-16gb TestAccept
3:58 aws linux-2core-8gb TestAccept
3:41 gcp linux-2core-8gb TestAccept
3:35 azure linux-2core-8gb TestAccept
3:32 aws-windows-latest-4core-16gb TestAccept

@maksim-zuev-db
maksim-zuev-db added this pull request to the merge queue Oct 30, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Oct 30, 2026
maksim-zuev-db and others added 3 commits October 30, 2026 16:49
PersistentAuth.Challenge uses the context passed to NewPersistentAuth,
but the timeout context was created after it, so the one hour timeout
never applied. Closing the browser tab left auth token waiting until
Ctrl+C. Create the timeout context first, as auth login does.

Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
@maksim-zuev-db
maksim-zuev-db force-pushed the auth-token-inline-login-timeout branch from 2913368 to dc28d3e Compare October 30, 2026 16:51
@maksim-zuev-db
maksim-zuev-db added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit bdd24cf Oct 30, 2026
27 checks passed
@maksim-zuev-db
maksim-zuev-db deleted the auth-token-inline-login-timeout branch October 30, 2026 17:26
@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: bdd24cf

Run: 41098891841

Env 🔄​flaky ✅​pass 🙈​skip Time
✅​ aws linux-2core-8gb 1504 1226 136:08
✅​ aws-windows-latest-4core-16gb 1429 1251 149:08
✅​ azure linux-2core-8gb 1351 1278 106:16
✅​ azure-windows-latest-4core-16gb 1276 1303 123:48
✅​ gcp linux-2core-8gb 1338 1283 121:05
🔄​ gcp-windows-latest-4core-16gb 2 1261 1308 128:46
Test Name gcp-windows-latest-4core-16gb
🔄​ TestFsCpSourceIsDirectoryButTargetIsFile 🔄​f
🔄​ TestFsCpSourceIsDirectoryButTargetIsFile/uc-volumes_to_dbfs 🔄​f
Top 50 slowest tests (at least 2 minutes):
duration env testname
14:54 gcp linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
13:34 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/deploy/local_ssd_count/DMS=
11:19 azure linux-2core-8gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=true
10:51 gcp linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
9:28 azure-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
9:24 aws linux-2core-8gb TestAccept/bundle/resources/clusters/lifecycle-started-toggle/DMS=true
9:20 aws linux-2core-8gb TestAccept/bundle/resources/clusters/lifecycle-started-toggle/DMS=
9:18 gcp linux-2core-8gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=true
8:42 aws-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
8:41 azure-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
8:40 aws linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
8:33 azure linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
8:29 aws linux-2core-8gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=true
8:27 aws linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
8:25 aws linux-2core-8gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=
8:17 aws-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
8:10 azure linux-2core-8gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
8:03 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=true
7:42 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/deploy/local_ssd_count/DMS=true
7:34 aws-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=
7:30 aws linux-2core-8gb TestAccept/bundle/resources/clusters/resize-terminated-fallback/DMS=true
7:24 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=true
7:09 gcp linux-2core-8gb TestAccept/bundle/resources/clusters/deploy/local_ssd_count/DMS=
7:08 gcp linux-2core-8gb TestAccept/bundle/invariant/no_drift/DMS=/INPUT_CONFIG=cluster_apply_policy_default_values.yml.tmpl/READPLAN=1
7:08 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=
7:08 gcp linux-2core-8gb TestAccept/bundle/resources/clusters/deploy/local_ssd_count/DMS=true
7:07 aws-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started-toggle/DMS=
7:06 gcp linux-2core-8gb TestAccept/bundle/invariant/no_drift/DMS=/INPUT_CONFIG=cluster_apply_policy_default_values.yml.tmpl/READPLAN=
7:03 gcp linux-2core-8gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=
6:28 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/apps/lifecycle-started/DMS=
6:27 gcp linux-2core-8gb TestAccept/bundle/config-remote-sync/multiple_resources/DMS=
6:21 gcp linux-2core-8gb TestAccept/bundle/config-remote-sync/multiple_resources/DMS=true
6:21 aws linux-2core-8gb TestAccept/bundle/config-remote-sync/multiple_resources/DMS=
6:17 aws-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started-toggle/DMS=true
6:12 aws linux-2core-8gb TestAccept/bundle/config-remote-sync/multiple_resources/DMS=true
6:04 gcp linux-2core-8gb TestAccept/bundle/resources/clusters/lifecycle-started-toggle/DMS=
6:02 aws-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=true
5:58 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started-toggle/DMS=true
5:56 gcp linux-2core-8gb TestAccept/bundle/resources/clusters/lifecycle-started-toggle/DMS=true
5:50 azure-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=
5:43 gcp-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started-toggle/DMS=
5:36 azure-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=true
5:26 azure linux-2core-8gb TestAccept/bundle/resources/clusters/lifecycle-started/DMS=
5:18 aws-windows-latest-4core-16gb TestAccept/bundle/deploy/spark-jar-task/DMS=
5:14 aws-windows-latest-4core-16gb TestAccept/bundle/deploy/spark-jar-task/DMS=true
5:13 aws linux-2core-8gb TestAccept/bundle/resources/clusters/resize-terminated-fallback/DMS=
5:11 aws linux-2core-8gb TestAccept/bundle/deploy/spark-jar-task/DMS=true
5:10 aws linux-2core-8gb TestAccept/bundle/deploy/spark-jar-task/DMS=
5:08 azure-windows-latest-4core-16gb TestAccept/bundle/resources/clusters/lifecycle-started-toggle/DMS=
4:46 gcp-windows-latest-4core-16gb TestAccept/bundle/deploy/spark-jar-task/DMS=true

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