Files
uv/.github/workflows/bench.yml
T
renovate[bot] e070270d36 Update CodSpeedHQ/action action to v4.5.2 (#17580)
This PR contains the following updates:

| Package | Type | Update | Change | Pending |
|---|---|---|---|---|
| [CodSpeedHQ/action](https://redirect.github.com/CodSpeedHQ/action) |
action | minor | `v4.4.1` → `v4.5.2` | `v4.7.0` |

---

### Release Notes

<details>
<summary>CodSpeedHQ/action (CodSpeedHQ/action)</summary>

###
[`v4.5.2`](https://redirect.github.com/CodSpeedHQ/action/releases/tag/v4.5.2)

[Compare
Source](https://redirect.github.com/CodSpeedHQ/action/compare/v4.5.1...v4.5.2)

#### Release Notes

##### <!-- 0 -->🚀 Features

- Update release flow to make sure only runner releases are marked as
latest
([#&#8203;180](https://redirect.github.com/CodSpeedHQ/action/issues/180))
by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
in [#&#8203;180](https://redirect.github.com/CodSpeedHQ/runner/pull/180)
- Improve `UNAUTHENTICATED` error message by
[@&#8203;fargito](https://redirect.github.com/fargito) in
[#&#8203;181](https://redirect.github.com/CodSpeedHQ/runner/pull/181)

##### <!-- 7 -->⚙️ Internals

- Bump cargo dist to 0.30.3 by
[@&#8203;art049](https://redirect.github.com/art049)
- chore: bump runner version to 4.5.2 by
[@&#8203;github-actions](https://redirect.github.com/github-actions)\[bot]
in [#&#8203;167](https://redirect.github.com/CodSpeedHQ/action/pull/167)

#### Install codspeed-runner 4.5.2

##### Install prebuilt binaries via shell script

```sh
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/CodSpeedHQ/runner/releases/download/v4.5.2/codspeed-runner-installer.sh | sh
```

#### Download codspeed-runner 4.5.2

| File | Platform | Checksum |
|
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
| ---------------- |
----------------------------------------------------------------------------------------------------------------------------------
|
|
[codspeed-runner-aarch64-unknown-linux-musl.tar.gz](https://redirect.github.com/CodSpeedHQ/runner/releases/download/v4.5.2/codspeed-runner-aarch64-unknown-linux-musl.tar.gz)
| ARM64 MUSL Linux |
[checksum](https://redirect.github.com/CodSpeedHQ/runner/releases/download/v4.5.2/codspeed-runner-aarch64-unknown-linux-musl.tar.gz.sha256)
|
|
[codspeed-runner-x86\_64-unknown-linux-musl.tar.gz](https://redirect.github.com/CodSpeedHQ/runner/releases/download/v4.5.2/codspeed-runner-x86_64-unknown-linux-musl.tar.gz)
| x64 MUSL Linux |
[checksum](https://redirect.github.com/CodSpeedHQ/runner/releases/download/v4.5.2/codspeed-runner-x86_64-unknown-linux-musl.tar.gz.sha256)
|

**Full Runner Changelog**:
<https://github.com/CodSpeedHQ/runner/blob/main/CHANGELOG.md>

**Full Changelog**:
<https://github.com/CodSpeedHQ/action/compare/v4.5.1...v4.5.2>

###
[`v4.5.1`](https://redirect.github.com/CodSpeedHQ/action/releases/tag/v4.5.1)

[Compare
Source](https://redirect.github.com/CodSpeedHQ/action/compare/v4.4.1...v4.5.1)

#### Release Notes

##### <!-- 0 -->🚀 Features

- Remove projects query from the exec polling by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
in [#&#8203;173](https://redirect.github.com/CodSpeedHQ/runner/pull/173)
- Fetch project from API when running outside of git repo by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
- Add get or create project repository query by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
- Automatically install exec-harness for exec subcommand by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
- Auto install codspeed-memtrack during executor setup by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
- Serialize events serially to allow streamed decoding by
[@&#8203;not-matthias](https://redirect.github.com/not-matthias) in
[#&#8203;172](https://redirect.github.com/CodSpeedHQ/runner/pull/172)
- Parse perf file for memmap events instead of relying on /proc/pid/maps
by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
- Use the projects upload enpdoint in exec command by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
- Add exec subcommand and refactor run subcommand by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
- Add exec-harness binary by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
- Add memory executor by
[@&#8203;not-matthias](https://redirect.github.com/not-matthias)
- Add memtrack crate by
[@&#8203;not-matthias](https://redirect.github.com/not-matthias)
- Add artifact types by
[@&#8203;not-matthias](https://redirect.github.com/not-matthias)
- Add shared fifo by
[@&#8203;not-matthias](https://redirect.github.com/not-matthias)
- Add new fifo commands by
[@&#8203;not-matthias](https://redirect.github.com/not-matthias)
- Support simulation for free-threaded python by
[@&#8203;adriencaccia](https://redirect.github.com/adriencaccia) in
[#&#8203;167](https://redirect.github.com/CodSpeedHQ/runner/pull/167)

##### <!-- 1 -->🐛 Bug Fixes

- fix: specify package when using branch/ref by
[@&#8203;not-matthias](https://redirect.github.com/not-matthias) in
[#&#8203;162](https://redirect.github.com/CodSpeedHQ/action/pull/162)
- fix: properly check for allow\_empty input by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
in [#&#8203;164](https://redirect.github.com/CodSpeedHQ/action/pull/164)
- Filter out arm debugging symbols by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
in [#&#8203;179](https://redirect.github.com/CodSpeedHQ/runner/pull/179)
- Filter out empty named symbols when building perf-map by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
in [#&#8203;176](https://redirect.github.com/CodSpeedHQ/runner/pull/176)
- Do not break support for no reason when changing integration hooks
protocol version by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
in [#&#8203;175](https://redirect.github.com/CodSpeedHQ/runner/pull/175)
- Remove dirty retry on timeout and simply increase timeout for GQL
client by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
- Stop hanging indefinitely if process fails to start in memory executor
by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
in [#&#8203;171](https://redirect.github.com/CodSpeedHQ/runner/pull/171)
- Remove the password prompt from the run\_with\_sudo dialog by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
- Collect events in thread to avoid mutex overhead by
[@&#8203;not-matthias](https://redirect.github.com/not-matthias)
- Convert events in thread to avoid blocking at the end by
[@&#8203;not-matthias](https://redirect.github.com/not-matthias)
- Compress only when size exceeds threshold by
[@&#8203;not-matthias](https://redirect.github.com/not-matthias)
- Forward environment in memory executor by
[@&#8203;not-matthias](https://redirect.github.com/not-matthias)
- Fix plan test in CI by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
in [#&#8203;165](https://redirect.github.com/CodSpeedHQ/runner/pull/165)
- Prevent nextest from running valgrind and memcheck concurrently by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
- Stop ignoring samples by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
- Use correct name for unwind\_data trait declaration by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
- Stop filtering out zero sized symbol by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
- Request OIDC token after creating profile archive by
[@&#8203;fargito](https://redirect.github.com/fargito) in
[#&#8203;170](https://redirect.github.com/CodSpeedHQ/runner/pull/170)
- Remove snapshots that were not part of lfs by
[@&#8203;not-matthias](https://redirect.github.com/not-matthias) in
[#&#8203;166](https://redirect.github.com/CodSpeedHQ/runner/pull/166)
- Always print memory mapping logs by
[@&#8203;not-matthias](https://redirect.github.com/not-matthias)

##### <!-- 2 -->🏗️ Refactor

- Create a dedicated execution\_context that holds runtime information
by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
- Move executor and instruments modules out of `run` module by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)

##### <!-- 7 -->⚙️ Internals

- docs(examples): add go and cpp examples by
[@&#8203;fargito](https://redirect.github.com/fargito) in
[#&#8203;161](https://redirect.github.com/CodSpeedHQ/action/pull/161)
- Ignore some tags in the changelog
- Bump protocol version by
[@&#8203;not-matthias](https://redirect.github.com/not-matthias) in
[#&#8203;174](https://redirect.github.com/CodSpeedHQ/runner/pull/174)
- Add CONTRIBUTING.md by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
- Add cargo-dist arguments for release by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
- Reset exec-harness and memtrack crate versions to 1.0.0 ahead of first
release by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
- Switch to pr run mode plan only for pr by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
- Add test to ensure path is properly forwarded by
[@&#8203;not-matthias](https://redirect.github.com/not-matthias) in
[#&#8203;169](https://redirect.github.com/CodSpeedHQ/runner/pull/169)
- Make the exec command work outside of git repos by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
- Do not publish memtrack to crates.io by
[@&#8203;adriencaccia](https://redirect.github.com/adriencaccia)
- Dont run valgrind and memory tests at the same time by
[@&#8203;not-matthias](https://redirect.github.com/not-matthias) in
[#&#8203;164](https://redirect.github.com/CodSpeedHQ/runner/pull/164)
- Add test-log to see output on failures by
[@&#8203;not-matthias](https://redirect.github.com/not-matthias)
- Add workspace dependencies by
[@&#8203;not-matthias](https://redirect.github.com/not-matthias)

#### Install codspeed-runner 4.5.1

##### Install prebuilt binaries via shell script

```sh
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/CodSpeedHQ/runner/releases/download/v4.5.1/codspeed-runner-installer.sh | sh
```

#### Download codspeed-runner 4.5.1

| File | Platform | Checksum |
|
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
| ---------------- |
----------------------------------------------------------------------------------------------------------------------------------
|
|
[codspeed-runner-aarch64-unknown-linux-musl.tar.gz](https://redirect.github.com/CodSpeedHQ/runner/releases/download/v4.5.1/codspeed-runner-aarch64-unknown-linux-musl.tar.gz)
| ARM64 MUSL Linux |
[checksum](https://redirect.github.com/CodSpeedHQ/runner/releases/download/v4.5.1/codspeed-runner-aarch64-unknown-linux-musl.tar.gz.sha256)
|
|
[codspeed-runner-x86\_64-unknown-linux-musl.tar.gz](https://redirect.github.com/CodSpeedHQ/runner/releases/download/v4.5.1/codspeed-runner-x86_64-unknown-linux-musl.tar.gz)
| x64 MUSL Linux |
[checksum](https://redirect.github.com/CodSpeedHQ/runner/releases/download/v4.5.1/codspeed-runner-x86_64-unknown-linux-musl.tar.gz.sha256)
|

**Full Runner Changelog**:
<https://github.com/CodSpeedHQ/runner/blob/main/CHANGELOG.md>

**Full Changelog**:
<https://github.com/CodSpeedHQ/action/compare/v4.4.1...v4.5.1>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM, only on
Monday ( * 0-3 * * 1 ) (UTC), Automerge - At any time (no schedule
defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/astral-sh/uv).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi43NC41IiwidXBkYXRlZEluVmVyIjoiNDIuNzQuNSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiaW50ZXJuYWwiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-19 09:20:12 -06:00

136 lines
4.5 KiB
YAML

on:
workflow_call:
inputs:
save-rust-cache:
required: false
type: string
default: "true"
permissions: {}
env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
CARGO_TERM_COLOR: always
RUSTUP_MAX_RETRIES: 10
jobs:
benchmarks-walltime-build:
name: "walltime build"
runs-on: depot-ubuntu-22.04-arm-4
if: ${{ github.repository == 'astral-sh/uv' }}
timeout-minutes: 20
steps:
- name: "Checkout Branch"
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
with:
save-if: ${{ inputs.save-rust-cache == 'true' }}
- name: "Install Rust toolchain"
run: rustup show
- name: "Install codspeed"
uses: taiki-e/install-action@3522286d40783523f9c7880e33f785905b4c20d0 # v2.66.1
with:
tool: cargo-codspeed
- name: "Install requirements and prime cache"
run: |
sudo apt-get update
sudo apt-get install -y libsasl2-dev libldap2-dev libkrb5-dev
cargo run --bin uv -- venv --cache-dir .cache
cargo run --bin uv -- pip compile test/requirements/jupyter.in --universal --exclude-newer 2024-08-08 --cache-dir .cache
cargo run --bin uv -- pip compile test/requirements/airflow.in --universal --exclude-newer 2024-08-08 --cache-dir .cache
- name: "Build benchmarks"
run: cargo codspeed build -m walltime --profile profiling -p uv-bench
- name: "Create artifact archive"
run: tar -cvf benchmarks-walltime.tar target/codspeed target/debug/uv .cache
- name: "Upload benchmark artifacts"
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: benchmarks-walltime
path: benchmarks-walltime.tar
retention-days: 1
benchmarks-walltime-run:
name: "walltime on aarch64 linux"
runs-on: codspeed-macro
needs: benchmarks-walltime-build
timeout-minutes: 20
steps:
- name: "Checkout Branch"
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- name: "Install codspeed"
uses: taiki-e/install-action@3522286d40783523f9c7880e33f785905b4c20d0 # v2.66.1
with:
tool: cargo-codspeed
- name: "Download benchmark artifacts"
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: benchmarks-walltime
- name: "Extract artifact archive"
run: tar -xvf benchmarks-walltime.tar
- name: "Create venv"
run: ./target/debug/uv venv --cache-dir .cache
- name: "Run benchmarks"
uses: CodSpeedHQ/action@dbda7111f8ac363564b0c51b992d4ce76bb89f2f # v4.5.2
with:
run: cargo codspeed run
mode: walltime
token: ${{ secrets.CODSPEED_TOKEN }}
benchmarks-simulated:
name: "simulated"
runs-on: ubuntu-latest
if: ${{ github.repository == 'astral-sh/uv' }}
timeout-minutes: 20
steps:
- name: "Checkout Branch"
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
with:
save-if: ${{ inputs.save-rust-cache == 'true' }}
- name: "Install Rust toolchain"
run: rustup show
- name: "Install codspeed"
uses: taiki-e/install-action@3522286d40783523f9c7880e33f785905b4c20d0 # v2.66.1
with:
tool: cargo-codspeed
- name: "Install requirements and prime cache"
run: |
sudo apt-get update
sudo apt-get install -y libsasl2-dev libldap2-dev libkrb5-dev
cargo run --bin uv -- venv --cache-dir .cache
cargo run --bin uv -- pip compile test/requirements/jupyter.in --universal --exclude-newer 2024-08-08 --cache-dir .cache
cargo run --bin uv -- pip compile test/requirements/airflow.in --universal --exclude-newer 2024-08-08 --cache-dir .cache
- name: "Build benchmarks"
run: cargo codspeed build --profile profiling -p uv-bench
- name: "Run benchmarks"
uses: CodSpeedHQ/action@dbda7111f8ac363564b0c51b992d4ce76bb89f2f # v4.5.2
with:
run: cargo codspeed run
mode: simulation
token: ${{ secrets.CODSPEED_TOKEN }}