Skip to content

Tag genie ask requests with databricks_cli source and disable viz#6056

Merged
renaudhartert-db merged 3 commits into
mainfrom
ci/pr-5988
Jul 24, 2026
Merged

Tag genie ask requests with databricks_cli source and disable viz#6056
renaudhartert-db merged 3 commits into
mainfrom
ci/pr-5988

Conversation

@lennartkats-db

@lennartkats-db lennartkats-db commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Re-home of #5988 (fork PR by @yansonggao-db) onto an in-repo branch so CI can run; reviewed and approved by @lennartkats-db

Changes

databricks experimental genie ask now sets two fields on the OneChat /responses request it already sends:

  • source: "databricks_cli" so the backend attributes CLI-originated Genie traffic distinctly from webapp/Slack/MCP.
  • enable_viz: false because the CLI renders in a terminal that can't display charts, so it tells the agent to skip visualization tools.

Neither is user-configurable; BuildRequest sets both unconditionally. EnableViz is a *bool so false serializes past omitempty.

Why

Backend traffic attribution: OneChat buckets conversations by source, and CLI traffic currently arrives untagged. Disabling viz avoids the agent emitting chart items the terminal can't render.

Tests

go test ./libs/genie/... passes. TestBuildRequest_WireFormat pins the new fields and TestBuildRequest_TagsSourceAndDisablesViz asserts source and enable_viz:false are always on the wire.

Co-authored-by: Yansong Gao yansong.gao@databricks.com

yansonggao-db and others added 2 commits July 21, 2026 22:14
`databricks experimental genie ask` now sends a `source: "databricks_cli"`
field on the OneChat /responses request so the backend can attribute CLI
traffic distinctly (vs webapp/Slack/MCP), and sends `enable_viz: false` because
the CLI renders in a terminal that cannot display charts.

- GenieRequest gains Source (string) and EnableViz (*bool, so false serializes
  past omitempty) fields.
- BuildRequest sets both unconditionally; neither is user-configurable.
- Updates the wire-format test and adds a test pinning both fields.
@eng-dev-ecosystem-bot

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

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 2cec482

Run: 30080728206

Env 💚​RECOVERED 🙈​SKIP ✅​pass 🙈​skip Time
💚​ aws linux 4 4 322 1059 6:38
💚​ aws windows 4 4 324 1057 5:53
💚​ azure linux 4 4 322 1058 6:55
💚​ azure windows 4 4 324 1056 5:46
💚​ gcp linux 1 5 321 1060 6:48
💚​ gcp windows 1 5 323 1058 6:14
8 interesting tests: 4 RECOVERED, 4 SKIP
Test Name aws linux aws windows azure linux azure windows gcp linux gcp windows
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
🙈​ TestAccept/bundle/invariant/no_drift 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_endpoints/drift/recreated_same_name 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_indexes/recreate/embedding_dimension 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/ssh/connection 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
💚​ TestFetchRepositoryInfoAPI_FromRepo 💚​R 💚​R 💚​R 💚​R 🙈​S 🙈​S
💚​ TestFetchRepositoryInfoAPI_FromRepo/root 💚​R 💚​R 💚​R 💚​R
💚​ TestFetchRepositoryInfoAPI_FromRepo/subdir 💚​R 💚​R 💚​R 💚​R
Top 3 slowest tests (at least 2 minutes):
duration env testname
4:26 gcp windows TestAccept
3:26 azure windows TestAccept
3:20 aws windows TestAccept

@renaudhartert-db
renaudhartert-db added this pull request to the merge queue Jul 24, 2026
Merged via the queue into main with commit 8657ddd Jul 24, 2026
23 checks passed
@renaudhartert-db
renaudhartert-db deleted the ci/pr-5988 branch July 24, 2026 09:31
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