Files
SeedPass/run_flake_tests.sh
T
google-labs-jules[bot]andPR0M3TH3AN 228cdee71e chore: Daily ci-health-agent execution
- Executed daily scheduler logic for ci-health-agent.
- Generated flake report artifacts/ci-flakes-<date>.md
- Updated context, decisions, test_logs, and todo.
- Recorded memory retrieve/store artifacts.
- Created task completion log.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-28 01:51:47 +00:00

25 lines
757 B
Bash
Executable File

#!/bin/bash
set -e
mkdir -p artifacts
echo "# Flaky Tests Report" > artifacts/ci-flakes-$(date +%Y%M%d).md
flake_found=0
for i in {1..3}; do
echo "Running test loop $i..."
if ! PYTHONPATH=src python3 -m pytest src/tests/ > test_loop_$i.log 2>&1; then
echo "Test failed on loop $i! See test_loop_$i.log"
echo "## Loop $i Failure" >> artifacts/ci-flakes-$(date +%Y%M%d).md
echo "\`\`\`" >> artifacts/ci-flakes-$(date +%Y%M%d).md
cat test_loop_$i.log >> artifacts/ci-flakes-$(date +%Y%M%d).md
echo "\`\`\`" >> artifacts/ci-flakes-$(date +%Y%M%d).md
flake_found=1
else
echo "Loop $i passed."
fi
done
if [ $flake_found -eq 0 ]; then
echo "No flaky tests detected in 3 loops." >> artifacts/ci-flakes-$(date +%Y%M%d).md
fi