Skip to content

Commit

Permalink
ci: 👷 add step times to CI summary
Browse files Browse the repository at this point in the history
  • Loading branch information
DistributedDoge committed Jan 14, 2024
1 parent 66f0076 commit e94a17f
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,20 @@ jobs:
- name: Run
run: |
make run
make run 2>&1 | tee dagster.log
- name: Extract Step Execution time from logs
run: |
echo "Dagster step timings:" >> $GITHUB_STEP_SUMMARY
echo "Step Name | Execution Time" >> $GITHUB_STEP_SUMMARY
echo "-----------|----------------" >> $GITHUB_STEP_SUMMARY
while IFS= read -r line; do
if [[ $line == *"STEP_SUCCESS"* ]]; then
step_name=$(echo "$line" | awk -F' - ' '{print $7}')
exec_time=$(echo "$line" | awk -F' - ' '{split($9,a," "); print a[7]}')
echo "$step_name | $exec_time" >> $GITHUB_STEP_SUMMARY
fi
done < dagster.log
- name: Export Database and Log File Sizes
run: |
Expand Down

0 comments on commit e94a17f

Please sign in to comment.