AgentSkillsCN

ci-failure-triage

针对本仓库的CI失败进行分类处理,重点关注azure-pipelines.yml中的Azure流水线。在依赖项安装、单元测试/覆盖率、Docker Compose配置,或Helm模板渲染出现验证失败时使用。

SKILL.md
--- frontmatter
name: ci-failure-triage
description: Triage CI failures for this repository, with focus on the Azure pipeline in azure-pipelines.yml. Use when validation jobs fail in dependency install, unit tests/coverage, docker compose config, or helm template rendering.
license: MIT

CI Failure Triage

When to Use This Skill

Use when pipeline runs fail or when pre-merge checks are unstable.

Primary target in this repository:

  • azure-pipelines.yml stage/job: Validate / node_api_validation

Triage Workflow

  1. Identify the failed step and error signature.
  2. Reproduce locally with the same command.
  3. Classify root cause and apply minimal fix.
  4. Re-run affected checks and ensure no regressions.
  5. Update root README.md if workflow expectations changed.

Step-Specific Playbook

  • Install dependencies (npm ci):

    • Verify lockfile is committed and in sync.
    • Check Node version mismatch and registry/network issues.
  • Unit tests with coverage (npm test ...coverageReporters...):

    • Fix failing tests first, then coverage thresholds.
    • Avoid weakening thresholds unless explicitly required.
  • Compose validation (docker compose config):

    • Check YAML syntax and service field consistency.
    • Validate command/healthcheck entries.
  • Helm render (helm template ...):

    • Check template/values key mismatches.
    • Validate selectors, ports, probes, and required values.

See CI failure signatures for common patterns and remediations.