From 0e95866d150e8dd5c5a3073944a40e52b410232f Mon Sep 17 00:00:00 2001 From: dashanji Date: Fri, 1 Sep 2023 14:14:36 +0800 Subject: [PATCH] debug Signed-off-by: dashanji --- .github/workflows/go.yml | 138 ++++++++++-------- test/e2e/banyandb/e2e.yaml | 2 +- test/e2e/oap-agent-adapter-hpa/e2e.yaml | 3 +- test/e2e/oap-satellite-adapter-hpa/e2e.yaml | 3 + .../oap-ui-agent-external-storage/e2e.yaml | 3 +- .../oap-ui-agent-internal-storage/e2e.yaml | 1 - .../e2e.yaml | 3 +- test/e2e/oap-ui-agent-satellite/e2e.yaml | 3 + test/e2e/oap-ui-agent/e2e.yaml | 3 +- test/e2e/oap-ui-swagent-configmap/e2e.yaml | 3 +- test/e2e/oap-ui-swagent/e2e.yaml | 3 +- 11 files changed, 87 insertions(+), 78 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 5c05a3e3..ce12d81e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -34,7 +34,7 @@ jobs: - name: Install Go uses: actions/setup-go@v3 with: - go-version: '1.20' + go-version: 1.19 id: go - name: Check out code into the Go module directory uses: actions/checkout@v3 @@ -49,7 +49,7 @@ jobs: - name: Install Go uses: actions/setup-go@v3 with: - go-version: '1.20' + go-version: 1.19 - name: Check out code into the Go module directory uses: actions/checkout@v3 - name: Build @@ -63,7 +63,7 @@ jobs: - name: Install Go uses: actions/setup-go@v3 with: - go-version: '1.20' + go-version: 1.19 id: go - name: Check out code into the Go module directory uses: actions/checkout@v3 @@ -75,68 +75,69 @@ jobs: name: e2e tests(oap+ui+agent) runs-on: ubuntu-latest steps: - - name: Check out code into the Go module directory - uses: actions/checkout@v3 - - name: free disk space - run: bash .github/free-disk-space.sh - name: Install Go uses: actions/setup-go@v3 with: - go-version: '1.20' + go-version: 1.19 id: go + - name: Check out code into the Go module directory + uses: actions/checkout@v3 - name: Run E2E Test(oap+ui+agent) - uses: apache/skywalking-infra-e2e@main # always prefer to use a revision instead of `main`. + uses: apache/skywalking-infra-e2e@996ed8902e941e2883fcf0ac5b3090364942d205 # always prefer to use a revision instead of `main`. with: e2e-file: test/e2e/oap-ui-agent/e2e.yaml # need to run E2E file path + - name: Setup tmate session + if: ${{ failure() }} + uses: mxschmitt/action-tmate@v3 swagent-e2e-tests: name: e2e tests(oap+ui+swagent) runs-on: ubuntu-latest steps: - - name: Check out code into the Go module directory - uses: actions/checkout@v3 - - name: free disk space - run: bash .github/free-disk-space.sh - name: Install Go uses: actions/setup-go@v3 with: - go-version: '1.20' + go-version: 1.19 id: go + - name: Check out code into the Go module directory + uses: actions/checkout@v3 - name: Run E2E Test(oap+ui+agent) - uses: apache/skywalking-infra-e2e@main + uses: apache/skywalking-infra-e2e@996ed8902e941e2883fcf0ac5b3090364942d205 with: e2e-file: test/e2e/oap-ui-swagent/e2e.yaml + - name: Setup tmate session + if: ${{ failure() }} + uses: mxschmitt/action-tmate@v3 swagent-configmap-e2e-tests: name: e2e tests(oap+ui+swagent+configmap) runs-on: ubuntu-latest steps: - - name: Check out code into the Go module directory - uses: actions/checkout@v3 - - name: free disk space - run: bash .github/free-disk-space.sh - name: Install Go uses: actions/setup-go@v3 with: - go-version: '1.20' + go-version: 1.19 id: go + - name: Check out code into the Go module directory + uses: actions/checkout@v3 - name: Run E2E Test(oap+ui+agent+configmap) - uses: apache/skywalking-infra-e2e@main + uses: apache/skywalking-infra-e2e@996ed8902e941e2883fcf0ac5b3090364942d205 with: e2e-file: test/e2e/oap-ui-swagent-configmap/e2e.yaml + - name: Setup tmate session + if: ${{ failure() }} + uses: mxschmitt/action-tmate@v3 internel-storage-e2e-tests: name: e2e tests(oap+ui+agent+internel-storage) runs-on: ubuntu-latest steps: - - name: Check out code into the Go module directory - uses: actions/checkout@v3 - - name: free disk space - run: bash .github/free-disk-space.sh - name: Install Go uses: actions/setup-go@v3 with: - go-version: '1.20' + go-version: 1.19 id: go + - name: Check out code into the Go module directory + uses: actions/checkout@v3 - name: Run E2E Test - uses: apache/skywalking-infra-e2e@main + uses: apache/skywalking-infra-e2e@996ed8902e941e2883fcf0ac5b3090364942d205 with: e2e-file: test/e2e/oap-ui-agent-internal-storage/e2e.yaml - uses: actions/upload-artifact@v2 @@ -144,109 +145,118 @@ jobs: name: Upload internal Logs with: name: internal-storage-logs - path: "${{ env.SW_INFRA_E2E_LOG_DIR }}" + path: "${{ env.SW_INFRA_E2E_LOG_DIR }}" + - name: Setup tmate session + if: ${{ failure() }} + uses: mxschmitt/action-tmate@v3 external-storage-e2e-tests: name: e2e tests(oap+ui+agent+external-storage) runs-on: ubuntu-latest steps: - - name: Check out code into the Go module directory - uses: actions/checkout@v3 - - name: free disk space - run: bash .github/free-disk-space.sh - name: Install Go uses: actions/setup-go@v3 with: - go-version: '1.20' + go-version: 1.19 id: go + - name: Check out code into the Go module directory + uses: actions/checkout@v3 - name: Run E2E Test - uses: apache/skywalking-infra-e2e@main + uses: apache/skywalking-infra-e2e@996ed8902e941e2883fcf0ac5b3090364942d205 with: e2e-file: test/e2e/oap-ui-agent-external-storage/e2e.yaml + - name: Setup tmate session + if: ${{ failure() }} + uses: mxschmitt/action-tmate@v3 banyandb-e2e-tests: name: e2e tests(oap+ui+agent+banyandb) runs-on: ubuntu-latest steps: - - name: Check out code into the Go module directory - uses: actions/checkout@v3 - - name: free disk space - run: bash .github/free-disk-space.sh - name: Install Go uses: actions/setup-go@v3 with: - go-version: '1.20' + go-version: 1.19 id: go + - name: Check out code into the Go module directory + uses: actions/checkout@v3 - name: Run E2E Test - uses: apache/skywalking-infra-e2e@main + uses: apache/skywalking-infra-e2e@996ed8902e941e2883fcf0ac5b3090364942d205 with: e2e-file: test/e2e/banyandb/e2e.yaml + - name: Setup tmate session + if: ${{ failure() }} + uses: mxschmitt/action-tmate@v3 adapter-hpa-e2e-tests: name: e2e tests(oap+agent+adapter+hpa) runs-on: ubuntu-latest steps: - - name: Check out code into the Go module directory - uses: actions/checkout@v3 - - name: free disk space - run: bash .github/free-disk-space.sh - name: Install Go uses: actions/setup-go@v3 with: - go-version: '1.20' + go-version: 1.19 id: go + - name: Check out code into the Go module directory + uses: actions/checkout@v3 - name: Run E2E Test - uses: apache/skywalking-infra-e2e@main + uses: apache/skywalking-infra-e2e@996ed8902e941e2883fcf0ac5b3090364942d205 with: e2e-file: test/e2e/oap-agent-adapter-hpa/e2e.yaml + - name: Setup tmate session + if: ${{ failure() }} + uses: mxschmitt/action-tmate@v3 e2e-tests-with-satellite: name: e2e tests(oap+ui+agent+satellite) runs-on: ubuntu-latest steps: - - name: Check out code into the Go module directory - uses: actions/checkout@v3 - - name: free disk space - run: bash .github/free-disk-space.sh - name: Install Go uses: actions/setup-go@v3 with: - go-version: '1.20' + go-version: 1.19 id: go + - name: Check out code into the Go module directory + uses: actions/checkout@v3 - name: Run E2E Test - uses: apache/skywalking-infra-e2e@main + uses: apache/skywalking-infra-e2e@996ed8902e941e2883fcf0ac5b3090364942d205 with: e2e-file: test/e2e/oap-ui-agent-satellite/e2e.yaml + - name: Setup tmate session + if: ${{ failure() }} + uses: mxschmitt/action-tmate@v3 adapter-satellite-hpa-e2e-tests: name: e2e tests(oap+agent+satellite+adapter+hpa) runs-on: ubuntu-latest steps: - - name: Check out code into the Go module directory - uses: actions/checkout@v3 - - name: free disk space - run: bash .github/free-disk-space.sh - name: Install Go uses: actions/setup-go@v3 with: - go-version: '1.20' + go-version: 1.19 id: go + - name: Check out code into the Go module directory + uses: actions/checkout@v3 - name: Run E2E Test - uses: apache/skywalking-infra-e2e@main + uses: apache/skywalking-infra-e2e@996ed8902e941e2883fcf0ac5b3090364942d205 with: e2e-file: test/e2e/oap-satellite-adapter-hpa/e2e.yaml + - name: Setup tmate session + if: ${{ failure() }} + uses: mxschmitt/action-tmate@v3 oapserver-configuration-e2e-tests: name: e2e tests(oap+ui+agent+oapserverconfig+oapserverdynamicconfig) runs-on: ubuntu-latest steps: - - name: Check out code into the Go module directory - uses: actions/checkout@v3 - - name: free disk space - run: bash .github/free-disk-space.sh - name: Install Go uses: actions/setup-go@v3 with: - go-version: '1.20' + go-version: 1.19 id: go + - name: Check out code into the Go module directory + uses: actions/checkout@v3 - name: Run E2E Test - uses: apache/skywalking-infra-e2e@main + uses: apache/skywalking-infra-e2e@996ed8902e941e2883fcf0ac5b3090364942d205 with: e2e-file: test/e2e/oap-ui-agent-oapserverconfig-oapserverdynamicconfig/e2e.yaml + - name: Setup tmate session + if: ${{ failure() }} + uses: mxschmitt/action-tmate@v3 checks: name: build runs-on: ubuntu-20.04 diff --git a/test/e2e/banyandb/e2e.yaml b/test/e2e/banyandb/e2e.yaml index 3b95616f..9c9109e2 100644 --- a/test/e2e/banyandb/e2e.yaml +++ b/test/e2e/banyandb/e2e.yaml @@ -84,7 +84,7 @@ setup: timeout: 20m cleanup: - on: always + on: never trigger: action: http diff --git a/test/e2e/oap-agent-adapter-hpa/e2e.yaml b/test/e2e/oap-agent-adapter-hpa/e2e.yaml index 17af5e61..f30e26e3 100644 --- a/test/e2e/oap-agent-adapter-hpa/e2e.yaml +++ b/test/e2e/oap-agent-adapter-hpa/e2e.yaml @@ -76,8 +76,7 @@ setup: timeout: 20m cleanup: - # always never success failure - on: always + on: never trigger: action: http diff --git a/test/e2e/oap-satellite-adapter-hpa/e2e.yaml b/test/e2e/oap-satellite-adapter-hpa/e2e.yaml index d9c5b9a9..7be85a61 100644 --- a/test/e2e/oap-satellite-adapter-hpa/e2e.yaml +++ b/test/e2e/oap-satellite-adapter-hpa/e2e.yaml @@ -82,6 +82,9 @@ setup: port: 12800 timeout: 20m +cleanup: + on: never + trigger: action: http interval: 30s diff --git a/test/e2e/oap-ui-agent-external-storage/e2e.yaml b/test/e2e/oap-ui-agent-external-storage/e2e.yaml index cdc26d42..246f602d 100644 --- a/test/e2e/oap-ui-agent-external-storage/e2e.yaml +++ b/test/e2e/oap-ui-agent-external-storage/e2e.yaml @@ -82,8 +82,7 @@ setup: timeout: 20m cleanup: - # always never success failure - on: always + on: never trigger: action: http diff --git a/test/e2e/oap-ui-agent-internal-storage/e2e.yaml b/test/e2e/oap-ui-agent-internal-storage/e2e.yaml index a19264a6..28a821e4 100644 --- a/test/e2e/oap-ui-agent-internal-storage/e2e.yaml +++ b/test/e2e/oap-ui-agent-internal-storage/e2e.yaml @@ -82,7 +82,6 @@ setup: timeout: 20m cleanup: - # always never success failure on: never trigger: diff --git a/test/e2e/oap-ui-agent-oapserverconfig-oapserverdynamicconfig/e2e.yaml b/test/e2e/oap-ui-agent-oapserverconfig-oapserverdynamicconfig/e2e.yaml index 7385888b..27e32fe1 100644 --- a/test/e2e/oap-ui-agent-oapserverconfig-oapserverdynamicconfig/e2e.yaml +++ b/test/e2e/oap-ui-agent-oapserverconfig-oapserverdynamicconfig/e2e.yaml @@ -96,8 +96,7 @@ setup: timeout: 20m cleanup: - # always never success failure - on: always + on: never trigger: action: http diff --git a/test/e2e/oap-ui-agent-satellite/e2e.yaml b/test/e2e/oap-ui-agent-satellite/e2e.yaml index cf003fdd..716cdf8b 100644 --- a/test/e2e/oap-ui-agent-satellite/e2e.yaml +++ b/test/e2e/oap-ui-agent-satellite/e2e.yaml @@ -74,6 +74,9 @@ setup: port: 80 timeout: 20m +cleanup: + on: never + trigger: action: http interval: 10s diff --git a/test/e2e/oap-ui-agent/e2e.yaml b/test/e2e/oap-ui-agent/e2e.yaml index 8eaee579..90c703e2 100644 --- a/test/e2e/oap-ui-agent/e2e.yaml +++ b/test/e2e/oap-ui-agent/e2e.yaml @@ -72,8 +72,7 @@ setup: timeout: 20m cleanup: - # always never success failure - on: always + on: never trigger: action: http diff --git a/test/e2e/oap-ui-swagent-configmap/e2e.yaml b/test/e2e/oap-ui-swagent-configmap/e2e.yaml index d1586845..b8e9d1ba 100644 --- a/test/e2e/oap-ui-swagent-configmap/e2e.yaml +++ b/test/e2e/oap-ui-swagent-configmap/e2e.yaml @@ -72,8 +72,7 @@ setup: timeout: 20m cleanup: - # always never success failure - on: always + on: never trigger: action: http diff --git a/test/e2e/oap-ui-swagent/e2e.yaml b/test/e2e/oap-ui-swagent/e2e.yaml index 7bc1802b..1217c6b0 100644 --- a/test/e2e/oap-ui-swagent/e2e.yaml +++ b/test/e2e/oap-ui-swagent/e2e.yaml @@ -72,8 +72,7 @@ setup: timeout: 20m cleanup: - # always never success failure - on: always + on: never trigger: action: http