From 0003661bf3ca60fe70baf0670307ac4daaa57eef Mon Sep 17 00:00:00 2001 From: evenyag Date: Fri, 13 Nov 2026 14:54:55 +0800 Subject: [PATCH] fix(ci): use shell timeouts in composite actions Signed-off-by: evenyag --- .github/actions/deploy-greptimedb/action.yml | 4 ++-- .github/actions/sqlness-test/action.yml | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/actions/deploy-greptimedb/action.yml b/.github/actions/deploy-greptimedb/action.yml index 66019c38cb2..634cae85dcd 100644 --- a/.github/actions/deploy-greptimedb/action.yml +++ b/.github/actions/deploy-greptimedb/action.yml @@ -26,7 +26,6 @@ runs: run: sudo sysctl -w fs.inotify.max_user_instances=1280 fs.inotify.max_user_watches=655360 - name: Deploy GreptimeDB by Helm - timeout-minutes: 30 shell: bash env: DATA_ROOT: ${{ inputs.data-root }} @@ -35,4 +34,5 @@ runs: AWS_ACCESS_KEY_ID: ${{ inputs.aws-access-key-id }} AWS_SECRET_ACCESS_KEY: ${{ inputs.aws-secret-access-key }} run: | - ./.github/scripts/deploy-greptimedb.sh + # Composite steps do not support timeout-minutes. + timeout --kill-after=30s 30m ./.github/scripts/deploy-greptimedb.sh diff --git a/.github/actions/sqlness-test/action.yml b/.github/actions/sqlness-test/action.yml index 4ba0c53c8d3..255a175f7a0 100644 --- a/.github/actions/sqlness-test/action.yml +++ b/.github/actions/sqlness-test/action.yml @@ -59,14 +59,16 @@ runs: aws s3 rm s3://${{ inputs.aws-ci-test-bucket }}/${{ inputs.data-root }} --recursive - name: Export kind logs if: failure() || cancelled() - timeout-minutes: 5 shell: bash run: | + # Bound the entire collection while leaving the upload step available. + timeout --kill-after=30s 5m bash -e -o pipefail <<'EOF' mkdir -p /tmp/kind kubectl --request-timeout=30s get pods -A -o wide > /tmp/kind/pods.txt 2>&1 || true kubectl --request-timeout=30s get events -A --sort-by=.metadata.creationTimestamp > /tmp/kind/events.txt 2>&1 || true kubectl --request-timeout=30s describe pods -A > /tmp/kind/pod-descriptions.txt 2>&1 || true kind export logs /tmp/kind + EOF - name: Upload logs if: failure() || cancelled() uses: actions/upload-artifact@v4