Skip to content
Back to skills

Ci Triage

ASecurity

Find why a Kaeri CI run, beta release or promotion failed without reading whole logs, and check that a beta published. Use when a PR check, the Release or Promote workflow or a store image fails.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 25, 2026
developmentrustgoswiftc++bashapidatabase

Works with

  • api

Security analysis

A100/100

Scanned November 25, 2026

npx -y skills add bitknox/kaeri --skill ci-triage --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ci Triage?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ci Triage
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bitknox-ci-triage/badge)](https://www.skillsdirectory.com/skills/bitknox-ci-triage)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ci-triage
description: Find why a Kaeri CI run, beta release or promotion failed without reading whole logs, and check that a beta published. Use when a PR check, the Release or Promote workflow or a store image fails.
---

# CI triage

## Find the failing step

```bash
gh pr checks <pr> | grep -P '\t(fail|pending)\t'          # what failed or is waiting
gh run view <run> --json jobs -q '.jobs[]|select(.conclusion=="failure")|"\(.name) \(.databaseId)"'
gh api repos/bitknox/kaeri/actions/jobs/<job>/logs \
  | grep -E '##\[error\]|error(\[|:)|FAILED|panicked|✘|ERROR' | head -20
```

- When `gh run view` returns HTTP 502, use `gh api repos/bitknox/kaeri/actions/runs/<run>/jobs`.
- Swift logs are full of `linkd`/`Connection]` noise; filter it out with `grep -v`.
- Save a log to the scratchpad and grep it there rather than printing it.
- The `CI passed` gate fails whenever another check fails; look at the other check.

## Failures seen before

- **Date or time dependent tests:** a test passes in the morning and fails in the evening. Fix
  with a fixed clock or zone, never by changing expected values.
- **Windows line endings:** scripts editing files on the Windows runner must keep CRLF
  (`awk -v BINMODE=3`, `diff --strip-trailing-cr`).
- **New advisory:** `audit` fails on a RUSTSEC published that day: `cargo update -p <crate>`.
- **Cache export:** buildx `failed to reserve cache` must not fail the build (`ignore-error=true`).
- **Android `NEEDED libc++_shared.so`:** a dependency linked the C++ runtime dynamically; link
  it statically.
- **Flaky timing tests:** wait on the condition or the queue, never on a fixed sleep.
- **Runners flooded:** many Dependabot PRs at once queue main's release behind them;
  `gh run cancel` their runs.

## Re-run and confirm a beta

- Re-run only failed jobs: `gh run rerun <run> --failed`.
- After a merge to main, confirm the beta pre-release published:

```bash
gh run list --commit <sha> --workflow Release --json status,conclusion
gh release view <tag> --json isPrerelease,assets -q '{pre: .isPrerelease, files: (.assets|length)}'
# a beta: pre true, 31 files, including appcast.xml and sidestore.json
gh run list --workflow Promote --limit 1 --json conclusion,displayTitle
gh api repos/bitknox/kaeri/releases/latest -q .tag_name     # the stable
```

## Promote failed

Read the run's notice first. A held, too young or missing beta is a notice and a green run, not a
failure. A run waiting for approval is waiting for the maintainer. A real failure names its step:
the checks at the end say which of `releases/latest`, the appcast, `sidestore.json` or the image
tag did not match. Clearing the pre-release flag is the last change, so the maintainer can run a
failed promotion again with the same tag if it failed before that. Never dispatch Promote
yourself.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.