Skip to content

feat(tools/skill-evals): add --fail-fast flag to stop on first failure - #408

Merged
potiuk merged 2 commits into
apache:mainfrom
Aayushhumai:add-fail-fast-flag
May 31, 2026
Merged

potiuk merged 2 commits into
apache:mainfrom
Aayushhumai:add-fail-fast-flag

Conversation

@Aayushhumai

Copy link
Copy Markdown
Contributor

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

  • Skill change (.claude/skills/<name>/) — eval fixtures updated below
  • Tool / bridge contract (tools/<system>/*.md)
  • Python package (tools/*/ with pyproject.toml)
  • Groovy reference impl
  • Cross-cutting (RFC, AGENTS.md, sandbox, privacy-LLM)
  • Documentation (docs/, README.md, CONTRIBUTING.md)
  • Project template (projects/_template/)
  • CI / dev loop (prek, workflows, validators)
  • Other:

Test plan

  • prek run --all-files passes
  • For Python packages touched: uv run pytest / ruff check / mypy passes
  • For Groovy bridges touched: command-line invocation tested end-to-end
  • For skill changes: eval suite passes for the affected skill
    (PYTHONPATH=tools/skill-evals/src python3 -m skill_evals.runner tools/skill-evals/evals/<skill>/)
  • For skill behaviour changes: a new or updated eval fixture is included in this PR
    (a regression test for the bug fixed / the behaviour added — see CONTRIBUTING.md)
  • Other:- Manual testing: --fail-fast flag stops on first failure or error and also made sure next case wasn't called

RFC-AI-0004 compliance

  • HITL — any new mutation is gated on explicit user confirmation
  • Sandbox — no new unrestricted host access; network reach declared in the adapter
  • Vendor neutrality — placeholders (<PROJECT>, <tracker>, <upstream>, <security-list>) used in all skill / tool prose (the check-placeholders prek hook is the mechanical gate)
  • Conversational + correctable — agentic-override path documented if behaviour is adopter-tunable
  • Write-access discipline — no autonomous outbound messages; drafts only, sent on confirmation
  • Privacy LLM — private content does not reach a non-approved LLM; redactor invoked where needed

Linked issues

Closes #376

Notes for reviewers (optional)

Validation reports several pre-existing SOFT warnings in unrelated skills (security-issue-import-via-forwarder and setup-isolated-setup-doctor). These are outside the scope of this PR and were not addressed as part of the --fail-fast change.

I also encountered a validation issue related to tools/vulnogram/README.md, which appears unrelated to the changes in this PR.

Aayushhumai and others added 2 commits May 31, 2026 13:17
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

@potiuk potiuk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@potiuk
potiuk merged commit a316f73 into apache:main May 31, 2026
16 checks passed
@potiuk potiuk added the substrate:framework-dev Tool substrate: build / validate / eval the framework itself label Sep 25, 2026
@potiuk potiuk added the family:tools tools/* label Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

family:tools tools/* substrate:framework-dev Tool substrate: build / validate / eval the framework itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add --fail-fast to stop skill-evals --cli at the first FAIL or ERROR

2 participants