Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
150814b
fix: configure registry for vlt benchmarks
lukekarrys Aug 4, 2026
0796674
fix: use vlt registry in vlt configs
lukekarrys Aug 4, 2026
f1bf024
chore: record vlt registry in lockfile
lukekarrys Aug 4, 2026
abd6c62
fix: isolate berry fixtures from root project
lukekarrys Aug 4, 2026
a54526e
fix: scope vlt registry to benchmarks
lukekarrys Aug 4, 2026
7cc6190
fix: require vlt registry auth token
lukekarrys Aug 4, 2026
5b22f3c
fix: keep vlt build script benchmarks
lukekarrys Aug 4, 2026
0679dda
chore: narrow vlt registry fix
lukekarrys Aug 4, 2026
da8252f
refactor: use native vlt registry environment
lukekarrys Aug 4, 2026
aae1366
ci: upload benchmark logs on failure
lukekarrys Aug 4, 2026
ceda54e
ci: diagnose vlt registry authentication
lukekarrys Aug 4, 2026
af68a60
ci: trace vlt registry requests
lukekarrys Aug 4, 2026
975ddb9
ci: include vlt request start traces
lukekarrys Aug 4, 2026
92b25df
fix: align vlt registry with tarball URLs
lukekarrys Aug 4, 2026
c3112df
fix: use vltpkg account registry
lukekarrys Aug 4, 2026
002ad73
ci: avoid full-history checkout
lukekarrys Aug 4, 2026
3f13e0f
fix: use setup-style vlt registry config
lukekarrys Aug 4, 2026
ff5e0e5
fix: scope vlt auth to registry origin
lukekarrys Aug 4, 2026
a45ed5c
fix: configure path-scoped vlt auth
lukekarrys Aug 4, 2026
9fd366b
fix: scope auth to vltpkg registry
lukekarrys Aug 4, 2026
e6a5e83
ci: trace authenticated vlt requests
lukekarrys Aug 4, 2026
e105937
ci: remove vlt request tracing
lukekarrys Aug 4, 2026
698c4b2
fix: use vlt account registry
lukekarrys Aug 4, 2026
f582465
fix: expose vlt token to registry benchmarks
lukekarrys Aug 4, 2026
702b19c
refactor: simplify vlt authentication setup
lukekarrys Aug 4, 2026
c3cc69d
fix: keep app installs on npmjs
lukekarrys Aug 4, 2026
58f1b76
chore: remove diagnostic artifact conditions
lukekarrys Aug 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/benchmark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-depth: 2
- name: Check changed files
id: check
run: |
Expand Down Expand Up @@ -162,9 +162,9 @@ jobs:
echo "runs=$runs" >> "$GITHUB_OUTPUT"
- name: Run Benchmarks variations
env:
VLT_REGISTRY: https://registry.vlt.io/vlt/npm/
VLT_TOKEN: ${{ secrets.VLT_REGISTRY_AUTH_TOKEN }}
CODEARTIFACT_AUTH_TOKEN: ${{ steps.aws.outputs.token }}
VLT_REGISTRY_URL: ${{ secrets.VLT_REGISTRY_URL }}
VLT_REGISTRY_AUTH_TOKEN: ${{ secrets.VLT_REGISTRY_AUTH_TOKEN }}
CLOUDSMITH_REGISTRY: ${{ secrets.CLOUDSMITH_REGISTRY }}
CLOUDSMITH_TOKEN: ${{ secrets.CLOUDSMITH_TOKEN }}
GH_REGISTRY: ${{ secrets.GH_REGISTRY }}
Expand Down Expand Up @@ -220,7 +220,7 @@ jobs:
- name: Build Charts View
run: |
pushd app
vlt install || true
vlt install
vlt run build
popd
- name: Upload Processed Results
Expand Down Expand Up @@ -274,7 +274,7 @@ jobs:
- name: Build App
run: |
pushd app
vlt install || true
vlt install
vlt run build
popd
- name: Prepare deploy directory
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ Preferred workflow (matches CI):

```sh
cd app
vlt install || npm install
vlt install
vlr dev
```

