mirror of https://github.com/prometheus/prometheus
Browse Source
Signed-off-by: Krasi Georgiev <8903888+krasi-georgiev@users.noreply.github.com>pull/5950/head
Krasi Georgiev
5 years ago
committed by
GitHub
3 changed files with 139 additions and 0 deletions
@ -0,0 +1,19 @@
|
||||
on: issue_comment |
||||
name: Benchmark |
||||
jobs: |
||||
commentMonitor: |
||||
runs-on: ubuntu-latest |
||||
steps: |
||||
- name: commentMonitor |
||||
uses: docker://prombench/comment-monitor:latest |
||||
env: |
||||
COMMENT_TEMPLATE: 'The benchmark has started. We are comparing this PR agains |
||||
branch {{ index . "BRANCH" }}. You can run the same tests with command: `go |
||||
test -bench {{ index . "REGEX" }} -benchmem -race -v ./...` [Github Actions logs](https://github.com/{{ index . "GITHUB_REPOSITORY" }}/commit/{{ index . "GITHUB_SHA" }}/checks)' |
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
||||
with: |
||||
args: '"^/funcbench ?(?P<BRANCH>[^ B\.]+)? ?(?P<REGEX>\.|Bench.*|[^ ]+)? ?(?P<RACE>-no-race)?.*$" --no-verify-user' |
||||
- name: benchmark |
||||
uses: docker://prombench/funcbench:latest |
||||
env: |
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
@ -0,0 +1,49 @@
|
||||
on: issue_comment |
||||
name: Prombench Cancel Benchmark |
||||
jobs: |
||||
pre_benchmark_cancel: |
||||
name: Pre Benchmark Cancel |
||||
runs-on: ubuntu-latest |
||||
steps: |
||||
- name: Validate comment |
||||
id: validate_comment |
||||
uses: docker://prombench/comment-monitor:0.0.1 |
||||
env: |
||||
COMMENT_TEMPLATE: | |
||||
Benchmark cancel is in progress |
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
||||
with: |
||||
args: >- |
||||
"(?mi)^/prombench\s+cancel\s*$" |
||||
benchmark_cancel: |
||||
name: Benchmark Cancel |
||||
needs: pre_benchmark_cancel |
||||
runs-on: ubuntu-latest |
||||
steps: |
||||
- name: Extract arguments |
||||
id: extract_arguments |
||||
uses: docker://prombench/comment-monitor:0.0.1 |
||||
with: |
||||
args: >- |
||||
"(?mi)^/prombench\s+cancel\s*$" |
||||
- name: Delete StatefulSet to stop test |
||||
id: delete_test_ss |
||||
uses: docker://prombenchgeekodour/prombench:2.0.2 |
||||
env: |
||||
AUTH_FILE: ${{ secrets.AUTH_FILE }} |
||||
PROJECT_ID: prombench-gsoc |
||||
CLUSTER_NAME: ghaction-prom |
||||
ZONE: us-central1-a |
||||
TEST_INFRA_REPO: https://github.com/testpromorg/prombench.git |
||||
with: |
||||
args: >- |
||||
export PR_NUMBER=$(cat /github/home/commentMonitor/PR_NUMBER); |
||||
cd /prombench; |
||||
make delete_test_ss |
||||
- name: Post comment if delete_test_ss failed |
||||
id: fail_notification |
||||
if: failure() |
||||
uses: docker://prombench/comment-monitor:0.0.1 |
||||
env: |
||||
COMMENT_TEMPLATE: "prombench cancel failed" |
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Loading…
Reference in new issue