Skip to content

fix(pipeline): validate test file references in exported tasks#11

Merged
alpha1122x merged 2 commits intomainfrom
fix/validate-test-file-references
Feb 17, 2026
Merged

fix(pipeline): validate test file references in exported tasks#11
alpha1122x merged 2 commits intomainfrom
fix/validate-test-file-references

Conversation

@alpha1122x
Copy link
Contributor

Summary

Adds validation that test file paths referenced in fail_to_pass and pass_to_pass commands actually exist in the exported task directory. Previously, test commands could reference files that were never written to disk, causing silent harness failures.

Changes

  • src/swe/pipeline.rs:

    • Track written test file basenames during export_task_to_disk
    • Add validate_test_file_references() that parses shell commands to extract referenced test file paths and warns when they are missing from meta.test_files or the exported tests directory
    • Add extract_test_paths_from_command() helper supporting pytest, unittest (dotted module), jest, vitest, and Java test patterns
    • Add comprehensive unit tests for path extraction and validation logic, including an integration test for export_task_to_disk
  • Dataset fixes: Corrected test commands and workspace configs for several generated tasks where fail_to_pass/pass_to_pass referenced non-existent test files

  • benchmark_validation_report.md / validation_summary.json: Updated validation status reflecting the fixes

…ation

- Fix ep-eaglepoint-ai task: replace TypeScript/Jest tests with Python/pytest
  tests matching the actual repository language
- Fix batocera-linux task: change invalid unittest file-path syntax to pytest
- Add extract_test_paths_from_command() and validate_test_file_references()
  to pipeline.rs for automated test file path validation
- Add 12 unit tests for the new validation functions
- Update validation_summary.json and benchmark_validation_report.md
@alpha1122x alpha1122x merged commit e568907 into main Feb 17, 2026
9 checks passed
@alpha1122x alpha1122x deleted the fix/validate-test-file-references branch February 17, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants