feat(trace): load trace files independently, produce a single context entry - #42350
feat(trace): load trace files independently, produce a single context entry#42350Dmitry Gozman (dgozman) wants to merge 1 commit into
Conversation
… entry TraceLoader now loads each .trace, .network and .stacks file into its own entry without matching them by the file name prefix, then merges everything into a single ContextEntry: per-file clock alignment, action merging by stepId, and origin-dependent metadata resolution all move from TraceModel to the loader. Network files derive their time origin from the first resource and reuse the format version learned from trace files. Stacks are applied through a global call id map.
39310a7 to
0b1598b
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Test results for "MCP"1 failed 8141 passed, 1361 skipped Merge workflow run. |
Test results for "tests 1"7 flaky51277 passed, 1238 skipped Merge workflow run. |
|
Hi, I'm the Playwright bot and I took a first look at the CI failures. 🟢 The one failure is a pre-existing flake — this PR is clear
DetailsAcross the two latest merged reports there's exactly one real failure; the "tests 1" run had only flaky results. This PR reworks trace file loading ( Pre-existing flake / infra
Triaged by the Playwright bot - agent run |
Pavel Feldman (pavelfeldman)
left a comment
There was a problem hiding this comment.
I need additional context to understand / appreciate why this is needed.
| contextEntries.push(contextEntry); | ||
| } | ||
|
|
||
| for (const networkName of networkNames) { |
There was a problem hiding this comment.
I am expecting networkNames to always follow tracingNames after Devin's refactoring.
Summary
This prepares to being able to mix and match events from different contexts between trace files.
.trace,.networkand.stacksfile independently, without matching them by the file name prefix, and merges everything into a singleContextEntry.TraceModelto the loader.