Skip to content

Commit

Permalink
ci: set a timeout for each mkosi stage
Browse files Browse the repository at this point in the history
  • Loading branch information
mrc0mmand committed Aug 5, 2022
1 parent 8225098 commit e74e5b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/run_mkosi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ln -s /dev/null "$TEMP_EXTRA_TREE/etc/systemd/system/isc-dhcp-server6.service"

for ((i = 0; i < 5; i++)); do
EC=0
(sudo python3 -m mkosi --extra-tree="$TEMP_EXTRA_TREE" "$@") |& tee "$TEMPFILE" || EC=$?
(sudo timeout -k 30 10m -- python3 -m mkosi --extra-tree="$TEMP_EXTRA_TREE" "$@") |& tee "$TEMPFILE" || EC=$?
if [[ $EC -eq 0 ]]; then
# The command passed — let's return immediately
break
Expand Down

0 comments on commit e74e5b9

Please sign in to comment.