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
Mirror deployment E2E summary in CLI E2E recording comment (microsoft#17154)
* Mirror deployment E2E summary in CLI E2E recording comment
Update the CLI E2E recording PR comment to surface a passed/failed
breakdown in the same style as the Deployment E2E Tests comment, e.g.
"✅ **CLI E2E Tests passed** — 12 passed, 0 failed".
Counts are derived from the TRX outcomes that are already parsed,
adding explicit pass and unknown tallies alongside the existing fail
count. Recording upload failures stay surfaced but no longer drive the
headline status, since they are unrelated to test correctness.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Embed per-row outcome in CLI E2E recording link label
Surface the test outcome on the recording link itself, not only in the
table's Status column, so a URL pulled out of the table still tells a
reader whether it represents a pass or a failure. Failed recordings get
"❌ ▶️ View failure recording", passes get "✅ ▶️ View recording",
and unknowns keep "❔".
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Allow workflow_dispatch to override target PR for testing
Adds a pr_number input to the manual trigger so the workflow can be
exercised against a chosen PR's artifacts without depending on the open
head-SHA lookup, which is needed to test changes to this workflow
before they reach main.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix TRX outcome parser
The previous yq query used jq-style 'if type == "!!seq"' which the Go
yq lexer rejects, so test_outcomes.json was always empty and every
recording showed as Unknown. The step had continue-on-error: true, so
the failure stayed silent until the new pass/fail summary surfaced it.
Convert TRX to JSON with yq -p xml -o json, then do all reshaping in jq
where it handles single-vs-array UnitTestResult shapes correctly. yq
also emits attributes as '+@<attr>' (newer) or '@<attr>' (older), so the
lookup tries both forms.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Match cast files against TRX theory tests by bare method name
Theory test recordings (e.g. recordings produced from
[Theory] methods) are saved with their [CallerMemberName] bare method
name, while TRX reports them with parameter data appended:
'Namespace.Class.Method(toolchain: "pnpm")'. The previous parser only
keyed by the last dotted segment, which preserved those parens and so
never matched the .cast filename, leaving theory recordings reported as
'Unknown'.
Strip the parameter suffix and also key the outcome map by the bare
method name and the no-parameter FQN. 'Failed' still wins over other
outcomes when the same key is seen multiple times (retries, multiple
theory cases), so a single failing case still surfaces as ❌ in the
comment.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Thread CallerMemberName through OtelLogs core helper
Both [Fact]s delegate to a private helper that calls
CreateDockerTestTerminal, so [CallerMemberName] resolved to the helper
name. That produced a single .cast file named after the private method
with no matching TRX entry, which the comment workflow reported as
'Unknown'. Pass the public test name through explicitly so each Fact
gets its own recording and matches TRX.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Replace zero pass/fail counts with recording count in fallback summary
When no TRX outcomes can be matched to any recording the headline used
to render '0 passed, 0 failed', which reads as 'no tests ran' rather
than 'outcome data unavailable'. Switch the fallback wording to
'<N> recording(s), outcomes unavailable' so the headline reflects what
actually happened.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Mitch Denny <midenn@orangecake.localdomain>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Mitch Denny <midenn@orangecake.local>
0 commit comments