Command Palette

Search for a command to run...

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

ci-troubleshoot

БесплатноЗапускает вложенные скриптыНе проверен

Diagnose failed GitHub Actions runs for pi-agent-dashboard: the 11-file workflow taxonomy, affected-test selection, the release pipeline, known failure modes…

BlackBeltTechnologyот BlackBeltTechnology★ 357 звёзд на GitHub

Об этом скилле

CI Troubleshoot

Diagnose CI failures for pi-agent-dashboard. The repo has 11 workflow files: 9 entry workflows and 2 reusable workflows.

flowchart LR
  ci[ci.yml] --> checks[guards + lint + build<br/>+ affected tests]
  nightlyTests[nightly-tests.yml] --> full[full suite + nightly-tests issue]
  deploy[deploy-site.yml] --> pages[GitHub Pages]
  native[ci-e2e-electron.yml] --> nativeTests[native Electron E2E]
  ciSmoke[ci-smoke.yml] --> smoke[_smoke.yml]
  publish[publish.yml] --> smoke
  ciElectron[ci-electron.yml] --> electron[_electron-build.yml]
  nightly[nightly.yml] --> electron
  nightly --> smoke
  publish --> electron
  publish --> release[GitHub Release]
  release --> sync[sync-release-version.yml]

Full per-workflow detail: references/workflow-taxonomy.md.

First moves — always run these

pnpm exec tsx .pi/skills/ci-troubleshoot/scripts/list-recent-runs.ts                  # last 10 runs across all workflows
pnpm exec tsx .pi/skills/ci-troubleshoot/scripts/list-recent-runs.ts --failed         # only failed
pnpm exec tsx .pi/skills/ci-troubleshoot/scripts/show-failed-run.ts <run-id>          # failed steps + log tails
pnpm exec tsx .pi/skills/ci-troubleshoot/scripts/show-failed-run.ts                   # most recent failed run

These wrap gh run list, gh run view --log-failed, and similar. You need gh auth status to be authenticated.

ci.yml job taxonomy — affected-only tests

ci.yml runs parallel jobs (change: speed-up-ci-affected-tests):

Job Does Red means
select scripts/select-affected-tests.mjs → artifact test-selection + job summary selector could not run at all (it degrades to mode: full on its own errors)
ci guards, spec validate, lint, lint:e2e, Biome, build, publish-import checks — NO tests a guard/lint/build failure
unit ×4 the selector's shard n via pnpm run test:parallel <files> a test failed, dist/index.html missing, or verify-executed found an assigned file that never ran
real-process real-process files (runs only when selected) as today's phase 2; retries once under CI
ci-scenarios the RUN_CI_SCENARIOS-gated packaging files only (skipped for OpenSpec-only diffs) a packaging scenario failed
ci-result aggregate; check-result.mjs select failed, a job failed/cancelled, or an EXPECTED job was skipped

What did this run skip? Open the select job summary, or:

gh run download <run-id> -n test-selection -D /tmp/sel
jq '{mode, reason, counts, slowTierDeselected, unmapped}' /tmp/sel/selection.json
jq -r '.selected | to_entries[] | "\(.value)\t\(.key)"' /tmp/sel/selection.json | sort | head   # file → layer
jq '.shards | map(length)' /tmp/sel/selection.json

Mode full has a reason: a global input (lockfile, root package.json, any vitest/tsconfig, setupFiles, the selector or its data), an unmapped file outside packages/, a ci:full label, workflow_dispatch, or a selector error (all-zero/non-ancestor/missing base).

Force a full run. ci:full label on the PR → takes effect on the NEXT push (there is no labeled trigger — on purpose). Immediate: gh workflow run ci.yml --ref <branch> (dispatch is always full).

Slow tier. scripts/test-selection/slow-tier.json (only the 504 s mutation harness) is deselected in affected mode unless the file itself changed; it runs nightly, in full mode, and under ci:full. Listed under "Slow-tier deselections" in the summary.

A test is green on PRs but red nightly. Not automatically a selection miss — flakes and environment changes do this too. The nightly-tests issue names the bisect range (A..B, since the last green SCHEDULED run). Bisect in that range to the breaking commit, then open that commit's PR run test-selection artifact: if the failing file WAS selected (and executed), debug the test itself; only if it was NOT selected did selection miss it — close the gap with a scripts/test-selection/triggers.json entry or a layer fix, never just a re-run.

nightly-tests issue triage. One open issue, label nightly-tests. A red scheduled night is rerun once (failed jobs only) by nightly-tests-rerun.yml and an issue now opens only after the rerun also fails (about 80 min later); the first attempt's red run with no issue is a deferral, not a miss. A test under "Passed on rerun (flaky)" failed once and passed on the rerun: a flake to fix, not a regression. An issue titled by nightly-tests-watchdog.yml ("rerun not performed or not reported") means the rerun or its report did not happen: open the night's run and read both attempts. The issue is updated each red scheduled night and closed on the first green one. "no report" = a job was cancelled or died (infra), not a pass. "no new commits" = flake or environment. Refreshed shard timings: artifact test-timings → copy to scripts/test-selection/timings.json by

Полный SKILL.md на GitHub

Установить ci-troubleshoot в Claude Code и Claude Desktop

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

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

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

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

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

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

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

SKILL.agent.mdSKILL.md.AGENTS.mdreferences/common-failures.mdreferences/common-failures.md.AGENTS.mdreferences/release-pipeline.mdreferences/release-pipeline.md.AGENTS.mdreferences/workflow-taxonomy.mdreferences/workflow-taxonomy.md.AGENTS.mdscripts/list-recent-runs.tsscripts/retrigger-failed.tsscripts/retrigger-failed.ts.AGENTS.mdscripts/show-failed-run.ts

FAQ

Что делает скилл ci-troubleshoot?

Diagnose failed GitHub Actions runs for pi-agent-dashboard: the 11-file workflow taxonomy, affected-test selection, the release pipeline, known failure modes, and how to read `gh run` logs and retrigger jobs. Use when a CI run is red, a release is stuck, a workflow won't dispatch, or you need to know which workflow does what. See `release-cut` to trigger a release, `release-revoke` to revoke one.

Как установить скилл ci-troubleshoot?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ci-troubleshoot запускает скрипты?

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

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

Сравнить ci-troubleshoot с