Skip to content

Commit bef03cb

Browse files
committed
try using tests/benchmarks as PGO input
1 parent 8ef5de6 commit bef03cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ jobs:
452452
pip install -U pip
453453
pip install -r tests/requirements.txt
454454
pip install pydantic-core --no-index --no-deps --find-links pgo-wheel --force-reinstall
455-
pytest
455+
pytest tests/benchmarks
456456
rustup run stable bash -c '$RUSTUP_HOME/toolchains/$RUSTUP_TOOLCHAIN/lib/rustlib/x86_64-unknown-linux-gnu/bin/llvm-profdata merge -o ${{ github.workspace }}/merged.profdata ${{ github.workspace }}/profdata'
457457
458458
- name: build pgo-optimized wheel

.github/workflows/codspeed.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
RUSTFLAGS: "-Cprofile-generate=${{ github.workspace }}/profdata"
6060

6161
- name: Gather pgo data
62-
run: pytest
62+
run: pytest tests/benchmarks
6363

6464
- name: Prepare merged pgo data
6565
run: rustup run stable bash -c '$RUSTUP_HOME/toolchains/$RUSTUP_TOOLCHAIN/lib/rustlib/x86_64-unknown-linux-gnu/bin/llvm-profdata merge -o ${{ github.workspace }}/merged.profdata ${{ github.workspace }}/profdata'

0 commit comments

Comments
 (0)