Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch performance testing flows onto yandex-cloud/yc-github-loadtesting-ci #199

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions .github/actions/setup-yc/action.yml

This file was deleted.

102 changes: 102 additions & 0 deletions .github/workflows/perftest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
name: Performance tests

on:
release:
types: [ created ]

env:
AWS_ENDPOINT_URL: https://storage.yandexcloud.net
AWS_REGION: ru-central1

jobs:
build-and-upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21.x
cache: true
- id: test-go-setup
run: go test -race -covermode atomic ./...
- id: build
run: |
export GOOS=linux
export CGO_ENABLED=0
go build -o pandora-perf
- id: upload-binary
uses: osiegmar/s3-publisher-action@v1
env:
AWS_ACCESS_KEY_ID: ${{ secrets.YC_S3_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.YC_S3_KEY_SECRET }}
with:
dir: .
includes: pandora-perf
bucket: ${{ vars.YC_LOADTESTING_DATA_BUCKET }}

test-pandora-perf:
needs: [ build-and-upload ]
runs-on: ubuntu-latest
concurrency: { group: loadtesting }
env:
PERFTESTS_ROOT: "./performance-test/test-config"
PERFTESTS_AGENT_NAME: "agent-pandora-perf-medium"
TEST_LABELS: "version=${{ github.ref_name }}"
AGENT_FILTER: "name = 'agent-pandora-perf-medium'"
steps:
- uses: actions/checkout@v4
- id: run-perftests
name: Run Pandora Performance Tests
uses: yandex-cloud/yc-github-loadtesting-ci/test-suite@v1-beta
with:
action-log-level: INFO
auth-key-json-base64: ${{ secrets.YC_LOADTESTING_KEY_JSON_BASE64 }}
folder-id: ${{ vars.YC_LOADTESTING_FOLDER_ID }}
data-bucket: ${{ vars.YC_LOADTESTING_DATA_BUCKET }}
add-labels: "version=${{ github.ref_name }}"
agent-filter: "name='${{ env.PERFTESTS_AGENT_NAME }}'"
test-directories: |
"${{ env.PERFTESTS_ROOT }}/pandora-perf-grpc-2000inst-sleep0ms-overflow-false"
"${{ env.PERFTESTS_ROOT }}/pandora-perf-grpc-2000inst-sleep50ms-overflow-false"
"${{ env.PERFTESTS_ROOT }}/pandora-perf-grpc-300inst-sleep0ms-overflow-false"
"${{ env.PERFTESTS_ROOT }}/pandora-perf-grpc-2000inst-sleep0ms-overflow-true"
"${{ env.PERFTESTS_ROOT }}/pandora-perf-grpc-2000inst-sleep50ms-overflow-true"
"${{ env.PERFTESTS_ROOT }}/pandora-perf-grpc-300inst-sleep0ms-overflow-true"
"${{ env.PERFTESTS_ROOT }}/pandora-perf-http-uri-300inst-sleep0ms-overflow-false"
"${{ env.PERFTESTS_ROOT }}/pandora-perf-http-uri-2000inst-sleep0ms-overflow-false"
"${{ env.PERFTESTS_ROOT }}/pandora-perf-http-uri-2000inst-sleep50ms-overflow-false"
"${{ env.PERFTESTS_ROOT }}/pandora-perf-http-uri-300inst-sleep0ms-overflow-true"
"${{ env.PERFTESTS_ROOT }}/pandora-perf-http-uri-2000inst-sleep0ms-overflow-true"
"${{ env.PERFTESTS_ROOT }}/pandora-perf-http-uri-2000inst-sleep50ms-overflow-true"

- uses: actions/upload-artifact@v4
if: always()
with:
name: perftest-artifacts
path: ${{ steps.run-perftests.outputs.artifacts-dir }}

- id: make-test-infos-json
if: always()
run: cp "${{ steps.run-perftests.outputs.test-infos-file }}" test-infos.json

- id: make-imbalance-md-str
name: Generate report
uses: sergeysova/jq-action@v2
with:
multiline: true
cmd: |
jq -r '.[] | "- \(.details.name): **\(.summary.imbalance_point.rps // 0 | tonumber)**"' test-infos.json > imbalance.md

- uses: actions/upload-artifact@v4
with:
name: imbalance.md
path: imbalance.md

- name: Update release
uses: tubone24/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
body_path: imbalance.md
is_append_body: true

127 changes: 0 additions & 127 deletions .github/workflows/yc.yml

This file was deleted.

Loading
Loading