Expand Down
716 changes: 360 additions & 356 deletions app/vlt-lock.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions app/vlt.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"config": {
"registries": {
"npm": "https://registry.npmjs.org/"
},
"command": {
"install": {
"allow-scripts": "#esbuild"
Expand Down
7 changes: 7 additions & 0 deletions fixtures/astro/vlt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"config": {
"registries": {
"npm": "https://registry.vlt.io/vlt/npm/"
}
}
}
7 changes: 6 additions & 1 deletion fixtures/babylon/vlt.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{
"workspaces": ["packages/**/*"]
"workspaces": ["packages/**/*"],
"config": {
"registries": {
"npm": "https://registry.vlt.io/vlt/npm/"
}
}
}
7 changes: 7 additions & 0 deletions fixtures/large/vlt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"config": {
"registries": {
"npm": "https://registry.vlt.io/vlt/npm/"
}
}
}
7 changes: 7 additions & 0 deletions fixtures/next/vlt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"config": {
"registries": {
"npm": "https://registry.vlt.io/vlt/npm/"
}
}
}
7 changes: 7 additions & 0 deletions fixtures/run/vlt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"config": {
"registries": {
"npm": "https://registry.vlt.io/vlt/npm/"
}
}
}
7 changes: 7 additions & 0 deletions fixtures/svelte/vlt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"config": {
"registries": {
"npm": "https://registry.vlt.io/vlt/npm/"
}
}
}
7 changes: 7 additions & 0 deletions fixtures/vue/vlt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"config": {
"registries": {
"npm": "https://registry.vlt.io/vlt/npm/"
}
}
}
2 changes: 1 addition & 1 deletion scripts/download-latest-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,5 +181,5 @@ echo " cp results/latest/chart-data.json app/latest/chart-data.json"
echo
echo " 3) Run the app locally:"
echo " cd app"
echo " vlt install || npm install"
echo " vlt install"
echo " npm run dev"
6 changes: 3 additions & 3 deletions scripts/registry/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ BENCH_SETUP_REGISTRY_NPM="npm config set registry \"$BENCH_REGISTRY_NPM_URL\" --
# The vlt registry auth token is appended with a random suffix with the iteration number to
# ensure that a fresh cache is used for each iteration. A future update to the vlt registry
# will allow sharing a public cache regardless of the authorization header.
BENCH_SETUP_REGISTRY_VLT="npm config set registry \"$BENCH_REGISTRY_VLT_URL\" --location=project && npm config set \"//${BENCH_REGISTRY_VLT_URL_NPMRC_KEY}:_authToken=\\\${VLT_REGISTRY_AUTH_TOKEN}:$(head -c 16 /dev/urandom | xxd -p)_\\\${HYPERFINE_ITERATION}\" --location=project"
BENCH_SETUP_REGISTRY_VLT="npm config set registry \"$BENCH_REGISTRY_VLT_URL\" --location=project && npm config set \"//${BENCH_REGISTRY_VLT_URL_NPMRC_KEY}:_authToken=\\\${VLT_TOKEN}:$(head -c 16 /dev/urandom | xxd -p)_\\\${HYPERFINE_ITERATION}\" --location=project"
BENCH_SETUP_REGISTRY_AWS="npm config set registry \"$BENCH_REGISTRY_AWS_URL\" --location=project && npm config set \"//${BENCH_REGISTRY_AWS_NPMRC_KEY}:_authToken=\\\${CODEARTIFACT_AUTH_TOKEN}\" --location=project"
BENCH_SETUP_REGISTRY_CLOUDSMITH="npm config set registry \"$BENCH_REGISTRY_CLOUDSMITH_URL\" --location=project && npm config set \"//${BENCH_REGISTRY_CLOUDSMITH_NPMRC_KEY}:_authToken=\\\${CLOUDSMITH_TOKEN}\" --location=project"
BENCH_SETUP_REGISTRY_GITHUB="npm config set registry \"$BENCH_REGISTRY_GITHUB_URL\" --location=project && npm config set \"//${BENCH_REGISTRY_GITHUB_NPMRC_KEY}:_authToken=\\\${GH_AUTH_TOKEN}\" --location=project"
Expand Down Expand Up @@ -156,8 +156,8 @@ for entry in $(echo "$BENCH_INCLUDE_REGISTRY" | tr ',' '\n'); do
esac
done

if [ -n "$BENCH_INCLUDE_REG_VLT" ] && [ -z "${VLT_REGISTRY_AUTH_TOKEN:-}" ]; then
echo "Error: 'vlt' registry was requested, but VLT_REGISTRY_AUTH_TOKEN is not set"
if [ -n "$BENCH_INCLUDE_REG_VLT" ] && [ -z "${VLT_TOKEN:-}" ]; then
echo "Error: 'vlt' registry was requested, but VLT_TOKEN is not set"
exit 1
fi

Expand Down
12 changes: 2 additions & 10 deletions scripts/variations/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,8 @@ BENCH_INSTALL_BERRY="corepack yarn@latest install"
BENCH_INSTALL_ZPM="yarn install --silent"
BENCH_INSTALL_PNPM="corepack pnpm@latest install --ignore-scripts --silent"
BENCH_INSTALL_PACQUET="/tmp/pnpm12/bin/pnpm install --ignore-scripts --silent"
# vlt uses its own config (not .npmrc). When vlt registry credentials are
# available, configure vlt to use the vlt registry via --registry flag and
# VLT_REGISTRY / VLT_TOKEN env vars.
if [ -n "${VLT_REGISTRY_URL:-}" ] && [ -n "${VLT_REGISTRY_AUTH_TOKEN:-}" ]; then
export VLT_REGISTRY="$VLT_REGISTRY_URL"
export VLT_TOKEN="$VLT_REGISTRY_AUTH_TOKEN"
BENCH_INSTALL_VLT="vlt install --registry=$VLT_REGISTRY_URL --view=silent"
else
BENCH_INSTALL_VLT="vlt install --view=silent"
fi
# vlt uses the npm registry alias configured by each fixture's vlt.json.
BENCH_INSTALL_VLT="vlt install --view=silent"
BENCH_INSTALL_BUN="bun install --ignore-scripts --silent"
BENCH_INSTALL_DENO="deno install --quiet"
BENCH_INSTALL_AUBE="aube install --silent"
Expand Down