forked from codenotary/immudb
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (51 loc) · 2.05 KB
/
stress.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: immudb Stress
on:
pull_request:
branches:
- '**'
schedule:
- cron: '0 0 * * *'
jobs:
stress-build:
runs-on: ubuntu-latest
steps:
- name: Setup runner for Go
uses: actions/setup-go@v3
with:
go-version: "1.18"
- uses: actions/checkout@v3
- name: Build stress tool
run: |
go build embedded/tools/stress_tool/stress_tool.go
- name: "| Entries: 1M | Workers: 20 | Batch: 1k | Batches: 50 |"
id: e_1m_w_20_b_1k_bs_50
run: |
rm -rf data
./stress_tool -mode auto -committers 20 -kvCount 1000 -txCount 50 -txRead -synced
- name: "| Entries: 1M | Workers: 50 | Batch: 1k | Batches: 20 |"
id: e_1m_w_50_b_1k_bs_20
run: |
rm -rf data
./stress_tool -mode auto -committers 50 -kvCount 1000 -txCount 20 -txRead -synced
- name: "| Entries: 1M | Workers: 100 | Batch: 1k | Batches: 10 |"
id: e_1m_w_100_b_1k_bs_10
run: |
rm -rf data
./stress_tool -mode auto -committers 100 -kvCount 1000 -txCount 10 -txRead -synced
- name: Create the Mattermost message
if: github.event.schedule == '0 0 * * *'
run: >
echo "{\"text\":\"### Stress tests results for scheduled daily run on branch ${{ github.ref_name }}\n
| Step | Result |\n
| ---- | ------ |\n
| Entries: 1M - Workers: 20 - Batch: 1k - Batches: 50 | ${{ steps.e_1m_w_20_b_1k_bs_50.outcome }} |\n
| Entries: 1M - Workers: 50 - Batch: 1k - Batches: 20 | ${{ steps.e_1m_w_50_b_1k_bs_20.outcome }} |\n
| Entries: 1M - Workers: 100 - Batch: 1k - Batches: 10 | ${{ steps.e_1m_w_100_b_1k_bs_10.outcome }} |\n
**Check details [here](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})**
\"}" > mattermost.json
- name: Notify on immudb channel on Mattermost
if: github.event.schedule == '0 0 * * *'
uses: mattermost/action-mattermost-notify@master
env:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
MATTERMOST_CHANNEL: 'immudb'