Skip to main content

debug-ci

Use when CI/CD pipeline fails. Provides systematic diagnosis for lint, type, test, and build failures across Python, TypeScript, Java, Rust, and n8n SDKs.

소스 정보

저장소
open-metadata/ai-sdk
최근 소스 활동
2026년 2월 25일 08:44
감지된 SKILL.md 언어
영어
스타
15
포크
4

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
debug-ci
description
Use when CI/CD pipeline fails. Provides systematic diagnosis for lint, type, test, and build failures across Python, TypeScript, Java, Rust, and n8n SDKs.
# Debug CI Failures Systematically diagnose and fix CI failures across all SDKs. ## Usage ``` /debug-ci [workflow-url] ``` ## Diagnosis Process ### 1. Identify the Failing Job Check the CI summary to identify which SDK(s) failed: - Rust CLI - Python SDK - TypeScript SDK - Java SDK - n8n Node ### 2. Categorize the Failure | Category | Symptoms | Common Causes | |----------|----------|---------------| | **Lint** | "cargo fmt", "ruff", "eslint", "spotless" errors | Code not formatted, style violations | | **Type** | "ty", "tsc", "clippy" errors | Type mismatches, missing types | | **Test** | "pytest", "vitest", "mvn test", "cargo test" failures | Logic bugs, missing mocks, flaky tests | | **Build** | Compilation errors | Syntax errors, missing dependencies | | **Integration** | Timeout, 401, 404 errors | Credentials, network, API changes | ### 3. Fix by Category #### Lint Failures ```bash # Fix all formatting/linting make format # Then verify make lint ``` #### Type Failures (Python) ```bash cd python && ty check src tests ``` #### Test Failures ```bash # Run specific SDK tests locally cd <sdk> && <test-command> # Run with verbose output pytest -v --tb=long # Python npm test -- --reporter=verbose # TypeScript mvn test -X # Java cargo test -- --nocapture # Rust ``` #### Build Failures - Check for syntax errors in recent changes - Verify dependencies are installed - Check for version mismatches ### 4. Verify Fix ```bash # Run the same checks CI runs make lint make test-all ``` ## Common CI Issues ### Python | Error | Fix | |-------|-----| | `ruff check` fails | `cd python && ruff check --fix src tests` | | `ruff format` fails | `cd python && ruff format src tests` | | Import errors | Check `__init__.py` exports | | pytest collection error | Check for syntax errors in test files | ### TypeScript | Error | Fix | |-------|-----| | ESLint errors | `cd typescript && npm run lint -- --fix` | | Type errors | Fix type annotations, check `models.ts` | | Module not found | `npm ci` to reinstall deps | ### Java | Error | Fix | |-------|-----| | Spotless check fails | `cd java && mvn spotless:apply` | | Compilation error | Check Java 11 compatibility | | Test failure | Check mocks, Jackson annotations | ### Rust | Error | Fix | |-------|-----| | `cargo fmt` fails | `cd cli && cargo fmt` | | Clippy warnings | Fix the warning or add `#[allow(...)]` with justification | | Test failure | Check assertions, mock responses | ### n8n | Error | Fix | |-------|-----| | ESLint errors | `cd n8n-nodes-metadata && npm run lint:fix` | | Build error | Rebuild TypeScript SDK first: `cd typescript && npm run build` | ## After Fixing 1. Run `make lint && make test-all` locally 2. Commit with descriptive message 3. Push and verify CI passes
GitHub에서 보기