|
| 1 | +name: Performance tests |
| 2 | + |
| 3 | +on: |
| 4 | + release: |
| 5 | + types: [ created ] |
| 6 | +env: |
| 7 | + YC_LT_FOLDER_ID: b1gacohsvc2kc4d76tu5 |
| 8 | + YC_LT_AUTHORIZED_KEY_JSON: ${{ secrets.YC_LOADTESTING_CI_AUTHORIZED_KEY_JSON }} |
| 9 | + YC_LT_TEST_AGENT_FILTER: "name = 'agent-pandora-perf-medium'" |
| 10 | + YC_LT_TEST_EXTRA_DESCRIPTION: "GitHub Actions workflow - ${{github.run_id}}" |
| 11 | + YC_LT_SKIP_TEST_CHECK: "1" |
| 12 | + YC_LT_DATA_BUCKET: ${{ secrets.YC_LT_DATA_BUCKET }} |
| 13 | + YC_LT_OUTPUT_DIR: ${{github.workspace}}/performance-test/output |
| 14 | + |
| 15 | +jobs: |
| 16 | + build-and-upload: |
| 17 | + runs-on: ubuntu-latest |
| 18 | + steps: |
| 19 | + - uses: actions/checkout@v4 |
| 20 | + - uses: ./.github/actions/setup-yc |
| 21 | + - name: Install Go |
| 22 | + uses: actions/setup-go@v3 |
| 23 | + with: |
| 24 | + go-version: 1.21.x |
| 25 | + cache: true |
| 26 | + - name: Test |
| 27 | + run: go test -race -covermode atomic ./... |
| 28 | + - name: Build |
| 29 | + run: | |
| 30 | + export GOOS=linux |
| 31 | + export CGO_ENABLED=0 |
| 32 | + go build -o pandora_perf_2 |
| 33 | + - name: Upload |
| 34 | + run: | |
| 35 | + source performance-test/automation/_functions.sh && source performance-test/automation/_variables.sh; yc_s3_upload ./pandora_perf_2 pandora-perf ${YC_LT_DATA_BUCKET} |
| 36 | +
|
| 37 | + test-pandora-perf: |
| 38 | + needs: [ build-and-upload ] |
| 39 | + runs-on: ubuntu-latest |
| 40 | + concurrency: { group: loadtesting } |
| 41 | + steps: |
| 42 | + - uses: actions/checkout@v4 |
| 43 | + - uses: ./.github/actions/setup-yc |
| 44 | + - name: Run Test HTTP-300inst-sleep0ms-overflow-false |
| 45 | + run: | |
| 46 | + stripped_tag="${{ github.event.release.tag_name }}" |
| 47 | + YC_LT_TEST_EXTRA_LABELS="version=${STRIPPED_TAG}" ./performance-test/automation/test.sh ./performance-test/test-config/pandora-perf-http-uri-300inst-sleep0ms-overflow-false |
| 48 | + - name: Run Test HTTP-2000inst-sleep0ms-overflow-false |
| 49 | + run: | |
| 50 | + stripped_tag="${{ github.event.release.tag_name }}" |
| 51 | + STRIPPED_TAG=${stripped_tag:1} |
| 52 | + YC_LT_TEST_EXTRA_LABELS="version=${STRIPPED_TAG}" ./performance-test/automation/test.sh ./performance-test/test-config/pandora-perf-http-uri-2000inst-sleep0ms-overflow-false |
| 53 | + - name: Run Test HTTP-2000inst-sleep50ms-overflow-false |
| 54 | + run: | |
| 55 | + stripped_tag="${{ github.event.release.tag_name }}" |
| 56 | + STRIPPED_TAG=${stripped_tag:1} |
| 57 | + YC_LT_TEST_EXTRA_LABELS="version=${STRIPPED_TAG}" ./performance-test/automation/test.sh ./performance-test/test-config/pandora-perf-http-uri-2000inst-sleep50ms-overflow-false |
| 58 | + - name: Run Test HTTP-300inst-sleep0ms-overflow-true |
| 59 | + run: | |
| 60 | + stripped_tag="${{ github.event.release.tag_name }}" |
| 61 | + YC_LT_TEST_EXTRA_LABELS="version=${STRIPPED_TAG}" ./performance-test/automation/test.sh ./performance-test/test-config/pandora-perf-http-uri-300inst-sleep0ms-overflow-true |
| 62 | + - name: Run Test HTTP-2000inst-sleep0ms-overflow-true |
| 63 | + run: | |
| 64 | + stripped_tag="${{ github.event.release.tag_name }}" |
| 65 | + STRIPPED_TAG=${stripped_tag:1} |
| 66 | + YC_LT_TEST_EXTRA_LABELS="version=${STRIPPED_TAG}" ./performance-test/automation/test.sh ./performance-test/test-config/pandora-perf-http-uri-2000inst-sleep0ms-overflow-true |
| 67 | + - name: Run Test HTTP-2000inst-sleep50ms-overflow-true |
| 68 | + run: | |
| 69 | + stripped_tag="${{ github.event.release.tag_name }}" |
| 70 | + STRIPPED_TAG=${stripped_tag:1} |
| 71 | + YC_LT_TEST_EXTRA_LABELS="version=${STRIPPED_TAG}" ./performance-test/automation/test.sh ./performance-test/test-config/pandora-perf-http-uri-2000inst-sleep50ms-overflow-true |
| 72 | + - name: Run Test GRPC-2000inst-sleep50ms-overflow-false |
| 73 | + run: | |
| 74 | + stripped_tag="${{ github.event.release.tag_name }}" |
| 75 | + STRIPPED_TAG=${stripped_tag:1} |
| 76 | + YC_LT_TEST_EXTRA_LABELS="version=${STRIPPED_TAG}" ./performance-test/automation/test.sh ./performance-test/test-config/pandora-perf-grpc-2000inst-sleep0ms-overflow-false |
| 77 | + - name: Run Test GRPC-2000inst-sleep50ms-overflow-false |
| 78 | + run: | |
| 79 | + stripped_tag="${{ github.event.release.tag_name }}" |
| 80 | + STRIPPED_TAG=${stripped_tag:1} |
| 81 | + YC_LT_TEST_EXTRA_LABELS="version=${STRIPPED_TAG}" ./performance-test/automation/test.sh ./performance-test/test-config/pandora-perf-grpc-2000inst-sleep50ms-overflow-false |
| 82 | + - name: Run Test GRPC-300inst-sleep0ms-overflow-false |
| 83 | + run: | |
| 84 | + stripped_tag="${{ github.event.release.tag_name }}" |
| 85 | + STRIPPED_TAG=${stripped_tag:1} |
| 86 | + YC_LT_TEST_EXTRA_LABELS="version=${STRIPPED_TAG}" ./performance-test/automation/test.sh ./performance-test/test-config/pandora-perf-grpc-300inst-sleep0ms-overflow-false |
| 87 | + - name: Run Test GRPC-2000inst-sleep50ms-overflow-true |
| 88 | + run: | |
| 89 | + stripped_tag="${{ github.event.release.tag_name }}" |
| 90 | + STRIPPED_TAG=${stripped_tag:1} |
| 91 | + YC_LT_TEST_EXTRA_LABELS="version=${STRIPPED_TAG}" ./performance-test/automation/test.sh ./performance-test/test-config/pandora-perf-grpc-2000inst-sleep0ms-overflow-true |
| 92 | + - name: Run Test GRPC-2000inst-sleep50ms-overflow-true |
| 93 | + run: | |
| 94 | + stripped_tag="${{ github.event.release.tag_name }}" |
| 95 | + STRIPPED_TAG=${stripped_tag:1} |
| 96 | + YC_LT_TEST_EXTRA_LABELS="version=${STRIPPED_TAG}" ./performance-test/automation/test.sh ./performance-test/test-config/pandora-perf-grpc-2000inst-sleep50ms-overflow-true |
| 97 | + - name: Run Test GRPC-300inst-sleep0ms-overflow-true |
| 98 | + run: | |
| 99 | + stripped_tag="${{ github.event.release.tag_name }}" |
| 100 | + STRIPPED_TAG=${stripped_tag:1} |
| 101 | + YC_LT_TEST_EXTRA_LABELS="version=${STRIPPED_TAG}" ./performance-test/automation/test.sh ./performance-test/test-config/pandora-perf-grpc-300inst-sleep0ms-overflow-true |
| 102 | + - name: Upload Artifacts GRPC 300inst-sleep0ms |
| 103 | + uses: actions/upload-artifact@v4 |
| 104 | + with: |
| 105 | + name: pandora-perf-grpc-300inst-sleep0ms |
| 106 | + path: ${{ env.YC_LT_OUTPUT_DIR }} |
| 107 | + |
| 108 | + - name: Parse to Release 2 |
| 109 | + env: |
| 110 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 111 | + RELEASE_ID: 161082234 |
| 112 | + run: | |
| 113 | + cat <<EOF > imbalance.md |
| 114 | + |
| 115 | + ## Performance tests |
| 116 | + |
| 117 | + EOF |
| 118 | + find $YC_LT_OUTPUT_DIR -name 'summary.json' -exec jq -r '"- \(.details.name): **\(.summary.imbalance_point.rps // "0" | tonumber)**"' {} \; | sort >> imbalance.md |
| 119 | +
|
| 120 | + - name: Update release |
| 121 | + id: update_release |
| 122 | + uses: tubone24/update_release@v1.3.1 |
| 123 | + env: |
| 124 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 125 | + with: |
| 126 | + body_path: ./imbalance.md |
| 127 | + is_append_body: true |
0 commit comments