diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml index 558ca08621..e64918534a 100644 --- a/.github/workflows/perf.yml +++ b/.github/workflows/perf.yml @@ -15,6 +15,7 @@ concurrency: cancel-in-progress: true env: + PUPPETEER_SKIP_DOWNLOAD: true EXPERIMENT_BRANCH_NAME: ${{ github.head_ref || github.ref_name }} CONTROL_BRANCH_NAME: 'main' FIDELITY: 100 @@ -37,27 +38,25 @@ jobs: paths: packages/ - uses: wyvox/action-setup-pnpm@v3 - if: steps.did-change.outputs.changed == 'true' with: - node-version: '20.1.0' + node-version: '18' - name: RUN - if: steps.did-change.outputs.changed == 'true' + env: + NODE_OPTIONS: "--max-old-space-size=8192" run: pnpm run benchmark:setup - name: Remove unused artifacts - if: steps.did-change.outputs.changed == 'true' run: rm -rf ./tracerbench-results/traces && rm -rf ./tracerbench-results/traces.zip - name: Upload Tracerbench Artifacts - if: steps.did-change.outputs.changed == 'true' && (failure() || success()) + if: (failure() || success()) uses: actions/upload-artifact@v3 with: name: Trace Artifacts path: tracerbench-results - name: Write message - if: steps.did-change.outputs.changed == 'true' uses: mshick/add-pr-comment@v2 with: message-path: "tracerbench-results/msg.txt" diff --git a/bin/setup-bench.mjs b/bin/setup-bench.mjs index eee3ffd1d8..40d5378a35 100644 --- a/bin/setup-bench.mjs +++ b/bin/setup-bench.mjs @@ -174,7 +174,7 @@ await new Promise((resolve) => { try { const output = - await $`./node_modules/.bin/tracerbench compare --regressionThreshold 25 --sampleTimeout 60 --fidelity ${fidelity} --markers ${markers} --controlURL ${CONTROL_URL} --experimentURL ${EXPERIMENT_URL} --report --headless --cpuThrottleRate ${throttleRate}`; + await $`node --single-threaded-gc ./node_modules/tracerbench/bin/run compare --regressionThreshold 25 --sampleTimeout 60 --fidelity ${fidelity} --markers ${markers} --controlURL ${CONTROL_URL} --experimentURL ${EXPERIMENT_URL} --report --headless --cpuThrottleRate ${throttleRate}`; try { fs.writeFileSync( diff --git a/package.json b/package.json index b67affc741..7470673893 100644 --- a/package.json +++ b/package.json @@ -123,9 +123,12 @@ }, "packageManager": "pnpm@8.5.0", "volta": { - "node": "20.9.0", + "node": "22.9.0", "pnpm": "8.5.0" }, + "pcr": { + "revision": "5866970" + }, "pnpm": { "overrides": { "@rollup/pluginutils": "^5.0.2",