You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a137b89
Browse filesBrowse the repository at this point in the historyBrowse files
internal: move the user-agent engine tag to the callers of PullResourcesState (databricks#6808)
## Changes
The user-agent `engine` dimension used to be set inside
`PullResourcesState`. Move it to the callers (`bundle deploy`/`plan` in
process.go and the two `bundle generate` resource paths), so the engine
tag lives next to where the resolved engine is known.
Follow-on cleanups from that move:
- `PullResourcesState` no longer mutates the context, so it now returns
only `*StateDesc` instead of `(context.Context, *StateDesc)`.
- `generate dashboard` and `generate genie-space` had byte-identical
state-loading blocks (initialize, resolve engine, pull state, tag
engine, load). Extracted into one `loadStateForGenerate` helper so the
tag is set in a single place.
## Why
Prep for databricks#6749 (move terraform→direct state migration before deploy):
that PR needs the engine tag set from the resolved (post-migration)
engine, so consolidating the tagging off main keeps its diff focused on
the behavior change.
## Tests
Behavior-preserving. `acceptance/bundle/user_agent` asserts the
`engine/` tag on every recorded request for both engines; it plus the
`generate` and `state` suites and the generate unit tests pass with no
golden changes.
This pull request and its description were written by Isaac.
---------
Co-authored-by: Isaac <no-reply@databricks.com>
0 commit comments