Agent Skills › zeabur-oss/zeabur › zeabur-ci

zeabur-ci

GitHub

分析 Zeabur CI/CD 失败或波动原因,通过阅读日志、本地复现并修复测试或代码。

.claude/skills/zeabur-ci/SKILL.md zeabur-oss/zeabur

Trigger Scenarios

CI 检查失败 发布流程异常 测试不稳定

Install

npx skills add zeabur-oss/zeabur --skill zeabur-ci -g -y
More Options

Non-standard path

npx skills add https://github.com/zeabur-oss/zeabur/tree/main/.claude/skills/zeabur-ci -g -y

Use without installing

npx skills use zeabur-oss/zeabur@zeabur-ci

指定 Agent (Claude Code)

npx skills add zeabur-oss/zeabur --skill zeabur-ci -a claude-code -g -y

安装 repo 全部 skill

npx skills add zeabur-oss/zeabur --all -g -y

预览 repo 内 skill

npx skills add zeabur-oss/zeabur --list

SKILL.md

Frontmatter
{
    "name": "zeabur-ci",
    "description": "Investigate a failed or flaky CI or release run of Zeabur (GitHub Actions or scripts\/ci-local.sh) — read the job's log, find the cause, reproduce it on a machine sized like the runner, and fix the test or the code rather than retrying. Use when a check on a pull request or on main fails, or a test passes and fails without a change."
}

When CI fails

Follow zeabur-oss-ci (install: npx skills add zeabur-oss/skills --skill zeabur-oss-ci; skills-lock.json pins it): how the shared workflows call scripts/ci.sh, reading the log, finding the cause, reproducing, fixing, and its release recovery notes. This skill adds Zeabur's jobs and tools.

Jobs

scripts/ci.sh --list: the checks (format, clippy, docs, test, cargo-deny, unsafe-report, levels, fuzz, ui, no-ui, chart, wording), kubernetes (cluster tests, zeaburctl doctor, browser tests in local mode) and kubernetes-l2 (Zeabur and Zeabur Identity in a cluster, scripts/e2e-l2.sh), both on scripts/dev-cluster.sh. What each cluster job runs is in zeabur-cluster-tests.

.github/workflows/release.yml runs on a vX.Y.Z or vX.Y.Z-<pre-release> tag: zeabur-oss/.github's shared release workflow, each stage bun scripts/release.ts <stage>: build (Linux amd64/arm64, macOS arm64: scripts/release-build.sh, then scripts/release-smoke.sh on Linux), sign (macOS), publish, attest, finish (the installers), release (assets, the draft release) and verify (on the draft's assets); @zeabur-oss/release (package.json) pushes, signs and verifies. A failed release run: zeabur-oss-ci's RELEASE-RECOVERY.md, then RELEASE-RECOVERY.md here.

Reading a failure

  • A failed browser test prints each test's error-context.md (the page as Playwright saw it) and kubectl get pods,events -A in the step "Browser test failure context"; read that before guessing. Playwright's line reporter gives the file and line of the assertion.
  • Polling and isolation rules: docs/internal/testing.md, "Waiting and isolation". Known timing cases are in zeabur-cluster-tests.

Reproducing

rsync -a --delete --exclude target --exclude node_modules --exclude web/dist ./ host:zeabur/
ssh host 'cd zeabur && scripts/ci.sh kubernetes'           # one job
ssh host 'cd zeabur && scripts/ci-local.sh'                # every job, a result line each
  • scripts/ci-local.sh [job…] runs each job in its own copy of the checkout, three at a time (CI_LOCAL_PARALLEL), the cluster jobs alone at the end; results in target/ci-local/<job>.result, logs next to them, a failed job's copy kept under work/. Its header documents the settings.
  • It refuses to start with less than 25 GB free (CI_LOCAL_MIN_FREE_GB).
  • The cluster jobs fetch Zeabur Identity at ZEABUR_IDENTITY_PINNED from ZEABUR_IDENTITY_GIT (default GitHub); point it at a mirror, or set ZEABUR_IDENTITY_SRC to a checkout synced along.

Fixing

Run what the change touches locally (bun run fmt:check, bun run lint, shellcheck, cargo nextest run -p …), then let CI run the rest; see zeabur-workflow.

Version History

  • e6ff195 Current 2026-11-02 08:48

Dependencies

  • suggested zeabur-oss/skills

Same Skill Collection

.claude/skills/zeabur-oss-ci/SKILL.md
.claude/skills/zeabur-oss-cluster-tests/SKILL.md
.claude/skills/zeabur-oss-dependencies/SKILL.md
.claude/skills/zeabur-oss-rust/SKILL.md
.claude/skills/zeabur-oss-spec-work/SKILL.md
.claude/skills/zeabur-oss-workflow/SKILL.md
.claude/skills/zeabur-wording/SKILL.md
.claude/skills/zeabur-writing/SKILL.md
.claude/skills/zeabur-cluster-tests/SKILL.md
.claude/skills/zeabur-dependencies/SKILL.md
.claude/skills/zeabur-dev/SKILL.md
.claude/skills/zeabur-oss-standards/SKILL.md
.claude/skills/zeabur-spec-work/SKILL.md
.claude/skills/zeabur-workflow/SKILL.md

Metadata

Files
0
Version
e6ff195
Hash
db9fb47c
Indexed
2026-11-02 08:48

홈 - 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-03 00:31
浙ICP备14020137号-1