From a7780b165503c02c4c23b44cbd39a336d073620b Mon Sep 17 00:00:00 2001 From: WenyXu Date: Tue, 21 May 2024 02:56:14 +0000 Subject: [PATCH 1/2] chore(ci): export kind logs --- .github/actions/sqlness-test/action.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/actions/sqlness-test/action.yml b/.github/actions/sqlness-test/action.yml index 28d58902a6ba..afc9ef8ad31f 100644 --- a/.github/actions/sqlness-test/action.yml +++ b/.github/actions/sqlness-test/action.yml @@ -57,3 +57,14 @@ runs: AWS_SECRET_ACCESS_KEY: ${{ inputs.aws-secret-access-key }} run: | aws s3 rm s3://${{ inputs.aws-ci-test-bucket }}/${{ inputs.data-root }} --recursive + - name: Export kind logs + if: failure() + shell: bash + run: kind export logs -n greptimedb-operator-e2e /tmp/kind + - name: Upload logs + if: failure() + uses: actions/upload-artifact@v4 + with: + name: kind-logs + path: /tmp/kind + retention-days: 3 \ No newline at end of file From 93ac27ca06ef565ebd4710fa8c900bd34d90918a Mon Sep 17 00:00:00 2001 From: WenyXu Date: Tue, 21 May 2024 08:45:11 +0000 Subject: [PATCH 2/2] chore: add empty line --- .github/actions/sqlness-test/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/sqlness-test/action.yml b/.github/actions/sqlness-test/action.yml index afc9ef8ad31f..9764f03a846e 100644 --- a/.github/actions/sqlness-test/action.yml +++ b/.github/actions/sqlness-test/action.yml @@ -67,4 +67,4 @@ runs: with: name: kind-logs path: /tmp/kind - retention-days: 3 \ No newline at end of file + retention-days: 3