mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
a58595c5f5
This PR contains the following updates: | Package | Type | Update | Change | Pending | |---|---|---|---|---| | [CodSpeedHQ/action](https://redirect.github.com/CodSpeedHQ/action) | action | minor | `v5.0.3` → `v5.2.1` | | | [semgrep/semgrep](https://redirect.github.com/semgrep/semgrep-proprietary) | container | minor | `1.174.0` → `1.175.0` | | | [taiki-e/install-action](https://redirect.github.com/taiki-e/install-action) | action | minor | `v2.86.4` → `v2.87.0` | `v2.87.2` (+1) | --- > [!WARNING] > Some dependencies could not be looked up. Check the warning logs for more information. --- ### Release Notes <details> <summary>CodSpeedHQ/action (CodSpeedHQ/action)</summary> ### [`v5.2.1`](https://redirect.github.com/CodSpeedHQ/action/releases/tag/v5.2.1) [Compare Source](https://redirect.github.com/CodSpeedHQ/action/compare/v5.2.0...v5.2.1) Bumps the CodSpeed runner to [v5.2.1](https://redirect.github.com/CodSpeedHQ/codspeed/releases/tag/v5.2.1). ##### 🚀 Features - Add a `simulation-track-subprocess` input, which enables measuring the subprocesses spawned by the benchmarked process in `simulation` mode by [@​adriencaccia](https://redirect.github.com/adriencaccia) in [#​235](https://redirect.github.com/CodSpeedHQ/action/pull/235) - Bump the go-runner to [v1.3.0](https://redirect.github.com/CodSpeedHQ/codspeed-go/releases/tag/v1.3.0), adding Go 1.26 and 1.27 support by [@​adriencaccia](https://redirect.github.com/adriencaccia) in [#​516](https://redirect.github.com/CodSpeedHQ/codspeed/pull/516) **Full Runner Changelog**: <https://github.com/CodSpeedHQ/codspeed/blob/main/CHANGELOG.md> #### What's Changed - feat: add simulation-track-subprocess input by [@​adriencaccia](https://redirect.github.com/adriencaccia) in [#​235](https://redirect.github.com/CodSpeedHQ/action/pull/235) - chore: bump runner version to 5.2.1 by [@​github-actions](https://redirect.github.com/github-actions)\[bot] in [#​236](https://redirect.github.com/CodSpeedHQ/action/pull/236) **Full Changelog**: <https://github.com/CodSpeedHQ/action/compare/v5.2.0...v5.2.1> ### [`v5.2.0`](https://redirect.github.com/CodSpeedHQ/action/releases/tag/v5.2.0) [Compare Source](https://redirect.github.com/CodSpeedHQ/action/compare/v5.0.3...v5.2.0) Bumps the CodSpeed runner to [v5.2.0](https://redirect.github.com/CodSpeedHQ/codspeed/releases/tag/v5.2.0), including [v5.1.0](https://redirect.github.com/CodSpeedHQ/codspeed/releases/tag/v5.1.0). ##### 🚀 Features - Add a `--simulation-track-subprocess` flag that enables tracking benchmark subprocesses, along with per-thread dumps by [@​GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange) in [#​493](https://redirect.github.com/CodSpeedHQ/codspeed/pull/493) and [#​513](https://redirect.github.com/CodSpeedHQ/codspeed/pull/513) - Collect RSS via rss\_stat and folio-rmap reconstruction by [@​not-matthias](https://redirect.github.com/not-matthias) in [#​453](https://redirect.github.com/CodSpeedHQ/codspeed/pull/453) - Support CircleCI for GitHub repositories by [@​fargito](https://redirect.github.com/fargito) in [#​482](https://redirect.github.com/CodSpeedHQ/codspeed/pull/482) ##### 🐛 Bug Fixes - Fix cache behavior that was causing an apt reinstall of the libc debug symbols despite cache restore by [@​GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange) in [#​509](https://redirect.github.com/CodSpeedHQ/codspeed/pull/509) ##### ⚙️ Internals - Bump pinned valgrind-codspeed to [3.26.0-0codspeed7](https://redirect.github.com/CodSpeedHQ/valgrind-codspeed/releases/tag/3.26.0-0codspeed7) by [@​adriencaccia](https://redirect.github.com/adriencaccia) in [#​515](https://redirect.github.com/CodSpeedHQ/codspeed/pull/515) - fix(callgrind): represent os threads under `--separate-threads=yes` by [@​GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange) in [CodSpeedHQ/valgrind-codspeed#24](https://redirect.github.com/CodSpeedHQ/valgrind-codspeed/pull/24) - feat(callgrind): track subprocesses across fork and exec by [@​GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange) in [CodSpeedHQ/valgrind-codspeed#25](https://redirect.github.com/CodSpeedHQ/valgrind-codspeed/pull/25) - Stop skipping the rustup wrapper for valgrind by [@​GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange) in [#​493](https://redirect.github.com/CodSpeedHQ/codspeed/pull/493) **Full Runner Changelog**: <https://github.com/CodSpeedHQ/codspeed/blob/main/CHANGELOG.md> #### What's Changed - fix: add the distribution to the instruments cache key by [@​GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange) in [#​233](https://redirect.github.com/CodSpeedHQ/action/pull/233) - chore: bump runner version to 5.1.0 by [@​github-actions](https://redirect.github.com/github-actions)\[bot] in [#​232](https://redirect.github.com/CodSpeedHQ/action/pull/232) - chore: bump runner version to 5.2.0 by [@​github-actions](https://redirect.github.com/github-actions)\[bot] in [#​234](https://redirect.github.com/CodSpeedHQ/action/pull/234) **Full Changelog**: <https://github.com/CodSpeedHQ/action/compare/v5.0.3...v5.2.0> </details> <details> <summary>taiki-e/install-action (taiki-e/install-action)</summary> ### [`v2.87.0`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.87.0): 2.87.0 [Compare Source](https://redirect.github.com/taiki-e/install-action/compare/v2.86.8...v2.87.0) - Support `kache`. ([#​1980](https://redirect.github.com/taiki-e/install-action/pull/1980), thanks [@​ChrisJr404](https://redirect.github.com/ChrisJr404)) - Update `vacuum@latest` to 0.30.1. - Update `uv@latest` to 0.12.6. - Update `mise@latest` to 2026.8.14. - Update `editorconfig-checker@latest` to 3.11.2. ### [`v2.86.8`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.86.8): 2.86.8 [Compare Source](https://redirect.github.com/taiki-e/install-action/compare/v2.86.7...v2.86.8) - Update `wasmtime@latest` to 48.0.1. - Update `wasm-tools@latest` to 1.258.0. - Update `oxfmt@latest` to 1.80.0. - Update `mise@latest` to 2026.8.12. - Update `kingfisher@latest` to 2.0.0. - Update `cargo-zigbuild@latest` to 0.23.2. ### [`v2.86.7`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.86.7): 2.86.7 [Compare Source](https://redirect.github.com/taiki-e/install-action/compare/v2.86.6...v2.86.7) - Update `tombi@latest` to 1.4.1. - Update `rafn@latest` to 0.1.5. - Update `cargo-binstall@latest` to 1.22.0. ### [`v2.86.6`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.86.6): 2.86.6 [Compare Source](https://redirect.github.com/taiki-e/install-action/compare/v2.86.5...v2.86.6) - Update `dprint@latest` to 0.56.1. - Update `cargo-lambda@latest` to 1.9.2. - Update `biome@latest` to 2.5.10. ### [`v2.86.5`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.86.5): 2.86.5 [Compare Source](https://redirect.github.com/taiki-e/install-action/compare/v2.86.4...v2.86.5) - Update `zola@latest` to 0.23.4. - Update `wasm-tools@latest` to 1.257.1. - Update `protoc@latest` to 3.36.0. - Update `mise@latest` to 2026.8.10. - Update `cargo-dinghy@latest` to 0.8.6. - Update `wasmtime@latest` to 48.0.0. </details> --- ### Configuration 📅 **Schedule**: (in timezone Asia/Shanghai) - Branch creation - "before 10am on monday" - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- 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/oxc-project/oxc). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC40OS4wIiwidXBkYXRlZEluVmVyIjoiNDQuNDkuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
100 lines
3.5 KiB
YAML
100 lines
3.5 KiB
YAML
# Benchmarks are sharded.
|
|
#
|
|
# Each benchmark (parser, transformer, etc) runs in parallel in a separate job.
|
|
#
|
|
# See https://docs.codspeed.io/features/sharded-benchmarks
|
|
|
|
name: Benchmark
|
|
|
|
permissions: {}
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
types: [opened, synchronize]
|
|
paths: &paths
|
|
- "crates/**/*.rs"
|
|
- "tasks/benchmark/**/*.rs"
|
|
- "tasks/common/**/*.rs"
|
|
- "Cargo.lock"
|
|
- "rust-toolchain.toml"
|
|
- ".github/workflows/benchmark.yml"
|
|
push:
|
|
branches:
|
|
- main
|
|
paths: *paths
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
determine-matrix:
|
|
name: Determine Benchmark
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, '0-merge') }}
|
|
outputs:
|
|
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
|
steps:
|
|
- uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2
|
|
|
|
- name: Determine affected components
|
|
id: set-matrix
|
|
env:
|
|
GITHUB_EVENT_NAME: ${{ github.event_name }}
|
|
GITHUB_BASE_REF: ${{ github.base_ref }}
|
|
GITHUB_REPOSITORY: ${{ github.repository }}
|
|
GITHUB_SHA: ${{ github.sha }}
|
|
GITHUB_REF: ${{ github.ref }}
|
|
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
MATRIX=$(node .github/scripts/generate-benchmark-matrix.js)
|
|
echo "Matrix: $MATRIX"
|
|
echo "matrix=$MATRIX" >> $GITHUB_OUTPUT
|
|
|
|
benchmark:
|
|
needs: determine-matrix
|
|
if: needs.determine-matrix.outputs.matrix != '[]'
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
id-token: write # required for OIDC authentication with CodSpeed
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include: ${{ fromJSON(needs.determine-matrix.outputs.matrix) }}
|
|
name: Bench ${{ matrix.component }}
|
|
steps:
|
|
- uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2
|
|
|
|
- uses: oxc-project/setup-rust@3d6fb132fbe7cdcb66bf8ec193911c2945369d12 # v1.0.17
|
|
with:
|
|
cache-key: benchmark-${{ matrix.feature }}
|
|
save-cache: ${{ github.ref_name == 'main' }}
|
|
tools: cargo-codspeed
|
|
|
|
# Memory mode reuses these binaries: cargo-codspeed maps both simulation and
|
|
# memory modes to the same `analysis` build (`--cfg codspeed`) and directory.
|
|
- name: Build benchmark
|
|
env:
|
|
RUSTFLAGS: "-C debuginfo=1 -C strip=none -g --cfg codspeed"
|
|
run: |
|
|
if [ "${{ matrix.component }}" = "linter" ]; then
|
|
cargo build --release -p oxc_benchmark --bench linter \
|
|
--no-default-features --features ${{ matrix.feature }} --features codspeed
|
|
else
|
|
cargo build --release -p oxc_benchmark \
|
|
--bench ${{ matrix.component }} \
|
|
--no-default-features --features ${{ matrix.feature }} --features codspeed
|
|
fi
|
|
mkdir -p target/codspeed/analysis/oxc_benchmark
|
|
mv target/release/deps/${{ matrix.component }}-* target/codspeed/analysis/oxc_benchmark
|
|
rm target/codspeed/analysis/oxc_benchmark/*.d
|
|
|
|
- name: Run benchmark
|
|
uses: CodSpeedHQ/action@373d6868929f444bc08d901fd0eb0ad52a8875ea # v5.2.1
|
|
timeout-minutes: 30
|
|
with:
|
|
mode: ${{ matrix.mode }}
|
|
run: cargo codspeed run ${{ matrix.component }}
|