Repository navigation
feat(tools/skill-evals): add --fail-fast flag to stop on first failure - #408
Merged
Merged
Conversation
Why: Large skill-evals suites can take minutes to surface a single failure because the harness runs the full suite. The --fail-fast flag (already supported by pytest and prek) stops execution after the first FAIL or ERROR in --cli mode, matching user expectations and reducing feedback latency. Fixes apache#376
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why: Large skill-evals suites can take minutes to surface a single failure because the harness runs the full suite. The --fail-fast flag (already supported by pytest and prek) stops execution after the first FAIL or ERROR in --cli mode, matching user expectations and reducing feedback latency.
Summary
What changed: Added --fail-fast flag support to stop test execution after the first failure or error.
This is a quality-of-life improvement for developers running tests locally or in CI/CD pipelines, allowing faster iteration when debugging test failures.
Type of change
.claude/skills/<name>/) — eval fixtures updated belowtools/<system>/*.md)tools/*/withpyproject.toml)docs/,README.md,CONTRIBUTING.md)projects/_template/)prek, workflows, validators)Test plan
prek run --all-filespassesuv run pytest/ruff check/mypypasses(
PYTHONPATH=tools/skill-evals/src python3 -m skill_evals.runner tools/skill-evals/evals/<skill>/)(a regression test for the bug fixed / the behaviour added — see CONTRIBUTING.md)
--fail-fastflag stops on first failure or error and also made sure next case wasn't calledRFC-AI-0004 compliance
<PROJECT>,<tracker>,<upstream>,<security-list>) used in all skill / tool prose (thecheck-placeholdersprek hook is the mechanical gate)Linked issues
Closes #376
Notes for reviewers (optional)
Validation reports several pre-existing SOFT warnings in unrelated skills (
security-issue-import-via-forwarderandsetup-isolated-setup-doctor). These are outside the scope of this PR and were not addressed as part of the--fail-fastchange.I also encountered a validation issue related to
tools/vulnogram/README.md, which appears unrelated to the changes in this PR.