Skip to content

Commit f9fa6ac

Browse files
committed
test(cli): time check through the published bin
1 parent e1b6198 commit f9fa6ac

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

‎.github/checkfast/run.sh‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Times `hyperframes check` per phase on 6 fixtures (3 runs each), plus node boot and process spawn floors.
22
set -u
3-
CLI="node packages/cli/dist/cli.js"
3+
CLI="node packages/cli/bin/hyperframes.mjs"
44
OUT=checkfast-out; mkdir -p $OUT/runs $OUT/cpuprof
55
ms() { s=$(date +%s%N); "$@" >/dev/null 2>&1; e=$(date +%s%N); echo $(( (e-s)/1000000 )); }
66
$CLI browser ensure > $OUT/browser.log 2>&1 || $CLI browser > $OUT/browser.log 2>&1
@@ -26,5 +26,6 @@ for src in $FX; do
2626
(cd packages/cli && npx tsx ../../.github/checkfast/inproc.mts $D ../../$OUT/runs/$fx 2>&1 | grep INPROC | sed "s/^/$fx /") | tee -a $OUT/inproc.txt
2727
done
2828
cp -r packages/producer/tests/chat/src $W/cpuprof
29-
node --cpu-prof --cpu-prof-dir=$OUT/cpuprof packages/cli/dist/cli.js check $W/cpuprof --json > /dev/null 2>&1
29+
$CLI check $W/cpuprof --json > /dev/null 2>&1
30+
node --cpu-prof --cpu-prof-dir=$OUT/cpuprof packages/cli/bin/hyperframes.mjs check $W/cpuprof --json > /dev/null 2>&1
3031
node .github/checkfast/prof-table.mjs $OUT/runs | tee $OUT/prof-table.txt

‎.github/workflows/checkfast-timing.yml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,13 @@ jobs:
4949
shell: pwsh
5050
run: Get-MpComputerStatus | Select-Object RealTimeProtectionEnabled, AntivirusEnabled | Format-List
5151
- run: bun install --frozen-lockfile
52-
- run: bun run build
52+
- name: Build the CLI and what it bundles
53+
shell: bash
54+
run: |
55+
bun run --filter '@hyperframes/{parsers,lint,studio-server}' build
56+
bun run --filter @hyperframes/core build
57+
bun run --filter '@hyperframes/{engine,producer,player,studio}' build
58+
bun run --filter @hyperframes/cli build
5359
- name: Time check
5460
shell: bash
5561
run: bash .github/checkfast/run.sh

0 commit comments

Comments
 (0)