CI/CD Debugging Skill
Pipeline Architecture
.github/workflows/pr-validation.yml— PR validation (fmt, clippy, audit, test, build_and_docs, report-status).github/workflows/ci.yml— Workflow validation (actionlint, report-status).github/actions/ci-issue-manager/— Auto-creates issues on CI failurescripts/workflow-agent.ts— Runs CI jobs locally for pre-PR validationscripts/check-todos.ts— Verifies task-state TODOs
CI Failure Diagnosis Flow
- Check which job failed (fmt, clippy, audit, test, build_and_docs)
- Read the error block from the CI issue or workflow logs
- Common failures:
- Type inference:
as_ref()ambiguity onVec<u8>→ useas_slice() - Benchmark compilation:
Arc::new(GlobalBlockCache::new())→ double Arc - API mismatch:
scan_rangeparameter changes - Formatting:
cargo fmtnot run before commit
- Type inference:
- Fix →
cargo test --all-features→cargo clippy --all-targets --all-features - Run
npx tsx scripts/workflow-agent.ts .github/workflows/ci.ymlto validate
Local Pre-PR Validation
npx tsx scripts/check-todos.ts .task-state.json # verify TODOs
npx tsx scripts/workflow-agent.ts .github/workflows/ci.yml # run CI locally
Source: ElioNeto/ApexStore — distributed by TomeVault.