mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2026-10-27 07:52:03 +00:00
- 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]>
25 lines
757 B
Bash
Executable File
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
|