Something went wrong. Try again.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667#!/bin/sh# Pinned OSS benchmark corpus: shallow, blobless, sparse clones at a fixed commit SHA,# checking out only *.ts/*.mts/*.cts. Idempotent: re-running a project that's already# at its pinned SHA with its sparse-checkout set is a no-op.## Lands in the MAIN checkout's vendor/oss/ (this script's dir may be a worktree whose# vendor/oss is a symlink to it), so later agents share one corpus regardless of which# worktree ran this script.set -e# Disable pathname expansion: the sparse-checkout patterns below (e.g. "/**/*.ts") must# reach git literally. Without this, the unquoted `$patterns` expansion in fetch_oss()# globs against this machine's real filesystem and silently substitutes whatever files# happen to match, corrupting the sparse-checkout set.set -fcd "$(dirname "$0")/.."
# name repo pinned-SHA (default-branch HEAD on 2026-11-03) sparse paths (space-separated, non-cone globs; always includes *.ts/*.mts/*.cts)fetch_oss() { name=$1; repo=$2; sha=$3; shift 3 dir="vendor/oss/$name" if [ -d "$dir/.git" ]; then have=$(git -C "$dir" rev-parse HEAD 2>/dev/null || echo "") if [ "$have" = "$sha" ]; then echo "oss: $name already at $sha, skipping" return 0 fi else echo "oss: cloning $name" git clone -q --filter=blob:none --sparse --no-checkout --depth 1 "https://github.com/$repo" "$dir" fi patterns="$*" if [ -z "$patterns" ]; then patterns="/**/*.ts /**/*.mts /**/*.cts" fi # shellcheck disable=SC2086 git -C "$dir" sparse-checkout set --no-cone $patterns git -C "$dir" fetch -q --depth 1 origin "$sha" git -C "$dir" checkout -q "$sha" echo "oss: $name @ $sha ($(du -sh "$dir" 2>/dev/null | cut -f1), $(find "$dir" -name '*.ts' -o -name '*.mts' -o -name '*.cts' | wc -l | tr -d ' ') files)"}
fetch_oss sentry getsentry/sentry c60c314be4912f6cab4d17e2f15eca5242ef7a2b \ "/static/**/*.ts" "/static/**/*.mts" "/static/**/*.cts"fetch_oss sentry-javascript getsentry/sentry-javascript b063c3109854b193880cb7e5db6db3d816a94f80fetch_oss astro withastro/astro 9591b52d2f27b9325ce2df25f69dfc387ee0a97cfetch_oss vscode microsoft/vscode 0a047a6d7143c0ce842d76bf488edbf34715a4c5 \ "/src/**/*.ts" "/src/**/*.mts" "/src/**/*.cts"fetch_oss angular angular/angular 37563fc32267fd0fcbdff8caf98862962e5d46b5 \ "/packages/**/*.ts" "/packages/**/*.mts" "/packages/**/*.cts"fetch_oss nest nestjs/nest 206a5ccd302739a552ce000c1193c606c1ca58adfetch_oss typeorm typeorm/typeorm 5bdc67882dee5a02d975d5ed140c9c3f91661116fetch_oss babylonjs BabylonJS/Babylon.js 2a24c01e271b59f962335ad510a17b65a746f663 \ "/packages/dev/**/*.ts" "/packages/dev/**/*.mts" "/packages/dev/**/*.cts"fetch_oss vite vitejs/vite b3cb0575aff63004a71301a1ec798aeea2aa05d7fetch_oss vitest vitest-dev/vitest 289caab9cf9e9440e2a0be2d8783f7bd0f489a8bfetch_oss vue-core vuejs/core f64bfa57e0acba8150325abe598fe4e287e17692fetch_oss hono honojs/hono c91b60a251186fb024557c6d55a11d8e388f179cfetch_oss zod colinhacks/zod 2554b70c3d4a80273381e61d527d820720626440fetch_oss effect Effect-TS/effect 7a87ff9b88b1a570995b1b5570559c1b4dd5367bfetch_oss drizzle-orm drizzle-team/drizzle-orm eab8bedbb65d5429c54e612ddbd88aa23091d398fetch_oss prisma prisma/prisma bb69b5cc061fd7cde924353104168156675db359# excalidraw/excalidraw: .ts only. The default patterns already exclude .tsx (not .ts/.mts/.cts),# so no extra exclusion pattern is needed.fetch_oss excalidraw excalidraw/excalidraw dd2f8fc32b92cbf56f4abee6a0cf3b14681b4b55
echo "oss: done. total size: $(du -shL vendor/oss 2>/dev/null | cut -f1)"