Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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: Merge or Positron Build: Daily Release, or positron Test: Full Suite
  • Triaging a whole run's hard failures (for deep per-test investigation of one flaky/failing test, use the debug-e2e-test skill instead)

Prerequisites

  • GitHub CLI (gh) authenticated
  • @playwright/test available 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 multiple gh api invocations.
  • 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: fetches index.html, decodes the embedded base64 report.zip, downloads trace + error-context attachments from S3, parses traces, and extracts screencast frames. Produces the same JSON shape as e2e-process-project.js so 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 report
  • e2e-parse-trace.js - Parses a trace.trace file 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 monotonic t= to the wall-clock timestamps in the attached *.log files, and mining those logs for that window. Imported by the two consolidated scripts and e2e-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 hashes
  • e2e-query-history.js - Queries the e2e-test-insights API for historical test health data (requires E2E_INSIGHTS_API_KEY env var)

Input

Run ID or URL from either repo:

  • https://github.com/posit-dev/positron/actions/runs/23610137774
  • https://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 URL
  • run - metadata (name, conclusion, html_url, head_sha, branch)
  • failedJobs - array of {id, name, isE2e, steps} for all failed jobs
  • nonE2eJobLogs - map of job ID to failure log excerpts (for non-e2e jobs)
  • artifacts - sorted list of blob report artifact names
  • projects - unique project names extracted from artifacts (e.g., e2e-chromium, e2e-windows)
  • commit - {message, author, files, submodules} for the head commit. submodules expands each submodule bump in it (positron-builds' head commit is usually a bot bump whose only changed file is the positron gitlink) into {path, repo, from, to, status, aheadBy, behindBy, totalCommits, commits, files, removed} -- the commits and files that bump pulled in, and in removed ({totalCommits, commits, files}) the ones it took out when it moved the pointer back (behindBy > 0: a downgrade or diverged move). commits: null, or removed: null with behindBy > 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
Полный SKILL.md на GitHub

Установить e2e-failure-analyzer в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

rubric.mdscripts/README.mdscripts/e2e-extract-failures.jsscripts/e2e-gather-run-info.jsscripts/e2e-inspect-blobs.jsscripts/e2e-parse-trace.jsscripts/e2e-process-project.jsscripts/e2e-process-s3.jsscripts/e2e-query-history.jsscripts/lib-failure-window.js

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить e2e-failure-analyzer с