Upload logs instead of printing them

This commit is contained in:
Andras Schmelczer 2025-12-14 11:47:47 +00:00
parent 4fb3839b3e
commit 42a77a5cd5
2 changed files with 9 additions and 1 deletions

View file

@ -58,6 +58,14 @@ jobs:
exit $EXIT_CODE
- name: Upload e2e logs
if: always()
uses: actions/upload-artifact@v4
with:
name: e2e-logs
path: logs/
retention-days: 30
- name: Cleanup
if: always()
run: scripts/clean-up.sh

View file

@ -51,7 +51,7 @@ for i in $(seq 1 $process_count); do
echo "Started process $i with PID: $pid"
# Read from pipe, prefix with PID
(sed "s/^/[PID $pid] /" < "$pipe" | tee "../logs/log_${i}.log"; rm "$pipe") &
(sed "s/^/[PID $pid] /" < "$pipe" > "../logs/log_${i}.log"; rm "$pipe") &
done
cd ..