Skip to content

test_failure_handler improvements #154

Open
@soxofaan

Description

@soxofaan

if grep -q "FAILED" qa/benchmarks/pytest_output.txt; then
python qa/tools/apex_algorithm_qa_tools/test_failure_handler.py
else
echo "No test failures detected"
fi

Why doing this "FAILED" grep in bash, which makes things more error prone and harder to maintain. I would just do the "FAIL" detection directly in test_failure_handler.py.

Also: I would pass the pytest_output.txt path explicitly to the test_failure_handler.py script instead of brittle hardcoding of a relative path it in the script:

log_file = Path("qa/benchmarks/pytest_output.txt")

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions