diff --git a/.github/workflows/metaharness-ci.yml b/.github/workflows/metaharness-ci.yml index 957d847dd5..1dc0b97e03 100644 --- a/.github/workflows/metaharness-ci.yml +++ b/.github/workflows/metaharness-ci.yml @@ -288,10 +288,29 @@ jobs: # CI runners are slower than Apple-Silicon baseline (~0.4μs); 10μs # ceiling gives ~25× headroom while still catching ~10× regressions. # 100k iters keeps the job fast (~50ms total work). + # iter 82 — also capture JSON output as artifact so historical perf + # data accumulates. Future regression analysis can diff across runs + # without re-running the bench. run: | node plugins/ruflo-metaharness/scripts/bench-similarity.mjs \ --iters 100000 \ - --max-mean-us 10 + --max-mean-us 10 \ + --format json > /tmp/bench-similarity.json + echo "## Similarity perf (iter 82 — artifact tracking)" >> $GITHUB_STEP_SUMMARY + node -e " + const j = JSON.parse(require('fs').readFileSync('/tmp/bench-similarity.json')); + for (const r of j.results) { + console.log('| ' + r.label.padEnd(18) + ' | mean ' + r.meanUs.toFixed(3) + 'μs | p99 ' + r.p99Us.toFixed(3) + 'μs |'); + } + " | tee -a $GITHUB_STEP_SUMMARY + + - name: Upload bench-similarity artifact (iter 82) + if: always() + uses: actions/upload-artifact@v4 + with: + name: bench-similarity-${{ github.run_id }} + path: /tmp/bench-similarity.json + retention-days: 90 - name: Build CLI dist (for dispatcher round-trip) run: | diff --git a/plugins/ruflo-metaharness/scripts/smoke.sh b/plugins/ruflo-metaharness/scripts/smoke.sh index 62e129f06c..31dbc0208c 100755 --- a/plugins/ruflo-metaharness/scripts/smoke.sh +++ b/plugins/ruflo-metaharness/scripts/smoke.sh @@ -191,6 +191,21 @@ grep -q "execCli(\[\s*'-y'\s*,\s*'metaharness@latest'" "$F" 2>/dev/null || \ grep -q "cwd: opts" "$F" || miss="$miss no-cwd-passthrough" [[ -z "$miss" ]] && ok || bad "$miss" +step "17z45. bench-similarity artifact + summary in CI (iter 82)" +miss="" +W="$ROOT/../../.github/workflows/metaharness-ci.yml" +# JSON output captured into artifact path +grep -q "/tmp/bench-similarity.json" "$W" 2>/dev/null || miss="$miss no-artifact-path" +# Format json flag added +grep -q -- "--format json > /tmp/bench-similarity.json" "$W" 2>/dev/null || miss="$miss no-json-redirect" +# Upload artifact step present +grep -q "Upload bench-similarity artifact" "$W" 2>/dev/null || miss="$miss no-upload-step" +grep -q "bench-similarity-\${{ github.run_id }}" "$W" 2>/dev/null || miss="$miss no-artifact-name" +grep -q "retention-days: 90" "$W" 2>/dev/null || miss="$miss no-retention" +# GITHUB_STEP_SUMMARY summary table +grep -q "Similarity perf (iter 82" "$W" 2>/dev/null || miss="$miss no-summary-header" +[[ -z "$miss" ]] && ok || bad "$miss" + step "17z44. fingerprint-schema compat tripwire (iter 81)" miss="" F="$ROOT/../../scripts/check-fingerprint-schema.mjs"