mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-28 05:34:02 +00:00
fix(ci): use shell timeouts in composite actions
Signed-off-by: evenyag <realevenyag@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user