Skip to content

Intelligent Test Prioritization Engine for Fail-Fast Feedback #459

@github-actions

Description

@github-actions

Strategic Improvement

Execute tests in smart order based on file changes and historical failure patterns, running high-risk tests first. When tests fail, pipeline aborts in minutes instead of completing full suite. Saves 30-50% of test execution time on failing runs, improves feedback speed, reduces wasted iterations.

Acceptance Criteria

  • Test-to-file dependency mapping (which tests cover which source files)
  • Historical test failure rate tracking stored in memory system
  • Smart test ordering algorithm: prioritize tests covering changed files + high historical failure rate
  • Fast-fail mode: abort test execution on first failure for rapid feedback
  • Configurable via daemon-config.json (enable_test_prioritization, fast_fail_mode)
  • Dashboard metrics showing test execution time savings from prioritization
  • Documentation in CLAUDE.md under build loop and intelligence sections

Context

  • Priority: P0
  • Complexity: standard
  • Generated by: Strategic Intelligence Agent
  • Strategy alignment: P0: Reliability & Success Rate

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-patrolCreated by autonomous patrol agentsready-to-buildIssue is ready for autonomous pipeline processingstrategicCreated by strategic intelligence agent

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions