e2e-failure-analyzer
БесплатноЗапускает вложенные скриптыНе проверенAnalyze e2e test failures from a GitHub Actions run. Provide a run ID or URL to download reports, extract traces/screenshots/logs, identify root causes, and…
от posit-dev★ 4 361 звезда на GitHubОб этом скилле
E2E Failure Analyzer
Analyzes Playwright e2e test failures from a GitHub Actions run using JSON reports, trace files, screenshots, and test logs to identify root causes and suggest next actions.
When to Use
- A CI run has failed and you want to understand why
- Triaging e2e test failures from positron-builds
Test: MergeorPositron Build: Daily Release, or positronTest: Full Suite - Triaging a whole run's hard failures (for deep per-test investigation of one flaky/failing test, use the
debug-e2e-testskill instead)
Prerequisites
- GitHub CLI (
gh) authenticated @playwright/testavailable via npx (for merging blob reports, positron repo only)
Helper Scripts
Scripts live alongside this skill in scripts/. Use the base directory path shown above when the skill loads (the "Base directory for this skill: ..." line) as $SKILL_DIR. Scripts require Node.js and are cross-platform (Windows via Git Bash, macOS, Linux). Scripts that extract from zip files require unzip to be available in PATH (included in Git Bash on Windows).
Consolidated scripts (preferred -- fewer tool calls)
e2e-gather-run-info.js- Gathers all run metadata, failed jobs, artifacts, non-e2e job log excerpts, and commit info in one call. Replaces multiplegh apiinvocations.e2e-process-project.js- Path A. Processes a merged blob report project end-to-end: extracts failures, scans blobs, extracts/parses traces, extracts screenshots and error-context. Replaces multiple script + unzip invocations.e2e-process-s3.js- Path B. Processes a Playwright HTML report from the tailnet report server end-to-end: fetchesindex.html, decodes the embedded base64report.zip, downloads trace + error-context attachments from S3, parses traces, and extracts screencast frames. Produces the same JSON shape ase2e-process-project.jsso the downstream analyzer treats both paths identically.
Standalone scripts (used by consolidated scripts internally, or for ad-hoc debugging)
e2e-extract-failures.js- Extracts failures from a merged Playwright JSON reporte2e-parse-trace.js- Parses atrace.tracefile into an action timeline with errors and the last screenshot before the failure, plus a DOM-presence report and a console digest near the failure (see Reading the DOM-presence and console-digest sections below)lib-failure-window.js- Shared helpers for locating the failing action's wait interval, relating the trace's monotonict=to the wall-clock timestamps in the attached*.logfiles, and mining those logs for that window. Imported by the two consolidated scripts ande2e-parse-trace.js. Unit tests:node --test ".claude/skills/e2e-failure-analyzer/scripts/test/*.test.js"e2e-inspect-blobs.js- Scans blob report zips to find failed test IDs and their trace/log resource hashese2e-query-history.js- Queries the e2e-test-insights API for historical test health data (requiresE2E_INSIGHTS_API_KEYenv var)
Input
Run ID or URL from either repo:
https://github.com/posit-dev/positron/actions/runs/23610137774https://github.com/posit-dev/positron-builds/actions/runs/23938334846
Step 1: Gather Run Info (single script call)
The consolidated e2e-gather-run-info.js script handles everything: run metadata, failed jobs, blob report artifacts, non-e2e job log excerpts, and commit info.
node "$SKILL_DIR/scripts/e2e-gather-run-info.js" <RUN_URL>
Output JSON contains:
repo,runId- parsed from URLrun- metadata (name, conclusion, html_url, head_sha, branch)failedJobs- array of{id, name, isE2e, steps}for all failed jobsnonE2eJobLogs- map of job ID to failure log excerpts (for non-e2e jobs)artifacts- sorted list of blob report artifact namesprojects- unique project names extracted from artifacts (e.g.,e2e-chromium,e2e-windows)commit-{message, author, files, submodules}for the head commit.submodulesexpands each submodule bump in it (positron-builds' head commit is usually a bot bump whose only changed file is thepositrongitlink) into{path, repo, from, to, status, aheadBy, behindBy, totalCommits, commits, files, removed}-- the commits and files that bump pulled in, and inremoved({totalCommits, commits, files}) the ones it took out when it moved the pointer back (behindBy > 0: a downgrade or diverged move).commits: null, orremoved: nullwithbehindBy > 0, means that range could not be fetched: treat what it changed as unknown rather than guessing.
Read failedJobs[].steps before you touch any test evidence. A job keeps running past a failed step whenever the later steps carry their own if: conditions, so a job can fail to install R and still run the whole R suite against a half-provisioned runner -- and the Playwright report shows only that the tests failed. Each job's steps gives:
testStep- the step that ran the Playwright su
Установить e2e-failure-analyzer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл e2e-failure-analyzer?
Analyze e2e test failures from a GitHub Actions run. Provide a run ID or URL to download reports, extract traces/screenshots/logs, identify root causes, and get suggested actions. Works with both posit-dev/positron and posit-dev/positron-builds repos.
Как установить скилл e2e-failure-analyzer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл e2e-failure-analyzer запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic