feat(weave): add in-memory fake trace server skeleton and test wiring - #7145
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
70f64f6 to
ec1112c
Compare
ec1112c to
c9a86e6
Compare
c9a86e6 to
91b6e4c
Compare
d96061d to
9d73269
Compare
c626345 to
38f4846
Compare
9d73269 to
53388a3
Compare
HiveMind Sessions1 session · 8h 14m · $283
View all sessions in HiveMind → Run |
5838d2a to
be55e16
Compare
| contents: read | ||
| # The in-memory fake needs no ClickHouse/wandb services — it is a pure | ||
| # in-process backend. Tests it cannot satisfy yet are skipped via | ||
| # tests/fake_unimplemented.txt; the rest must match ClickHouse. |
There was a problem hiding this comment.
Is this reference to fake_unimplemented.txt accurate?
There was a problem hiding this comment.
No that was removed; fixed
| updated_by: str | ||
|
|
||
|
|
||
| class InMemoryTraceServer(tsi.FullTraceServerInterface): |
There was a problem hiding this comment.
why subclass this at all? aren't we going to need to add methods?
There was a problem hiding this comment.
What's wrong with subclassing?
| # `skipif(FAKE_NOT_IMPLEMENTED, ...)` decorators for the capability it | ||
| # implements, so CI then runs those tests on the fake and verifies they match | ||
| # ClickHouse. (NOT_CLICKHOUSE_BACKEND, by contrast, is permanent CH-only.) | ||
| FAKE_NOT_IMPLEMENTED = ( |
There was a problem hiding this comment.
presumably this will drift from above?
There was a problem hiding this comment.
yeah fair, fixed
| self._init_storage() | ||
|
|
||
| def _init_storage(self) -> None: | ||
| # Calls keyed by id (unique per call in practice; reads filter by |
There was a problem hiding this comment.
why not key the calls by project_id, id ?
be55e16 to
b22d2f2
Compare
b22d2f2 to
a56135b
Compare

This PR has two commits:
At the end of this process, we should have a fully featured fake impl and no skips.
All subsequent PRs in this stack share these properties: