f7a4cd4c79
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [CodSpeedHQ/action](https://redirect.github.com/CodSpeedHQ/action) | action | patch | `v4.10.4` → `v4.10.6` | --- ### Release Notes <details> <summary>CodSpeedHQ/action (CodSpeedHQ/action)</summary> ### [`v4.10.6`](https://redirect.github.com/CodSpeedHQ/action/releases/tag/v4.10.6) [Compare Source](https://redirect.github.com/CodSpeedHQ/action/compare/v4.10.5...v4.10.6) ##### Release Notes ##### <!-- 0 -->🚀 Features - Use codspeed.io installer for cached and authenticated requests by [@​adriencaccia](https://redirect.github.com/adriencaccia) in [#​187](https://redirect.github.com/CodSpeedHQ/action/pull/187) - Force necessary flags for `go run` in introspected go by [@​GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange) in [#​238](https://redirect.github.com/CodSpeedHQ/runner/pull/238) - Bump the stack size for python by [@​GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange) - Make python generate perf maps in exec-harness analysis by [@​GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange) - Harvest python perf maps after parsing perf data by [@​GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange) - Allow memory instrument with exec-harness's integration hook by [@​GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange) - Use the new instrument-hooks bindings rather than codspeed core by [@​GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange) ##### <!-- 1 -->🐛 Bug Fixes - Panic if integration doesn't support memory profiling by [@​not-matthias](https://redirect.github.com/not-matthias) in [#​239](https://redirect.github.com/CodSpeedHQ/runner/pull/239) - Allow memtrack caching by resetting .cargo permissions by [@​not-matthias](https://redirect.github.com/not-matthias) in [#​237](https://redirect.github.com/CodSpeedHQ/runner/pull/237) - Search build directories in sub-folders by [@​not-matthias](https://redirect.github.com/not-matthias) - Handle working-directory option by [@​not-matthias](https://redirect.github.com/not-matthias) - Improve simulation script support and detect subprocesses by [@​GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange) ##### <!-- 2 -->🏗️ Refactor - Move common perf-map utility outside of valgrind helpers by [@​GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange) ##### <!-- 7 -->⚙️ Internals - chore: bump runner version to 4.10.6 by [@​github-actions](https://redirect.github.com/github-actions)\[bot] in [#​188](https://redirect.github.com/CodSpeedHQ/action/pull/188) - Bump memtrack version - Add debug logs for harvested bench pids by [@​GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange) - Update wording in build.rs by [@​GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange) in [#​235](https://redirect.github.com/CodSpeedHQ/runner/pull/235) - Use tokio::fs when harvesting perf maps from pids by [@​GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange) - Import instrument-hooks bindings from codspeed-rust by [@​GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange) - Move small snapshot files out of Git LFS by [@​art049](https://redirect.github.com/art049) ##### Install codspeed-runner 4.10.6 ##### Install prebuilt binaries via shell script ```sh curl --proto '=https' --tlsv1.2 -LsSf https://github.com/CodSpeedHQ/codspeed/releases/download/v4.10.6/codspeed-runner-installer.sh | sh ``` ##### Download codspeed-runner 4.10.6 | File | Platform | Checksum | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------- | | [codspeed-runner-aarch64-unknown-linux-musl.tar.gz](https://redirect.github.com/CodSpeedHQ/codspeed/releases/download/v4.10.6/codspeed-runner-aarch64-unknown-linux-musl.tar.gz) | ARM64 MUSL Linux | [checksum](https://redirect.github.com/CodSpeedHQ/codspeed/releases/download/v4.10.6/codspeed-runner-aarch64-unknown-linux-musl.tar.gz.sha256) | | [codspeed-runner-x86\_64-unknown-linux-musl.tar.gz](https://redirect.github.com/CodSpeedHQ/codspeed/releases/download/v4.10.6/codspeed-runner-x86_64-unknown-linux-musl.tar.gz) | x64 MUSL Linux | [checksum](https://redirect.github.com/CodSpeedHQ/codspeed/releases/download/v4.10.6/codspeed-runner-x86_64-unknown-linux-musl.tar.gz.sha256) | **Full Runner Changelog**: <https://github.com/CodSpeedHQ/codspeed/blob/main/CHANGELOG.md> **Full Changelog**: <https://github.com/CodSpeedHQ/action/compare/v4.10.5...v4.10.6> ### [`v4.10.5`](https://redirect.github.com/CodSpeedHQ/action/releases/tag/v4.10.5) [Compare Source](https://redirect.github.com/CodSpeedHQ/action/compare/v4.10.4...v4.10.5) #### Release Notes ##### <!-- 0 -->🚀 Features - Support codspeed-node memory profiling by [@​not-matthias](https://redirect.github.com/not-matthias) in [#​228](https://redirect.github.com/CodSpeedHQ/runner/pull/228) ##### <!-- 1 -->🐛 Bug Fixes - Check benchmark URIs rather than memtrack events by [@​not-matthias](https://redirect.github.com/not-matthias) in [#​230](https://redirect.github.com/CodSpeedHQ/runner/pull/230) - Do not error out if no head report is present after local run by [@​GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange) in [#​233](https://redirect.github.com/CodSpeedHQ/runner/pull/233) ##### <!-- 7 -->⚙️ Internals - chore: bump runner version to 4.10.5 by [@​github-actions](https://redirect.github.com/github-actions)\[bot] in [#​186](https://redirect.github.com/CodSpeedHQ/action/pull/186) ##### Install prebuilt binaries via shell script ```sh curl --proto '=https' --tlsv1.2 -LsSf https://github.com/CodSpeedHQ/codspeed/releases/download/v4.10.5/codspeed-runner-installer.sh | sh ``` #### Download codspeed-runner 4.10.5 | File | Platform | Checksum | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------- | | [codspeed-runner-aarch64-unknown-linux-musl.tar.gz](https://redirect.github.com/CodSpeedHQ/codspeed/releases/download/v4.10.5/codspeed-runner-aarch64-unknown-linux-musl.tar.gz) | ARM64 MUSL Linux | [checksum](https://redirect.github.com/CodSpeedHQ/codspeed/releases/download/v4.10.5/codspeed-runner-aarch64-unknown-linux-musl.tar.gz.sha256) | | [codspeed-runner-x86\_64-unknown-linux-musl.tar.gz](https://redirect.github.com/CodSpeedHQ/codspeed/releases/download/v4.10.5/codspeed-runner-x86_64-unknown-linux-musl.tar.gz) | x64 MUSL Linux | [checksum](https://redirect.github.com/CodSpeedHQ/codspeed/releases/download/v4.10.5/codspeed-runner-x86_64-unknown-linux-musl.tar.gz.sha256) | **Full Runner Changelog**: <https://github.com/CodSpeedHQ/codspeed/blob/main/CHANGELOG.md> **Full Changelog**: <https://github.com/CodSpeedHQ/action/compare/v4.10.4...v4.10.5> </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:eyJjcmVhdGVkSW5WZXIiOiI0My44LjUiLCJ1cGRhdGVkSW5WZXIiOiI0My4xNS4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJidWlsZDpza2lwLXJlbGVhc2UiLCJpbnRlcm5hbCJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
137 lines
4.5 KiB
YAML
137 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"
|
|
# codspeed-macro doesn't support Ubuntu 24.04 yet
|
|
runs-on: depot-ubuntu-22.04-arm-4
|
|
if: ${{ github.repository == 'astral-sh/uv' }}
|
|
timeout-minutes: 20
|
|
steps:
|
|
- name: "Checkout Branch"
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
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@542cebaaed782771e619bd5609d97659d109c492 # v2.66.7
|
|
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: "Install codspeed"
|
|
uses: taiki-e/install-action@542cebaaed782771e619bd5609d97659d109c492 # v2.66.7
|
|
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@4deb3275dd364fb96fb074c953133d29ec96f80f # v4.10.6
|
|
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
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@542cebaaed782771e619bd5609d97659d109c492 # v2.66.7
|
|
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@4deb3275dd364fb96fb074c953133d29ec96f80f # v4.10.6
|
|
with:
|
|
run: cargo codspeed run
|
|
mode: simulation
|
|
token: ${{ secrets.CODSPEED_TOKEN }}
|