Repository navigation
Workbench Profiler Port — Phases 1a/1b/2 + comprehensive test coverage - #268
Merged
Merged
Conversation
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Umbrella #267 Phases 1a (Trace mode), 1b (Attach mode), and 2 (canvas renderer port) with detail-panel integration, shortcuts, nav history, and a multi-tier regression test suite. Closes the critical path to profiler parity with
Typhon.Profiler.Server.116 files changed, +20 350 / −112.
What shipped
Backend
TraceSessionRuntime/AttachSessionRuntime— per-session (not singleton) runtimes with fingerprint-cached sidecar builds, LZ4 chunk reads, bounded-channel SSE broadcast.ProfilerController— session-scoped binary chunk endpoint with documentedX-Chunk-*headers + ACL expose.ProfilerBuildProgressStream/ProfilerLiveStream— SSE for trace-build progress and live tick broadcast; subscribe-before-terminal-check race fixed./profiler/*routes; bootstrap + session-token gating; sidecar magic validation with human-readable hints.Frontend
ProfilerPanelwith tick overview + time area + gauge region + per-system lanes.Test infrastructure (new)
Typhon.Workbench.Fixtures/TraceFixtureBuilder+MockTcpProfilerServer— programmatic trace + live-profiler fixtures so no binary blobs land in git.test/Typhon.Workbench.Tests/Fixtures/RecordStreamBuilder— in-memory v3-record streams for decoder tests.ClientApp/src/libs/profiler/model/__tests__/spanBuilder— TS fixture helper for span/tick construction.POST /api/fixtures/trace+POST /api/fixtures/mock-profilerendpoints so Playwright can set up scenarios without committing blobs.Test coverage added in this PR (~137 new tests, everything green)
Totals: 110 NUnit / 194 Vitest / 28 Playwright — all green.
Out of scope
Typhon.Profiler.Server)Known flagged items (for follow-up, not blockers)
aggregateGaugeDatathread-name fold: docstring says "first observation wins"; code does last-wins. Test pins shipped behaviour.RecordDecoder.DecodeGenericSpancrashes on unknown kind bytes ≥ 10 that arrive with only a 12-byte record (the generic span decoder reads past the record). Deferred — no prod path hits this.WelcomeScreen.tsx: "Open .typhon-trace" button routes the dialog to thecachedtab instead oftrace. E2E specs click the Open Trace tab explicitly; might be intentional UX, flagging.Test plan
dotnet test— 110 passnpx vitest run— 194 passnpx playwright test— 28 pass (including 2 previously-stale Phase-4/6 repairs)🤖 Generated with Claude Code