mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-12-04 04:37:20 +08:00
#581 (query-path memory growth) does not reproduce in our soak: a 10-min, 200-file query-only run shows RSS flat-to-shrinking and committed plateauing (mimalloc already purges on free, purge_delay=0). Rather than ship speculative mitigations for a leak we cannot measure, this adds the observability to find it where it actually occurs, plus a continuous guard. - diag: the diagnostics writer now appends a PERSISTENT NDJSON memory trajectory (one sample / 5s: rss, committed, peak fields, page_faults, fd, queries), kept on exit (rotates to a .1 generation past 8 MB) so users can send the time series post-mortem. The previous latest-snapshot file was overwritten every 5s and deleted on stop. - ci: the soak now also runs a read-only query-leak leg (CBM_SOAK_MODE query-leak, no reindex/mutate) on every platform including Windows, so a regression that introduces a query-path leak is caught. soak-test.sh RESULTS_DIR is now env-overridable so both legs keep separate artifacts. - docs: README Troubleshooting and Diagnostics section + a bug-report field explain the no-telemetry stance and how to capture and share the trajectory. Build clean; unit suite 5714/0; trajectory verified to persist post-exit. Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
137 lines
4.3 KiB
YAML
137 lines
4.3 KiB
YAML
name: Bug report
|
|
description: Something is wrong — help us reproduce it exactly.
|
|
labels: ["bug"]
|
|
body:
|
|
- type: markdown
|
|
attributes:
|
|
value: |
|
|
Thanks for the report! The single most valuable thing you can give us
|
|
is a **reproduction we can run ourselves**.
|
|
|
|
**Please do not paste proprietary code or logs.** If the problem
|
|
shows up on private code, reproduce it with a small dummy snippet or
|
|
point us at a **public OSS repository** (e.g. zod, django, serilog)
|
|
plus the file/commit where it happens — that is how we debug here.
|
|
|
|
- type: input
|
|
id: version
|
|
attributes:
|
|
label: Version
|
|
description: Output of `codebase-memory-mcp --version`
|
|
placeholder: codebase-memory-mcp 0.8.1
|
|
validations:
|
|
required: true
|
|
|
|
- type: dropdown
|
|
id: platform
|
|
attributes:
|
|
label: Platform
|
|
options:
|
|
- macOS (Apple Silicon)
|
|
- macOS (Intel)
|
|
- Linux (x64)
|
|
- Linux (arm64)
|
|
- Windows (x64)
|
|
validations:
|
|
required: true
|
|
|
|
- type: dropdown
|
|
id: channel
|
|
attributes:
|
|
label: Install channel
|
|
options:
|
|
- GitHub release archive / install.sh / install.ps1
|
|
- npm
|
|
- PyPI
|
|
- Homebrew
|
|
- AUR
|
|
- Scoop / Winget / Chocolatey
|
|
- go install
|
|
- Built from source
|
|
validations:
|
|
required: true
|
|
|
|
- type: dropdown
|
|
id: variant
|
|
attributes:
|
|
label: Binary variant
|
|
options:
|
|
- standard
|
|
- ui
|
|
validations:
|
|
required: true
|
|
|
|
- type: textarea
|
|
id: what-happened
|
|
attributes:
|
|
label: What happened, and what did you expect?
|
|
description: Actual vs. expected behavior, in a few sentences.
|
|
validations:
|
|
required: true
|
|
|
|
- type: textarea
|
|
id: reproduction
|
|
attributes:
|
|
label: Reproduction
|
|
description: |
|
|
The exact steps so we can reproduce it ourselves:
|
|
1. The code being indexed — a minimal dummy snippet pasted here, or a
|
|
public repo + commit + file path (e.g. `colinhacks/zod@a1b2c3d,
|
|
packages/zod/src/v4/core/parse.ts`).
|
|
2. The exact command or MCP tool call, including JSON arguments
|
|
(e.g. `codebase-memory-mcp cli search_graph '{"project":"...",
|
|
"name_pattern":"..."}'`).
|
|
3. What the output was vs. what it should have been.
|
|
placeholder: |
|
|
1. Code: public repo colinhacks/zod @ <commit>, file packages/...
|
|
— or dummy snippet:
|
|
```ts
|
|
interface Model<T> { create(doc: Partial<T>): Promise<T>; }
|
|
```
|
|
2. Command: codebase-memory-mcp cli index_repository '{"repo_path":"/tmp/zod"}'
|
|
3. Result: ... / Expected: ...
|
|
validations:
|
|
required: true
|
|
|
|
- type: textarea
|
|
id: logs
|
|
attributes:
|
|
label: Logs
|
|
description: |
|
|
Relevant log output (stderr of the binary; for the UI variant also
|
|
`GET /api/logs`). Will be auto-formatted as code — no backticks needed.
|
|
Please check for private paths/strings before pasting.
|
|
render: text
|
|
|
|
- type: textarea
|
|
id: diagnostics
|
|
attributes:
|
|
label: Diagnostics trajectory (memory / performance / leak issues)
|
|
description: |
|
|
We collect **no telemetry**, so for a memory or performance problem we
|
|
need the diagnostics trajectory from your machine. Set
|
|
`CBM_DIAGNOSTICS=1`, reproduce the issue, then attach (or paste) the file
|
|
`cbm-diagnostics-<pid>.ndjson` from your temp dir (`$TMPDIR` / `/tmp`, or
|
|
`%TEMP%` on Windows). It records only resource counters (rss, committed,
|
|
fds, query counts) over time — no code or queries. See the README
|
|
"Troubleshooting & Diagnostics" section. Pasting an agent's summary of
|
|
the trajectory is also fine.
|
|
render: text
|
|
|
|
- type: input
|
|
id: scale
|
|
attributes:
|
|
label: Project scale (if relevant)
|
|
description: Approximate nodes/edges/files from the indexing summary
|
|
placeholder: "5,656 nodes / 14,517 edges / 475 files"
|
|
|
|
- type: checkboxes
|
|
id: confirmations
|
|
attributes:
|
|
label: Confirmations
|
|
options:
|
|
- label: I searched existing issues and this is not a duplicate.
|
|
required: true
|
|
- label: My reproduction uses shareable code (a dummy snippet or a public OSS repository), not proprietary code.
|
|
required: true
|