WIP: Migrate to using taskfile #187
2 changed files with 9 additions and 1 deletions
Upload logs instead of printing them
commit
c7507a3e7a
8
.github/workflows/e2e.yml
vendored
8
.github/workflows/e2e.yml
vendored
|
|
@ -58,6 +58,14 @@ jobs:
|
||||||
|
|
||||||
exit $EXIT_CODE
|
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
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: scripts/clean-up.sh
|
run: scripts/clean-up.sh
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ for i in $(seq 1 $process_count); do
|
||||||
echo "Started process $i with PID: $pid"
|
echo "Started process $i with PID: $pid"
|
||||||
|
|
||||||
# Read from pipe, prefix with 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
|
done
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue