Skip to content

Commit 0cd0e43

Browse files
committed
ci: run deterministic long-term soak coverage
1 parent 16a93b6 commit 0cd0e43

1 file changed

Lines changed: 9 additions & 25 deletions

File tree

.github/workflows/agent-verify.yml

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,24 @@ name: Agent verification
22

33
on:
44
push:
5-
branches: [agent/optimize-performance-memory]
6-
7-
permissions:
8-
contents: write
5+
branches:
6+
- agent/optimize-performance-memory
97

108
jobs:
119
test:
1210
runs-on: ubuntu-latest
13-
timeout-minutes: 30
11+
timeout-minutes: 45
1412
steps:
1513
- uses: actions/checkout@v4
16-
with:
17-
ref: agent/optimize-performance-memory
18-
- name: Patch return trap
19-
run: |
20-
python3 - <<'PY'
21-
from pathlib import Path
22-
p=Path('src/v86_emu.ts'); s=p.read_text()
23-
old='const STOP_TRAMPOLINE = new Uint8Array([0xe6, STOP_PORT]);'
24-
new='// HLT stops the current warmed JIT block immediately after the OUT callback.\nconst STOP_TRAMPOLINE = new Uint8Array([0xe6, STOP_PORT, 0xf4]);'
25-
if old in s: p.write_text(s.replace(old,new,1))
26-
elif 'new Uint8Array([0xe6, STOP_PORT, 0xf4])' not in s: raise SystemExit('unexpected stop trampoline')
27-
PY
28-
if ! git diff --quiet -- src/v86_emu.ts; then
29-
git config user.name github-actions[bot]
30-
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
31-
git add src/v86_emu.ts
32-
git commit -m 'fix: halt immediately after the v86 return trap'
33-
git push origin HEAD:agent/optimize-performance-memory
34-
fi
3514
- uses: actions/setup-node@v4
3615
with:
3716
node-version: 24
3817
cache: npm
3918
- run: npm ci
4019
- run: npm test
41-
- run: npm run benchmark:soak
20+
- name: f1 10000-call deterministic soak
21+
run: npm run benchmark:soak
22+
- name: all voices 2000-call deterministic soak
23+
run: |
24+
npm run build
25+
BENCH_LONG_VOICES=dvd,f1,f2,imd1,jgr,m1,m2,r1 BENCH_SOAK_ITERATIONS=2000 node --expose-gc benchmark/long-input.mjs

0 commit comments

Comments
 (0)