running-coverage
Runs every test suite in the paddler workspace on the fastest available device, and produces code coverage report. Use when the user asks to run the code coverage, or to check the coverage.
소스 정보
- 저장소
- intentee/paddler
- 최근 소스 활동
- 2026년 9월 29일 03:19
- 감지된 SKILL.md 언어
- 영어
- 스타
- 1,685
- 포크
- 97
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
SKILL.md 표시 중
SKILL.md
소스 지침 · 읽기 전용 미리보기- name
- running-coverage
- description
- Runs every test suite in the paddler workspace on the fastest available device, and produces code coverage report. Use when the user asks to run the code coverage, or to check the coverage.
# Running the code coverage
Run every test suite in the workspace, picking the fastest compiled device backend for the host, then report the workspace code coverage.
## Step 1: detect the device
Run this once at the start and echo the chosen device:
```bash
if [[ "$OSTYPE" == "darwin"* ]]; then
DEVICE=metal
elif command -v nvidia-smi >/dev/null 2>&1 && nvidia-smi >/dev/null 2>&1; then
DEVICE=cuda
else
DEVICE=cpu
fi
echo "Device: $DEVICE"
```
`$DEVICE` selects the Paddler binary and the Rust feature set every suite in Step 2 runs against.
## Step 2: run the code coverage
Copy this checklist and tick each item as the suite completes:
```
- [ ] Rust
- [ ] Python client
- [ ] JS client
```
| # | Suite | Command (from the repo root) |
|---|---------------|--------------------------------------------------------|
| 1 | Rust | `TEST_DEVICE=$DEVICE make test.coverage` |
| 2 | Python client | `TEST_DEVICE=$DEVICE make test.client.python.coverage` |
| 3 | JS client | `TEST_DEVICE=$DEVICE make test.client.js.coverage` |
## Step 3: rules during the run
- **Serialize GPU suites.** When `$DEVICE` is `cuda` or `metal`, run test suites sequentially to avoid device contention.
- **Per-test 30 s budget.** Flag any individual test that exceeds 30 s wall-clock. That is a real bug — production or test — not flakiness.
## Step 4: report
After the coverage suite finishes, sum up the results in an actionable report.
GitHub에서 보기