@@ -198,44 +198,6 @@ jobs:
198198 repl bench checkout/.bench/*/closed.json
199199 include-hidden-files : " true"
200200
201- - name : Compare mounted REPL typing on the PR revisions
202- if : matrix.host == 'ubuntu-latest' && github.event_name == 'pull_request'
203- id : typing
204- working-directory : repl bench checkout
205- env :
206- BASE_REVISION : ${{ github.event.pull_request.base.sha }}
207- HEAD_REVISION : ${{ github.event.pull_request.head.sha }}
208- run : |
209- set -euo pipefail
210- git fetch --no-tags --depth=1 origin "$BASE_REVISION" "$HEAD_REVISION"
211- changed=$(git diff --no-renames --name-only "$BASE_REVISION" "$HEAD_REVISION" -- \
212- packages/ examples/repl-bench/ deno.json deno.lock package.json \
213- pnpm-lock.yaml bun.lock scripts/setup.ts scripts/deps.ts scripts/lib/ \
214- .github/workflows/ci.yml)
215- if [[ -z "$changed" ]]; then
216- exit 0
217- fi
218- printf '%s\n' 'affected=true' >> "$GITHUB_OUTPUT"
219- scratch=$(mktemp -d "$RUNNER_TEMP/repl-typing-worktrees.XXXXXXXX")
220- trap 'git worktree remove --force "$scratch/candidate" || true; git worktree remove --force "$scratch/baseline" || true; rmdir "$scratch"' EXIT
221- git worktree add --detach "$scratch/baseline" "$BASE_REVISION"
222- git worktree add --detach "$scratch/candidate" "$HEAD_REVISION"
223- (cd "$scratch/baseline" && deno task setup)
224- (cd "$scratch/candidate" && deno task setup)
225- report="$RUNNER_TEMP/repl-typing-latency/${GITHUB_RUN_ATTEMPT}.json"
226- deno run --allow-all --cached-only --frozen --node-modules-dir=none \
227- examples/repl-bench/typing-latency.ts "$scratch/baseline" "$scratch/candidate" "$report" \
228- | tee -a "$GITHUB_STEP_SUMMARY"
229- (cd "$scratch/candidate" && deno task test packages/cli/tests/repl-sidekick-typing.test.ts)
230-
231- - uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
232- if : ${{ always() && steps.typing.outputs.affected == 'true' }}
233- with :
234- name : repl-typing-latency-attempt-${{ github.run_attempt }}
235- path : ${{ runner.temp }}/repl-typing-latency/
236- if-no-files-found : error
237- retention-days : " 7"
238-
239201 # The same command the release publishes with, minus --dry-run. Catches slow
240202 # types and unresolvable specifiers before they reach a tag.
241203 jsr :
0 commit comments