Skip to main content

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.

Informações da origem

Repositório
intentee/paddler
Última atividade na origem
29 de setembro de 2026 às 03:19
Idioma detectado do SKILL.md
inglês
Estrelas
1.677
Forks
98

Opções de instalação

Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.

Revise os arquivos de origem

Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.

Exibindo SKILL.md

SKILL.md
Instruções da origem · Visualização somente leitura
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.
Ver no GitHub