首页/ AI 技能 / @skilllib/skill-2014279417818722306
Skill站外收录 @skilllib/skill-2014279417818722306

dart-ci

提供 Dart项目持续集成故障诊断能力,覆盖 GitHub Actions 流程监控、跨平台构建失败分析(如 macOS ARM64 段错误、FreeBSD RTTI 问题)、缓存效率优化及本地快速复现调试,支撑多操作系统 CI 流程稳定运行。

0.0 (0) 153 次安装 原作者 编程导航
收录于 2026-01-22
开发运维 AI 技能

Skills.MD

# DART CI/CD Troubleshooting Load this skill when debugging CI failures or working with GitHub Actions. ## Quick Commands ```bash # Monitor PR checks gh pr checks <PR_NUMBER> gh pr checks <PR_NUMBER> --watch --interval 30 --fail-fast # View run details gh run list --branch <BRANCH> -e pull_request -L 20 gh run watch <RUN_ID> --interval 30 gh run view <RUN_ID> --json status,conclusion,url # Debug failures gh run view <RUN_ID> --job <JOB_ID> --log-failed gh run view <RUN_ID> --json jobs --jq '.jobs[] | {name, databaseId}' # Rerun failed jobs gh run rerun <RUN_ID> --failed gh run rerun <RUN_ID> --job <DATABASE_ID> ``` ## Full Documentation For complete CI/CD guide: `docs/onboarding/ci-cd.md` ## Common Failure Modes | Failure Type | Solution | | -------------------- | -------------------------------------------------------- | | Formatting fails | `pixi run lint` then push | | Codecov patch fails | Add tests for uncovered lines | | FreeBSD RTTI fails | Use type enums + `static_cast` instead of `dynamic_cast` | | macOS ARM64 SEGFAULT | Replace `alloca()`/VLAs with `std::vector<T>` | | RTD build fails | Use defensive `.get(key, default)` patterns | | gz-physics fails | Reproduce with `pixi run -e gazebo test-gz` | ## Workflow Architecture | Workflow | Purpose | Platforms | | ------------------- | ----------------------- | --------- | | `ci_lint.yml` | Formatting | Ubuntu | | `ci_ubuntu.yml` | Build + test + coverage | Ubuntu | | `ci_macos.yml` | Build + test | macOS | | `ci_windows.yml` | Build + test | Windows | | `ci_freebsd.yml` | Build + test (VM) | FreeBSD | | `ci_gz_physics.yml` | Gazebo integration | Ubuntu | ## Fast Iteration Loop 1. Identify failing step from job logs 2. Reproduce locally with same build toggles 3. Fix the smallest failing test 4. Push and monitor: `gh run watch <RUN_ID>` ## Caching - sccache/ccache reduces build time 50-70% - Check cache hit rates in workflow logs - Force cache bust by changing cache key if needed ## Expected CI Times | Platform | Cached | Uncached | | -------- | --------- | --------- | | Ubuntu | 20-30 min | 45-60 min | | macOS | 15-25 min | 30-45 min | | Windows | 15-20 min | 25-35 min |

评论 0

还没有评论,来抢沙发。