test(ci): run required benchmarks on standard hosted Linux

This commit is contained in:
Tianyi Cui
2026-09-06 17:10:30 +08:00
parent eece831b18
commit f75aabcb16
11 changed files with 111 additions and 17 deletions
+4 -7
View File
@@ -158,15 +158,11 @@ jobs:
node-24-bench:
if: github.event_name == 'pull_request'
runs-on: >-
${{ vars.DSH_CI_FAILOVER_LINUX == 'selfhosted'
&& github.event.pull_request.user.login != 'dependabot[bot]'
&& fromJSON('["self-hosted", "linux", "x64", "vm-backup"]')
|| 'dsh-ubuntu-24-04-16core' }}
runs-on: ubuntu-24.04
name: node 24 / benchmarks
# Wall-clock budgets need an otherwise idle runner, so this job runs the
# benchmark lane alone instead of joining a concurrent gate aggregate.
timeout-minutes: 30
timeout-minutes: 15
steps:
- uses: actions/checkout@v6
with:
@@ -189,7 +185,6 @@ jobs:
echo "path=$store_path" >> "$GITHUB_OUTPUT"
- uses: actions/cache/restore@v4
if: vars.DSH_CI_FAILOVER_LINUX != 'selfhosted' || github.event.pull_request.user.login == 'dependabot[bot]'
with:
path: ${{ steps.pnpm-store.outputs.path }}
key: ${{ runner.os }}-node-${{ env.PRIMARY_NODE_VERSION }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
@@ -200,6 +195,8 @@ jobs:
run: pnpm install --frozen-lockfile
- name: Run performance benchmarks
env:
DSH_GATE_VERBOSE: '1'
run: pnpm run check:ci:bench
node-24-consumers: