-
Notifications
You must be signed in to change notification settings - Fork 987
111 lines (96 loc) · 3.18 KB
/
fio_benchmark.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: "fio-benchmark"
on:
push:
branches:
- main
- release**
paths:
- '**/fio_benchmark.yml'
- '**/fio.sh'
pull_request:
branches:
- main
- release**
paths:
- '**/fio_benchmark.yml'
- '**/fio.sh'
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
debug:
type: boolean
description: "Run the build with tmate debugging enabled"
required: false
default: false
jobs:
fio_benchmark:
timeout-minutes: 30
if: github.repository == 'juicedata/juicefs'
runs-on: [ubuntu-20.04]
strategy:
fail-fast: false
matrix:
meta: ['redis']
fio_job : ['big-file-sequential-read', 'big-file-sequential-write', 'big-file-multi-read-4',
'big-file-multi-write-4', 'big-file-rand-read-256k', 'big-file-random-write-256k',
'small-file-seq-read-256k', 'small-file-seq-write-256k', 'small-file-multi-read-4',
'small-file-multi-write-4']
# fio_job : ['big-file-sequential-read']
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 'oldstable'
cache: true
- name: Build linux target
timeout-minutes: 10
run: |
make juicefs
- name: Install tools
run: |
sudo .github/scripts/apt_install.sh fio
- name: Start meta and storage
run: |
chmod +x .github/scripts/start_meta_engine.sh
source .github/scripts/start_meta_engine.sh
start_meta_engine ${{matrix.meta}} minio
# - name: Test upload
# run: |
# echo abc > test.json
# AWS_ACCESS_KEY_ID=${{secrets.CI_AWS_ACCESS_KEY_ID}} AWS_ACCESS_KEY_SECRET=${{secrets.CI_AWS_ACCESS_KEY_SECRET}} ./juicefs sync --force-update test.json s3://juicefs-ci-aws.s3.us-east-1.amazonaws.com/ci-report/fio-test/test.json
- name: Fio Benchmark
run: |
source .github/scripts/start_meta_engine.sh
meta_url=$(get_meta_url ${{matrix.meta}})
AWS_ACCESS_KEY_ID=${{secrets.CI_AWS_ACCESS_KEY_ID}} AWS_ACCESS_KEY_SECRET=${{secrets.CI_AWS_ACCESS_KEY_SECRET}} .github/scripts/fio.sh $meta_url ${{matrix.fio_job}}
- name: log
if: always()
run: |
if [ -f ~/.juicefs/juicefs.log ]; then
tail -300 ~/.juicefs/juicefs.log
grep "<FATAL>:" ~/.juicefs/juicefs.log && exit 1 || true
fi
success-all-test:
runs-on: ubuntu-latest
needs: [fio_benchmark]
if: always()
steps:
- uses: technote-space/workflow-conclusion-action@v3
- uses: actions/checkout@v3
- name: Check Failure
if: env.WORKFLOW_CONCLUSION == 'failure'
run: exit 1
- name: Send Slack Notification
if: failure() && github.event_name != 'workflow_dispatch'
uses: juicedata/slack-notify-action@main
with:
channel-id: "${{ secrets.SLACK_CHANNEL_ID_FOR_PR_CHECK_NOTIFY }}"
slack_bot_token: "${{ secrets.SLACK_BOT_TOKEN }}"
- name: Success
if: success()
run: echo "All Done"