Commit 26567d4
committed
ci+docs(perf-gate): enrich memory regression gate + OOM-fix evidence (Phase D)
Phase D of the 2026-05-13 OOM-fix plan — locks in the empirical
gain from Phases A-C with a CI gate plus documents the verified
memory profile in CLAUDE.md.
Adds to .github/workflows/perf-gate.yml a new step "Enrich memory
gate" that:
- /usr/bin/time -v's `codeiq enrich /tmp/fm-perf` after the existing
index gate runs.
- Parses Maximum resident set size from the time output.
- Asserts peak RSS <= MAX_ENRICH_RSS_KB (300 MB / ~2.7x over the
local 108 MB baseline). Tight enough to surface real regressions,
loose enough to absorb CI runner variance.
Doc update — CLAUDE.md "### Performance" section now records:
- Pre-fix airflow peak: 3.8 GB → post-Phase-A+B+C: 1.27 GB
- Pre-fix ~/projects/ peak: OOM (exit 137) → post-fix: 3.12 GB
- Tunable knobs: --memprofile, --max-buffer-pool, --copy-threads
Plan: docs/superpowers/plans/2026-05-13-enrich-oom-fix.md Phase D.
Verification:
- go test ./... -count=1: 877 pass
- go test ./... -race -count=1: green (verified locally pre-PR)
- perf-gate workflow yml lints clean1 parent 51efda7 commit 26567d4
2 files changed
Lines changed: 65 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
41 | 48 | | |
42 | 49 | | |
43 | 50 | | |
| |||
108 | 115 | | |
109 | 116 | | |
110 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
432 | 460 | | |
433 | 461 | | |
434 | 462 | | |
| |||
0 commit comments