-
Notifications
You must be signed in to change notification settings - Fork 162
77 lines (67 loc) · 2.37 KB
/
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
name: benchmark
on:
workflow_dispatch:
push:
branches:
- prerelease
- main
pull_request:
branches:
- main
jobs:
benchmark:
runs-on: [self-hosted, linux, x64, connectorx-benchmark]
steps:
- uses: actions/checkout@v4
- name: Install tools
run: |
apt-get update
apt-get install -y curl postgresql-client build-essential python3-dev python3-pip pkg-config libssl-dev git sqlite3 libsqlite3-dev mysql-client libmysqlclient-dev libkrb5-dev libclang-dev
env:
DEBIAN_FRONTEND: noninteractive
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt
default: true
- name: Install other dependent tools
run: |
pip3 install poetry
if [ ! -f "$HOME/.cargo/bin/just" ]; then curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to ~/.cargo/bin; fi
- name: Install python dependencies
run: just bootstrap-python
- name: Run benchmarks
run: just benchmark-report
env:
POSTGRES_URL: ${{ secrets.POSTGRES_URL }}
MYSQL_URL: ${{ secrets.MYSQL_URL }}
TPCH_TABLE: lineitem
- name: Ignore git safe directory error
run: git config --global --add safe.directory /tmp/github-runner-connectorx/connector-x/connector-x
- name: Show benchmark result for pull request
if: ${{ github.event_name == 'pull_request'}}
uses: rhysd/github-action-benchmark@v1
with:
name: "ConnectorX TPC-H Scale@1 Benchmarks"
tool: "pytest"
output-file-path: benchmark.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: false
save-data-file: false
fail-threshold: "200%"
comment-always: true
fail-on-alert: true
- name: Store benchmark result for push operator
if: ${{ github.event_name == 'push'}}
uses: rhysd/github-action-benchmark@v1
with:
name: "ConnectorX TPC-H Scale@1 Benchmarks"
tool: "pytest"
output-file-path: benchmark.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
alert-threshold: "100%"
fail-threshold: "200%"
comment-always: true
fail-on-alert: true