feat(replay): return partial results from group session summaries#58849
Conversation
|
🎭 Playwright didn't run on this PR — your changes touch code that could affect E2E behavior, but Playwright is opt-in via label now to keep CI cost down. Add the Most PRs don't need this. Real regressions still get caught on master and fix-forward. |
|
Size Change: -35.6 kB (-0.03%) Total Size: 118 MB 📦 View Changed
ℹ️ View Unchanged
|
|
|
👋 Visual changes detected for this PR. Review and approve in PostHog Visual Review If these changes are unexpected, they may be caused by a flaky test or a broken snapshot on master. Don't approve — rerun the job or wait for a fix. |
| patterns_assignments_list_of_lists | ||
| ): | ||
| # Abort only on total chunk failure; partial assignments still produce a useful patterns report. | ||
| if not patterns_assignments_list_of_lists: |
There was a problem hiding this comment.
So now we only raise on total failure which is the whole point but don't we want to at least signal that something went wrong on partial failure?
There was a problem hiding this comment.
good point 🤔 I'll add something for partial failure as well
Problem
Group session summaries used to abort entirely once more than half of the per-session jobs failed mid-flight, after a long wait, users got a 500 with nothing to show and no signal about which sessions failed or why. This change preserves whatever work succeeded and surfaces the rest.
Changes
SessionGroupSummary.run_metadata.failed_sessions./summarize/and the Max chat tool both exposefailed_sessionsso callers can distinguish partial from clean runs. The chat tool prepends a short note to the stringified summary so Max mentions partials in its reply rather than claiming a clean run.PartialResultBannerabove the patterns list, collapsed by default, expanding shows dropped sessions grouped by category with links back to the player.capture_session_summary_generatedgets partial +failed_session_countproperties so dashboards can split clean vs degraded successes.How did you test this code?
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
Publish to changelog?
Docs update
🤖 Agent context