Skip to content

Commit 166857d

Browse files
committed
ci: temporary performance bisection workflow
1 parent e1310c4 commit 166857d

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

‎.github/workflows/perf-bisect.yml‎

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: perf-bisect
2+
3+
on:
4+
push:
5+
branches:
6+
- "perf-bisect/**"
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
guard:
13+
name: ${{ matrix.suite }} 3000 (run ${{ matrix.run }})
14+
runs-on: ubuntu-24.04
15+
timeout-minutes: 30
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
suite: [dense, cold]
20+
run: [1, 2, 3]
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: astral-sh/setup-uv@v5
24+
with:
25+
version: "0.12.3"
26+
enable-cache: true
27+
cache-dependency-glob: |
28+
uv.lock
29+
Cargo.lock
30+
- uses: dtolnay/rust-toolchain@master
31+
with:
32+
toolchain: stable
33+
- name: Install Python
34+
run: uv python install 3.12
35+
- name: Install dependencies
36+
run: uv sync --locked --all-groups --all-extras
37+
- name: Runner CPU
38+
run: lscpu | grep -E 'Model name|^CPU\(s\)'; nproc
39+
- name: Run guard under 4 GiB
40+
env:
41+
MEMORY_LIMIT_BYTES: "4294967296"
42+
SUITE: ${{ matrix.suite }}
43+
run: |
44+
sudo systemd-run \
45+
--unit="sqlbuild-bisect-${SUITE}-${GITHUB_RUN_ID}-${{ matrix.run }}" \
46+
--uid="$(id -u)" --gid="$(id -g)" --same-dir \
47+
--setenv="HOME=${HOME}" --setenv="PATH=${PATH}" \
48+
--setenv="SQLBUILD_REQUIRE_MEMORY_LIMIT_BYTES=${MEMORY_LIMIT_BYTES}" \
49+
--property="MemoryMax=${MEMORY_LIMIT_BYTES}" --property="MemorySwapMax=0" \
50+
--wait --collect --pipe \
51+
make "test-e2e-${SUITE}-compile-performance" SQLBUILD_BENCHMARK_MODELS=3000 || true

0 commit comments

Comments
 (0)