Skip to content

[test, do not merge] Fork integration check on #1017 - #1045

Closed
david-siqi-liu wants to merge 2 commits into
databricks:david/ci-fork-integration-approvalfrom
david-siqi-liu:fork-ci-test-1017
Closed

david-siqi-liu wants to merge 2 commits into
databricks:david/ci-fork-integration-approvalfrom
david-siqi-liu:fork-ci-test-1017

Conversation

@david-siqi-liu

Copy link
Copy Markdown
Collaborator

Test only, do not merge. Mirrors the head of #1017 from a fork, based on #1044, to exercise the fork integration approval flow end to end. I will close it after the run.

This pull request and its description were written by Isaac.

timothytamm-db and others added 2 commits October 6, 2026 22:39
…owser re-auth

A ug claude launch calls get_databricks_token from many places, and a host whose first-matching CLI profile has a stale refresh token paid fail -> auth login --no-browser -> fail on every call. Current CLIs reject --no-browser, so the re-auth never did anything.

Memoize tokens per workspace and resolved profile until five minutes before their earliest stated expiry, or for 60 seconds without expiry. Cache definitive failures briefly, but never cache token-fetch or re-auth timeouts and lock contention. Forced refresh bypasses the memo and does not replace a success with failure. Auth validation shares successful tokens and logins clear the memo.

Only attempt non-interactive re-auth when the CLI advertises --no-browser, and skip the second fetch after a failed re-auth.

Ported from databricks-eng/universe#2742026 onto Unity Gateway main at 4d8ff8d. Coordinate concurrent fetches per key, reject in-flight memo writes after login invalidation, and cover failed help probes, expiry, refresh, and concurrent callers without changing credential/profile routing.

Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Harry Yao <harry.yao@databricks.com>
Require explicit invalid or missing credential diagnostics before negative caching, expire memos when either wall or monotonic time reaches its deadline, and clear the shared token memo after every attempted MCP connection login.

Add regressions for transient failure recovery, suspend and clock rollback, login failure paths, and fresh-token use on sync and async proxy retries. Update the component coverage notes.

Signed-off-by: Harry Yao <harry.yao@databricks.com>
@david-siqi-liu
david-siqi-liu marked this pull request as ready for review October 8, 2026 15:26
@david-siqi-liu
david-siqi-liu marked this pull request as draft October 8, 2026 15:28
@david-siqi-liu

Copy link
Copy Markdown
Collaborator Author

Closing: pull_request_target only runs main's workflow file, so this mirror cannot exercise #1044 before it merges.

@david-siqi-liu
david-siqi-liu deleted the fork-ci-test-1017 branch October 8, 2026 15:29
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.

2 participants