-
Notifications
You must be signed in to change notification settings - Fork 218
62 lines (53 loc) 路 1.53 KB
/
qe-perf.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
name: Report qe benchmarks
on:
pull_request:
paths-ignore:
- ".github/**"
- "!.github/workflows/wasm-perf.yml"
- ".buildkite/**"
- "*.md"
- "LICENSE"
- "CODEOWNERS"
- "renovate.json"
jobs:
run-benchmarks:
name: Run benchmarks
runs-on: ubuntu-latest
outputs:
results: ${{ steps.bench.outputs.results }}
steps:
- name: Checkout PR branch
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install wasm-pack
run: cargo install wasm-pack
- name: Setup benchmark
run: make setup-pg-bench
- name: Run benchmarks
id: bench
run: |
echo "results=$(make run-bench)\n" >> $GITHUB_OUTPUT
report:
name: Report benchmarks
runs-on: ubuntu-latest
needs:
- run-benchmarks
steps:
- name: Find past report comment
uses: peter-evans/find-comment@v2
id: findReportComment
with:
issue-number: ${{ github.event.pull_request.number }}
body-includes: "<!-- qe-benchmarks -->"
- name: Create or update report
uses: peter-evans/create-or-update-comment@v3
with:
comment-id: ${{ steps.findReportComment.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: |
<!-- qe-benchmarks -->
### Query engine benchmark results
```sh
${{ needs.run-benchmarks.outputs.results}}
```
edit-mode: replace