run-tests
Skill288 starsChanged 11 months agoMITView on GitHub
Run problem tests using eval-snapshot instead of raw pytest. Use this to evaluate solutions against benchmark tests in Docker. Invoke with /run-tests <snapshot_path> <problem_name> <checkpoint_index>.
48 other projects use a version of this.
Adopted by
Most recently taken up by
- utopia-rise/fmod-gdextensiontheir own version, first seen Nov 9, 2026
- Pubx-ai/skillstheir own version, first seen Nov 8, 2026
- coralogix/cx-clitheir own version, first seen Nov 8, 2026
- DataDog/dd-trace-pytheir own version, first seen Nov 1, 2026
- busycaesar/Harnesstheir own version, first seen Nov 1, 2026
- NumericalEarth/Breeze.jltheir own version, first seen Oct 17, 2026
Used with
Projects with it also use prepare-release, create-pr and 3 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
ShopifySkillprepare-release
Prepare the changeset-release/main branch for release by syncing version.ts files and running pnpm install
Also in 3 projects that use this
SentrySkillcreate-pr
Create pull requests following Sentry conventions. Use when opening PRs, writing PR descriptions, or preparing changes for review. Follows Sentry's code review guidelines.
Also in 4 projects that use this
SentrySkillcommit
Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.
Also in 4 projects that use this
MicrosoftSkillrelease
Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).
Also in 5 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 5 projects that use this
Other versions48 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 48
- netbox-community/netbox★ 22ksame name
- yagop/node-telegram-bot-api★ 9.2ksame name
- gitextensions/gitextensions★ 8.6ksame name
- ethereum/consensus-specs★ 4ksame name
- dotnet/sdk★ 3.2ksame name
- ComplianceAsCode/content★ 2.8ksame name
- idaholab/moose★ 2.4ksame name
- CliMA/Oceananigans.jl★ 1.4ksame name
- microsoft/testfx★ 1.1ksame name
- serenedb/serenedb★ 965same name
38 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- audit-specSkill
- edge-casesSkill
- fix-solutionSkill
- reclassify-testsSkill
- test-ambiguity-detectorSkill
- validate-runSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 44 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Run benchmark problem tests using the eval-snapshot command instead of raw pytest.
- Very specific: line 178
Check evaluation.log for details
- Distinctive: line 185
Test files missing from problem directory
- Distinctive: line 189
Default timeout is 180s per test.
- Very specific: line 195
Always use eval-snapshot instead of raw pytest for benchmark problems
- Very specific: line 198
Use --json flag to get machine-readable output
“Common” is measured: kept by at least 6 in 10 of the 44 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Run Tests
Run benchmark problem tests using the eval-snapshot command instead of raw pytest. This ensures tests run in the correct Docker environment with proper isolation.
Usage: /run-tests <snapshot_path> <problem_name> <checkpoint_index>
Example: /run-tests outputs/run_001/submissions/file_backup/checkpoint_2/snapshot file_backup checkpoint_2
Command
slop-code --quiet eval-snapshot {snapshot_path} \
-p {problem_name} \
-c {checkpoint_index} \
-e configs/environments/docker-python3.12-uv.yaml \
-o /tmp/eval-output \
--jsonParameters:
snapshot_path: Path to the solution directory to testproblem_name: Name of the problem (e.g.,file_backup,execution_server)checkpoint_index: Checkpoint to evaluate (e.g.,checkpoint_1,checkpoint_2)
Output Location
Results are saved to the output directory (/tmp/eval-output by default):
/tmp/eval-output/
├── evaluation.json # Structured test results
├── evaluation.log # Detailed execution log
└── quality_analysis/ # Code quality metrics
├── ast_grep.jsonl # AST-grep rule matches
├── files.jsonl # File-level metrics
├── overall_quality.json # Aggregated quality scores
└── symbols.jsonl # Symbol/function metricsReading Results
evaluation.json Structure
{
"problem_name": "eve_industry",
"checkpoint_name": "checkpoint_3",
"duration": 34.71,
"entrypoint": "uv run industry.py",
"tests": [
{
"id": "test_naga",
"checkpoint": "checkpoint_1",
"group_type": "Regression",
"status": "passed",
"duration_ms": 1029.27,
"file_path": ".evaluation_tests/test_checkpoint_1.py"
}
],
"pass_counts": {
"Regression": 25,
"Core": 5,
"Functionality": 5
},
"total_counts": {
"Regression": 26,
"Core": 5,
"Functionality": 5
},
"pytest_exit_code": 1,
"pytest_collected": 36,
"infrastructure_failure": false
}Key Fields
| Field | Description |
tests | Array of individual test results |
pass_counts | Passed tests by group type |
total_counts | Total tests by group type |
pytest_exit_code | 0 = all passed, 1 = some failed |
infrastructure_failure | True if environment setup failed |
Test Group Types
| Group | Description |
Core | Must pass for checkpoint to pass |
Functionality | Additional coverage (optional) |
Regression | Tests from prior checkpoints |
Error | Error handling tests |
Interpreting Results
Quick Summary
# Parse with jq to get summary
cat /tmp/eval-output/evaluation.json | jq '{
passed: .pass_counts,
total: .total_counts,
exit_code: .pytest_exit_code
}'Finding Failed Tests
# List failed tests
cat /tmp/eval-output/evaluation.json | jq '.tests[] | select(.status == "failed") | .id'Check Pass/Fail by Group
# Core tests (must all pass)
cat /tmp/eval-output/evaluation.json | jq '.pass_counts.Core == .total_counts.Core'Common Workflows
Run and Check Status
slop-code --quiet eval-snapshot ./snapshot \
-p file_backup -c checkpoint_1 \
-e configs/environments/docker-python3.12-uv.yaml \
-o /tmp/eval-output --json
# Check if passed
if [ $(cat /tmp/eval-output/evaluation.json | jq '.pytest_exit_code') -eq 0 ]; then
echo "All tests passed!"
else
echo "Some tests failed"
cat /tmp/eval-output/evaluation.json | jq '.tests[] | select(.status == "failed")'
fiRun Multiple Checkpoints
for checkpoint in checkpoint_1 checkpoint_2 checkpoint_3; do
echo "=== $checkpoint ==="
slop-code --quiet eval-snapshot ./submissions/$checkpoint/snapshot \
-p my_problem -c $checkpoint \
-e configs/environments/docker-python3.12-uv.yaml \
-o /tmp/eval-$checkpoint --json
cat /tmp/eval-$checkpoint/evaluation.json | jq '.pass_counts'
doneTroubleshooting
Infrastructure Failure
If infrastructure_failure: true:
- Docker may not be running
- Image build failed
- Check
evaluation.logfor details
Tests Not Found
If pytest_collected: 0:
- Problem name may be wrong
- Checkpoint doesn't exist
- Test files missing from problem directory
Timeout Issues
Default timeout is 180s per test. For long-running tests, this is controlled in the problem's pytest config.
Notes
- Always use
eval-snapshotinstead of raw pytest for benchmark problems - Tests run in isolated Docker containers
- Results include both correctness and quality metrics
- Use
--jsonflag to get machine-readable output - The
-oflag specifies where to save results
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

