Skip to content

chore(weave): import weave-server-sdk models directly#7179

Draft
andrewtruong wants to merge 1 commit into
andrew/sdk-uptake-02-client-sdk-modelsfrom
andrew/sdk-uptake-03-direct-model-imports
Draft

chore(weave): import weave-server-sdk models directly#7179
andrewtruong wants to merge 1 commit into
andrew/sdk-uptake-02-client-sdk-modelsfrom
andrew/sdk-uptake-03-direct-model-imports

Conversation

@andrewtruong

Copy link
Copy Markdown
Collaborator

Description

  • Fixes WB-NNNNN
  • Fixes #NNNN

What does the PR do? Include a concise description of the PR contents.

Testing

How was this PR tested?

andrewtruong commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@codecov

codecov Bot commented Jun 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 81.06796% with 39 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
.../trace_server_bindings/remote_http_trace_server.py 81.19% 22 Missing ⚠️
weave/flow/saved_view.py 41.37% 17 Missing ⚠️

📢 Thoughts on this report? Let us know!

@wandbot-3000

wandbot-3000 Bot commented Jun 11, 2026

Copy link
Copy Markdown

@andrewtruong andrewtruong force-pushed the andrew/sdk-uptake-02-client-sdk-models branch from 6630fbe to 6a58a0a Compare June 11, 2026 14:54
@andrewtruong andrewtruong force-pushed the andrew/sdk-uptake-03-direct-model-imports branch 2 times, most recently from 00bc434 to 81fb8de Compare June 11, 2026 15:20
@andrewtruong andrewtruong force-pushed the andrew/sdk-uptake-02-client-sdk-models branch from 6a58a0a to 801dbac Compare June 11, 2026 15:20
Drops the transitional `models as tsi` aliasing in favor of importing the
model names directly: SDK names from weave_server_sdk.models, gap/envelope
names from weave.trace_server_bindings.models. The temporary re-export of the
SDK models through the bindings module (which let the migration PR keep its
tsi.X references textually unchanged) is removed with it — the bindings
module now contains only the gap models and batching envelopes.

One deliberate exception: tests/trace/test_weave_client.py keeps an unaliased
`models` module reference for its binding-facing tests, because `tsi` in that
file refers to the server's interface used by the coercion-seam tests, and
the module qualifier keeps the two families visibly distinct.
@andrewtruong andrewtruong force-pushed the andrew/sdk-uptake-03-direct-model-imports branch from 81fb8de to 79be7f0 Compare June 11, 2026 17:13
@andrewtruong andrewtruong force-pushed the andrew/sdk-uptake-02-client-sdk-models branch from 801dbac to 0e5ec03 Compare June 11, 2026 17:13
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.

1 participant