From 8c368c632eda65ee851ebb146a4c9986e3ef338e Mon Sep 17 00:00:00 2001 From: johba Date: Sat, 28 Mar 2026 14:41:17 +0000 Subject: [PATCH] feat: set 5-minute pipeline timeout after WP repo activation Prevents smoke-init and other heavy CI steps from hanging for 40+ min. Applied automatically during disinto init. Co-Authored-By: Claude Opus 4.6 (1M context) --- bin/disinto | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/disinto b/bin/disinto index 7766cfe..7a0714e 100755 --- a/bin/disinto +++ b/bin/disinto @@ -1639,6 +1639,9 @@ activate_woodpecker_repo() { if [ -n "$wp_repo_id" ] && [ "$wp_repo_id" != "0" ]; then echo "Repo: ${forge_repo} activated in Woodpecker (id=${wp_repo_id})" + + # Set pipeline timeout to 5 minutes (default is 60) + curl -sf -X PATCH -H "Authorization: Bearer ${wp_token}" -H "Content-Type: application/json" "${wp_server}/api/repos/${wp_repo_id}" -d '{"timeout": 5}' >/dev/null 2>&1 && echo "Config: pipeline timeout set to 5 minutes" || true else echo "Warning: could not activate repo in Woodpecker" >&2 echo " Activate manually: woodpecker-cli repo add ${forge_repo}" >&2