Title: gap CLI heap still grows during a klona run after #61 (87 to 821 MB after GC; unattributed) · Issue #80 · TanStack/oracles · GitHub
Open Graph Title: gap CLI heap still grows during a klona run after #61 (87 to 821 MB after GC; unattributed) · Issue #80 · TanStack/oracles
X Title: gap CLI heap still grows during a klona run after #61 (87 to 821 MB after GC; unattributed) · Issue #80 · TanStack/oracles
Description: Summary On the klona four-file suite (295 mutants, 2 contexts, seed 20261112), the gap CLI's child heap still grows during a run, after the retention fixes in #61. Heap after a forced GC, sampled every 2 s in the check child, went from a...
Open Graph Description: Summary On the klona four-file suite (295 mutants, 2 contexts, seed 20261112), the gap CLI's child heap still grows during a run, after the retention fixes in #61. Heap after a forced GC, sampled e...
X Description: Summary On the klona four-file suite (295 mutants, 2 contexts, seed 20261112), the gap CLI's child heap still grows during a run, after the retention fixes in #61. Heap after a forced GC, sampl...
Opengraph URL: https://github.com/TanStack/oracles/issues/80
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"gap CLI heap still grows during a klona run after #61 (87 to 821 MB after GC; unattributed)","articleBody":"## Summary\n\nOn the klona four-file suite (295 mutants, 2 contexts, seed 20261112), the gap CLI's child heap still grows during a run, after the retention fixes in #61. Heap after a forced GC, sampled every 2 s in the check child, went from about 87 MB at the start to about 217 MB in the middle and about 821 MB near the end. The run passes at a 1024 MB cap (child peak 930 MB) and completes at 1536 MB (child peak 985 MB). Main (before #61) fails at 2048 MB with a heap-limit fatal.\n\nThe growth is not attributed. The retention counters that #61 checks (Vitest's `filesMap`, `pathsSet`, `idMap`, the Vite copy nodes, the cold store, the stale context totals) stay at zero after each batch, so the remaining growth is in something those counters do not measure.\n\n## Measurement\n\nCommit: `2b7efe6` on `fix/gap-cli-retention` (#61). Probe: the heap sampler preload (`--expose-gc`, forced GC every 2 s, main thread of the check child only).\n\n```sh\n# heap after GC, first / middle / last samples\ncd \u003ccheckout of 2b7efe6>/packages/oracles/oracle-gaps\nSAMPLE_FILE=/tmp/heap.jsonl node --expose-gc --import ./probe-gc.mjs ./index.mjs \\\n --package \u003cklona> --source src/index.js,src/lite.js,src/full.js,src/json.js \\\n --seed 20261112 --contexts 2 --mutants \u003cmutants dir> --out \u003cout>\n\n# child peak heap, no probe, cap at 1024 and 1536 MB\nnode --max-old-space-size=1024 --import ./peak.mjs ./index.mjs \u003csame args>\nnode --max-old-space-size=1536 --import ./peak.mjs ./index.mjs \u003csame args>\n```\n\n`probe-gc.mjs` samples `process.memoryUsage().heapUsed` after `globalThis.gc()` every 2 s, in the child only (`ORACLE_GAPS_GROUP` set). `peak.mjs` samples `v8.getHeapStatistics().used_heap_size` every 250 ms and prints the peak at exit.\n\nNumbers, from the local runs against `67f057d`/`59363c8` code:\n- heap after GC: 87 MB (first sample), 217 MB (middle), 821 MB (last sample before exit);\n- 1024 MB cap: exit 0, child peak 930 MB;\n- 1536 MB cap: exit 0, child peak 985 MB;\n- default 2048 MB heap on `main` (affeb1a): heap-limit fatal, `done error ... ran out of memory`.\n\n## What is ruled out\n\n- Vitest state entries of retired copies (`filesMap`, `pathsSet`, `idMap`): 0 after each batch.\n- Vite module nodes of retired copies: 0 after each batch.\n- Vite nodes of non-copy files: at most one per file (the query-stripped check in #61).\n- The cold run's store (`memoryStore`): keeps nothing.\n- Vite's transform text, measured as a size on `ce6c93d`: flat.\n\n## What is not known\n\n- Which structure holds the second-half growth (from 217 to 821 MB). A late heap snapshot, taken near 700 MB, is the next step; its retainer path is not yet checked.\n- Whether the growth follows klona's per-file working set (later files have more mutants and larger tests) rather than residue.\n\n## Limits\n\nThis issue is about measured heap growth, not a claimed leak. The measurements are from one suite on one machine, under varying load.\n","author":{"url":"https://github.com/KyleAMathews","@type":"Person","name":"KyleAMathews"},"datePublished":"2026-11-14T17:07:00Z","url":"https://github.com/TanStack/oracles/issues/80"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e0533262-e9a7-6f8c-240e-27f31f97f783 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C6F2:D5CEE:3D60D62:512692C:6AF9A866 |
| html-safe-nonce | a24d7ee13dc02acd024ce253577ee15ff572d91dc878b119a4b69a5160774c17 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNkYyOkQ1Q0VFOjNENjBENjI6NTEyNjkyQzo2QUY5QTg2NiIsInZpc2l0b3JfaWQiOiI3ODUwNjk3NjQzMjg0NjA1MDMwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1b1360c1029807b3502b7e79abe1009ad7d4817c900670aacbb39ae4838b2280 |
| hovercard-subject-tag | issue:6393303204 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/TanStack/oracles/80/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9e2a10007a965647bd17d0e5ab47192013363d3fd686ddf68eab2f9d7454cfce/TanStack/oracles/issues/80 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9e2a10007a965647bd17d0e5ab47192013363d3fd686ddf68eab2f9d7454cfce/TanStack/oracles/issues/80 |
| og:image:alt | Summary On the klona four-file suite (295 mutants, 2 contexts, seed 20261112), the gap CLI's child heap still grows during a run, after the retention fixes in #61. Heap after a forced GC, sampled e... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | KyleAMathews |
| hostname | github.com |
| expected-hostname | github.com |
| None | 612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7 |
| turbo-cache-control | no-preview |
| go-import | github.com/TanStack/oracles git https://github.com/TanStack/oracles.git |
| octolytics-dimension-user_id | 72518640 |
| octolytics-dimension-user_login | TanStack |
| octolytics-dimension-repository_id | 1443546044 |
| octolytics-dimension-repository_nwo | TanStack/oracles |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1443546044 |
| octolytics-dimension-repository_network_root_nwo | TanStack/oracles |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 072e34035c13c31543fba9f025cbbbda4210dae4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width