c49fa88b80
* refactor(skills): shipped-set slim — 15 skills to optional, github six-way merge, pdf absorbs OCR+nano-pdf, channel-gated teams pipeline
Maintainer-directed shipped-skills curation (skills index 1,900 -> ~1,400
tok/call on desktop; every session pays the index, so this is a per-call
diet on all installs):
- optional-skills moves (installable via skills hub, history preserved):
creative comfyui/ascii-art/excalidraw/pretext/sketch/touchdesigner-mcp;
ALL of mlops (huggingface-hub, llama-cpp, serving-llms-vllm,
weights-and-biases, evaluating-llms-harness — subcategory structure
kept); research-paper-writing (55 supporting files, 17.3K-tok load);
openhue; blogwatcher (first taught the cronjob monitor-field watch
pattern + web_extract instead of pre-cron manual workflows)
- DELETED session-librarian (Aug-12 'inspired by Perplexity Computer'
port, never maintainer-intended; session_search covers discovery)
- github: six skills (auth, issues, pr-workflow, issue-to-pr,
code-review, repo-management) merged into ONE software-development/
github skill — routing body + complete per-workflow references;
benbarclay authorship credited; codebase-inspection rides along;
discipline pins from test_github_issue_to_pr_skill.py preserved
against the reference body in the new test_github_skill.py
- pdf absorbs ocr-and-documents + nano-pdf as references/ + scripts
(extract_pymupdf, extract_marker converted to the argparse house
standard its contract test enforces)
- NEW session_platforms frontmatter gate (metadata.hermes): hides a
skill from the index on gateway channels it is not for; fail-open on
unknown platform; teams-meeting-pipeline gated to [teams, cron]
- blocked-page-recovery: research -> new web category; trigger-first
description ('Use when a fetch fails: 403/429, paywall, WAF, bot
wall.') so the model actually reaches for it on blocked fetches
- docs regenerated via generate-skill-docs.py (195 pages); related_skills
swept repo-wide; tests: 1672 passed (2 openclaw failures pre-existing
on clean main, Windows-local)
* chore: ignore .skills_prompt_snapshot.json (local index cache, accidentally committed)
4.8 KiB
4.8 KiB
CI Troubleshooting Quick Reference
Common CI failure patterns and how to diagnose them from the logs.
Reading CI Logs
# With gh
gh run view <RUN_ID> --log-failed
# With curl — download and extract
curl -sL -H "Authorization: token $GITHUB_TOKEN" \
https://api.github.com/repos/$GH_OWNER/$GH_REPO/actions/runs/<RUN_ID>/logs \
-o /tmp/ci-logs.zip && unzip -o /tmp/ci-logs.zip -d /tmp/ci-logs
Common Failure Patterns
Test Failures
Signatures in logs:
FAILED tests/test_foo.py::test_bar - AssertionError
E assert 42 == 43
ERROR tests/test_foo.py - ModuleNotFoundError
Diagnosis:
- Find the test file and line number from the traceback
- Use
read_fileto read the failing test - Check if it's a logic error in the code or a stale test assertion
- Look for
ModuleNotFoundError— usually a missing dependency in CI
Common fixes:
- Update assertion to match new expected behavior
- Add missing dependency to requirements.txt / pyproject.toml
- Fix flaky test (add retry, mock external service, fix race condition)
Lint / Formatting Failures
Signatures in logs:
src/auth.py:45:1: E302 expected 2 blank lines, got 1
src/models.py:12:80: E501 line too long (95 > 88 characters)
error: would reformat src/utils.py
Diagnosis:
- Read the specific file:line numbers mentioned
- Check which linter is complaining (flake8, ruff, black, isort, mypy)
Common fixes:
- Run the formatter locally:
black .,isort .,ruff check --fix . - Fix the specific style violation by editing the file
- If using
patch, make sure to match existing indentation style
Type Check Failures (mypy / pyright)
Signatures in logs:
src/api.py:23: error: Argument 1 to "process" has incompatible type "str"; expected "int"
src/models.py:45: error: Missing return statement
Diagnosis:
- Read the file at the mentioned line
- Check the function signature and what's being passed
Common fixes:
- Add type cast or conversion
- Fix the function signature
- Add
# type: ignorecomment as last resort (with explanation)
Build / Compilation Failures
Signatures in logs:
ModuleNotFoundError: No module named 'some_package'
ERROR: Could not find a version that satisfies the requirement foo==1.2.3
npm ERR! Could not resolve dependency
Diagnosis:
- Check requirements.txt / package.json for the missing or incompatible dependency
- Compare local vs CI Python/Node version
Common fixes:
- Add missing dependency to requirements file
- Pin compatible version
- Update lockfile (
pip freeze,npm install)
Permission / Auth Failures
Signatures in logs:
fatal: could not read Username for 'https://github.com': No such device or address
Error: Resource not accessible by integration
403 Forbidden
Diagnosis:
- Check if the workflow needs special permissions (token scopes)
- Check if secrets are configured (missing
GITHUB_TOKENor custom secrets)
Common fixes:
- Add
permissions:block to workflow YAML - Verify secrets exist:
gh secret listor check repo settings - For fork PRs: some secrets aren't available by design
Timeout Failures
Signatures in logs:
Error: The operation was canceled.
The job running on runner ... has exceeded the maximum execution time
Diagnosis:
- Check which step timed out
- Look for infinite loops, hung processes, or slow network calls
Common fixes:
- Add timeout to the specific step:
timeout-minutes: 10 - Fix the underlying performance issue
- Split into parallel jobs
Docker / Container Failures
Signatures in logs:
docker: Error response from daemon
failed to solve: ... not found
COPY failed: file not found in build context
Diagnosis:
- Check Dockerfile for the failing step
- Verify the referenced files exist in the repo
Common fixes:
- Fix path in COPY/ADD command
- Update base image tag
- Add missing file to
.dockerignoreexclusion or remove from it
Auto-Fix Decision Tree
CI Failed
├── Test failure
│ ├── Assertion mismatch → update test or fix logic
│ └── Import/module error → add dependency
├── Lint failure → run formatter, fix style
├── Type error → fix types
├── Build failure
│ ├── Missing dep → add to requirements
│ └── Version conflict → update pins
├── Permission error → update workflow permissions (needs user)
└── Timeout → investigate perf (may need user input)
Re-running After Fix
git add <fixed_files> && git commit -m "fix: resolve CI failure" && git push
# Then monitor
gh pr checks --watch 2>/dev/null || \
echo "Poll with: curl -s -H 'Authorization: token ...' https://api.github.com/repos/.../commits/$(git rev-parse HEAD)/status"