Skip to content

chore: bump version to 0.21.2 - #37

Merged
anvanster merged 1 commit into
mainfrom
release/0.21.2
Nov 15, 2026
Merged

anvanster merged 1 commit into
mainfrom
release/0.21.2

Conversation

@anvanster

Copy link
Copy Markdown
Member

Intent

Release preparation for CodeGraph 0.21.2. The user asked to bump the version and do a cross-platform build for publishing. PRs #34 (#29 engine thread cap + VS Code auto engine download), #35 (#33 --max-files honoured in LSP mode) and #36 (#31 PHP call resolution) were just squash-merged to main; this branch only bumps versions to 0.21.2 everywhere a release version lives: workspace Cargo.toml (and the Cargo.lock entries cargo regenerated), ENGINE_VERSION in mcp-package/bin/fetch-engine.js and in the JetBrains CodeGraphServerResolver.kt, mcp-package package.json and server.json, vscode/package.json (0.21.1 was the last published VSIX, so it goes to 0.21.2 too), jetbrains pluginVersion, and the VSIX file name in the README install instructions. Deliberate: CHANGELOG.md is not edited by hand (user rule); stale package-lock.json root versions are left alone; test fixtures that mock older versions (e.g. '0.21.0' in vscode engineDownload tests and fetch-engine tests) are intentionally not bumped because they test version comparison, not the current release. This is also the first time the three merged fixes are tested together on main, so a test failure from their combination is a real finding. After this merges, binaries for 5 platforms are built from main and published as GitHub release assets for tag v0.21.2.

What Changed

  • Bumps the workspace version in Cargo.toml from 0.21.0 to 0.21.2, along with the three matching workspace crate entries that cargo regenerated in Cargo.lock.
  • Sets ENGINE_VERSION to 0.21.2 in mcp-package/bin/fetch-engine.js and in the JetBrains CodeGraphServerResolver.kt, so the MCP package and JetBrains plugin download the 0.21.2 engine binaries. Also bumps the versions in mcp-package/package.json, mcp-package/server.json and jetbrains/gradle.properties (pluginVersion) from 0.21.0 to 0.21.2.
  • Bumps vscode/package.json from 0.21.1 to 0.21.2 and changes the VSIX file name in the install instructions in README.md and vscode/README.md to codegraph-0.21.2.vsix.

🤖 Generated with Claude Code

Risk Assessment

✅ Low: The diff only bumps version strings to 0.21.2, consistently in every place the intent names (workspace Cargo.toml and Cargo.lock, both ENGINE_VERSION pins, mcp-package package.json and server.json, vscode package.json, jetbrains pluginVersion, and both READMEs); the only remaining 0.21.0/0.21.1 strings are the test fixtures and the explanatory comment the intent deliberately leaves alone.

Testing

I rebuilt the 0.21.2 release binary from the target commit and drove each fix live, mostly through a Python LSP stdio client and partly through the engine's one-shot --run-tool CLI. Each run used a fresh copy of the test workspace so no saved index could affect the result. For #35, a 5300-file workspace stopped at 5000 files with no flags and indexed all 5300 with --max-files 30000. Setting the client's maxFiles to 100 overrode the flag and stopped indexing at 100. For #36, PHP callers and callees resolved to the receiver's class: Alpha's render() was called only from AlphaCaller and Beta's only from BetaCaller. That held over both LSP and the CLI, and \helper_fn() resolved the same way as helper_fn(). For #34, --max-threads 2 and --max-threads 1 cut compute threads from 6 to 2 and 1 and OS threads from 15 to 7 and 6, and the CODEGRAPH_MAX_THREADS=3 environment variable gave 3 compute threads. The vscode and mcp-package unit tests passed with the unbumped 0.21.0 fixtures. The publish script in stage+verify mode read 0.21.2 and confirmed both pin groups, then exited 1 because no platform binaries are staged yet, which is the intended refusal. All scenarios passed. There is no UI surface, so CLI and LSP transcripts are the evidence. The worktree is clean. The gitignored target/ directory was left in place because it existed before this run.

  • Live validation: ✅ go - 6 of 6 scenarios driven live against the product
Scenario Result Live Evidence
The rebuilt release engine from main reports version 0.21.2 ✅ pass live target/release/codegraph-server --version -> codegraph-server 0.21.2
LSP mode with --max-files 30000 on a 5300-file workspace indexes past 5000, and client maxFiles=100 overrides it (#35) ✅ pass live lsp-max-files-r2.txt: no flag -> 5000 plus the limit warning; --max-files 30000 -> 5300 indexed; client maxFiles=100 -> 100 indexed
PHP callers and callees resolve to the receiver's class, and \fn() resolves like fn() (#36) ✅ pass live php-resolution-r2.txt and lsp-php-callers-r2.txt: Alpha render <- show only, Beta render <- paint only; helper_fn <- abs_call and bare_call
--max-threads and CODEGRAPH_MAX_THREADS cap engine CPU threads (#34) ✅ pass live max-threads-r2.txt: 6->2->1 compute threads, OS threads 15->7->6; the environment variable gives 3
vscode and mcp-package unit tests pass with the unbumped 0.21.0 mock fixtures ✅ pass live vscode-tests.txt (44/44 pass); mcp-package-tests.txt (0 failures across fetch-engine and wrapper-args)
publish-release-assets.sh in stage+verify mode reads 0.21.2, confirms the pins and refuses without binaries ✅ pass live publish-stage-verify-r2.txt: version 0.21.2, tag v0.21.2, both pin groups confirm 0.21.2, all platform binaries MISSING, exit=1 (expected)
Evidence: LSP --max-files transcript (#35): default 5000, flag gives 5300, client maxFiles=100 overrides
$ ~/.no-mistakes/worktrees/b8216ba13cd2/01M7GN939ZRSSHAB114PXNDT4M/target/release/codegraph-server --stdio (client maxFiles=0)
parser metrics: {"metrics": [{"avgParseTimeMs": 0, "filesAttempted": 0, "filesFailed": 0, "filesSucceeded": 0, "language": "bash", "totalEntities": 0, "totalParseTimeMs": 0, "totalRelationships": 0}, {"avgParseTimeMs": 0, "filesAttempted": 0, "filesFailed": 0, "filesSucceeded": 0, "language": "c", "totalEntities": 0, "totalParseTimeMs": 0, "totalRelationships": 0}, {"avgParseTimeMs": 0, "filesAttempted": 0, "filesFailed": 0, "filesSucceeded": 0, "language": "clojure", "totalEntities": 0, "totalParseTimeMs": 0, "totalRelationships": 0}, {"avgParseTimeMs": 0, "filesAttempted": 0, "filesFailed": 0, "filesSucceed
files indexed: 5000
--- engine log lines mentioning limits/threads ---
2026-11-15T22:56:30.207467Z  INFO codegraph_server: Compute threads: 6
2026-11-15T22:56:30.208536Z  INFO codegraph_server::backend: CodeGraph config: index_on_startup=true, exclude_patterns=[], index_paths=[], max_file_size_kb=1024, embed_on_open=true, max_files=5000
2026-11-15T22:56:30.220293Z  INFO codegraph_server::backend: No persisted graph found for LSP
2026-11-15T22:56:31.209151Z  WARN codegraph_server::indexer: Reached max indexed file limit of 5000; stopping. Raise it with --max-files or the codegraph.maxFiles setting
Incremental index: 5000 parsed, 0 skipped (unchanged)

$ ~/.no-mistakes/worktrees/b8216ba13cd2/01M7GN939ZRSSHAB114PXNDT4M/target/release/codegraph-server --stdio --max-files 30000 (client maxFiles=0)
parser metrics: {"metrics": [{"avgParseTimeMs": 0, "filesAttempted": 0, "filesFailed": 0, "filesSucceeded": 0, "language": "bash", "totalEntities": 0, "totalParseTimeMs": 0, "totalRelationships": 0}, {"avgParseTimeMs": 0, "filesAttempted": 0, "filesFailed": 0, "filesSucceeded": 0, "language": "c", "totalEntities": 0, "totalParseTimeMs": 0, "totalRelationships": 0}, {"avgParseTimeMs": 0, "filesAttempted": 0, "filesFailed": 0, "filesSucceeded": 0, "language": "clojure", "totalEntities": 0, "totalParseTimeMs": 0, "totalRelationships": 0}, {"avgParseTimeMs": 0, "filesAttempted": 0, "filesFailed": 0, "filesSucceed
files indexed: 5300
--- engine log lines mentioning limits/threads ---
2026-11-15T22:56:32.483192Z  INFO codegraph_server: Compute threads: 6
2026-11-15T22:56:32.483652Z  INFO codegraph_server::backend: CodeGraph config: index_on_startup=true, exclude_patterns=[], index_paths=[], max_file_size_kb=1024, embed_on_open=true, max_files=30000
2026-11-15T22:56:32.656042Z  INFO codegraph_server::backend: No persisted graph found for LSP
Incremental index: 5300 parsed, 0 skipped (unchanged)

$ ~/.no-mistakes/worktrees/b8216ba13cd2/01M7GN939ZRSSHAB114PXNDT4M/target/release/codegraph-server --stdio --max-files 30000 (client maxFiles=100)
parser metrics: {"metrics": [{"avgParseTimeMs": 0, "filesAttempted": 0, "filesFailed": 0, "filesSucceeded": 0, "language": "bash", "totalEntities": 0, "totalParseTimeMs": 0, "totalRelationships": 0}, {"avgParseTimeMs": 0, "filesAttempted": 0, "filesFailed": 0, "filesSucceeded": 0, "language": "c", "totalEntities": 0, "totalParseTimeMs": 0, "totalRelationships": 0}, {"avgParseTimeMs": 0, "filesAttempted": 0, "filesFailed": 0, "filesSucceeded": 0, "language": "clojure", "totalEntities": 0, "totalParseTimeMs": 0, "totalRelationships": 0}, {"avgParseTimeMs": 0, "filesAttempted": 0, "filesFailed": 0, "filesSucceed
files indexed: 100
--- engine log lines mentioning limits/threads ---
2026-11-15T22:56:35.960923Z  INFO codegraph_server: Compute threads: 6
2026-11-15T22:56:35.961352Z  INFO codegraph_server::backend: CodeGraph config: index_on_startup=true, exclude_patterns=[], index_paths=[], max_file_size_kb=1024, embed_on_open=true, max_files=100
2026-11-15T22:56:35.968125Z  INFO codegraph_server::backend: No persisted graph found for LSP
2026-11-15T22:56:35.976496Z  WARN codegraph_server::indexer: Reached max indexed file limit of 100; stopping. Raise it with --max-files or the codegraph.maxFiles setting
2026-11-15T22:56:35.976531Z  WARN codegraph_server::indexer: Reached max indexed file limit of 100; stopping. Raise it with --max-files or the codegraph.maxFiles setting
Incremental index: 100 parsed, 0 skipped (unchanged)
Evidence: LSP PHP callers transcript (#36)
$ ~/.no-mistakes/worktrees/b8216ba13cd2/01M7GN939ZRSSHAB114PXNDT4M/target/release/codegraph-server --stdio (client maxFiles=0)
parser metrics: {"metrics": [{"avgParseTimeMs": 0, "filesAttempted": 0, "filesFailed": 0, "filesSucceeded": 0, "language": "bash", "totalEntities": 0, "totalParseTimeMs": 0, "totalRelationships": 0}, {"avgParseTimeMs": 0, "filesAttempted": 0, "filesFailed": 0, "filesSucceeded": 0, "language": "c", "totalEntities": 0, "totalParseTimeMs": 0, "totalRelationships": 0}, {"avgParseTimeMs": 0, "filesAttempted": 0, "filesFailed": 0, "filesSucceeded": 0, "language": "clojure", "totalEntities": 0, "totalParseTimeMs": 0, "totalRelationships": 0}, {"avgParseTimeMs": 0, "filesAttempted": 0, "filesFailed": 0, "filesSucceed
files indexed: 6
callers of Alpha render(): ['show'] from ['src/Web/AlphaCaller.php']
  raw: {"callers": [{"callSite": {"column": 0, "endColumn": 10000, "endLine": 5, "file": "~/.no-mistakes/evidence/01M7GN939ZRSSHAB114PXNDT4M/r2/php/src/Web/AlphaCaller.php", "line": 5}, "depth": 1, "nodeId": "5", "symbol": {"isPublic": true, "kind": "Function", "location": {"column": 0, "endColumn": 10000, "endLine": 5, "file": "~/.no-mistakes/evidence/01M7GN939ZRSSHAB114PXN
callers of Beta render(): ['paint'] from ['src/Web/BetaCaller.php']
  raw: {"callers": [{"callSite": {"column": 0, "endColumn": 10000, "endLine": 5, "file": "~/.no-mistakes/evidence/01M7GN939ZRSSHAB114PXNDT4M/r2/php/src/Web/BetaCaller.php", "line": 5}, "depth": 1, "nodeId": "9", "symbol": {"isPublic": true, "kind": "Function", "location": {"column": 0, "endColumn": 10000, "endLine": 5, "file": "~/.no-mistakes/evidence/01M7GN939ZRSSHAB114PXND
--- engine log lines mentioning limits/threads ---
2026-11-15T22:56:38.345427Z  INFO codegraph_server: Compute threads: 6
2026-11-15T22:56:38.345853Z  INFO codegraph_server::backend: CodeGraph config: index_on_startup=true, exclude_patterns=[], index_paths=[], max_file_size_kb=1024, embed_on_open=true, max_files=5000
2026-11-15T22:56:38.352447Z  INFO codegraph_server::backend: No persisted graph found for LSP
Incremental index: 6 parsed, 0 skipped (unchanged)
Indexed: file://~/.no-mistakes/evidence/01M7GN939ZRSSHAB114PXNDT4M/r2/php/src/Alpha/Screen.php
Indexed: file://~/.no-mistakes/evidence/01M7GN939ZRSSHAB114PXNDT4M/r2/php/src/Beta/Screen.php
Evidence: CLI PHP callers/callees, including \helper_fn() vs helper_fn() (#36)

callers(Alpha render) -> [show @ src/Web/AlphaCaller.php] callers(Beta render) -> [paint @ src/Web/BetaCaller.php] callees(AlphaCaller.show) -> [render @ src/Alpha/Screen.php] callees(BetaCaller.paint) -> [render @ src/Beta/Screen.php] callers(helper_fn) -> [abs_call, bare_call @ src/Fn/Users.php] callees(abs_call) -> [helper_fn]; callees(bare_call) -> [helper_fn]

$ codegraph-server --graph-only -w <ws> --run-tool codegraph_get_callers --tool-args '{"uri":"file://<ws>/src/Alpha/Screen.php","line":4}'
  -> callers [('show', 'src/Web/AlphaCaller.php')]
$ codegraph-server --graph-only -w <ws> --run-tool codegraph_get_callers --tool-args '{"uri":"file://<ws>/src/Beta/Screen.php","line":4}'
  -> callers [('paint', 'src/Web/BetaCaller.php')]
$ codegraph-server --graph-only -w <ws> --run-tool codegraph_get_callees --tool-args '{"uri":"file://<ws>/src/Web/AlphaCaller.php","line":5}'
  -> callees [('render', 'src/Alpha/Screen.php')]
$ codegraph-server --graph-only -w <ws> --run-tool codegraph_get_callees --tool-args '{"uri":"file://<ws>/src/Web/BetaCaller.php","line":5}'
  -> callees [('render', 'src/Beta/Screen.php')]
$ codegraph-server --graph-only -w <ws> --run-tool codegraph_get_callers --tool-args '{"uri":"file://<ws>/src/Fn/helpers.php","line":2}'
  -> callers [('abs_call', 'src/Fn/Users.php'), ('bare_call', 'src/Fn/Users.php')]
$ codegraph-server --graph-only -w <ws> --run-tool codegraph_get_callees --tool-args '{"uri":"file://<ws>/src/Fn/Users.php","line":4}'
  -> callees [('helper_fn', 'src/Fn/helpers.php')]
$ codegraph-server --graph-only -w <ws> --run-tool codegraph_get_callees --tool-args '{"uri":"file://<ws>/src/Fn/Users.php","line":5}'
  -> callees [('helper_fn', 'src/Fn/helpers.php')]
Evidence: Engine thread cap (#34)

no flag: Compute threads 6, os_threads=15 --max-threads 2: Compute threads 2, os_threads=7 --max-threads 1: Compute threads 1, os_threads=6 CODEGRAPH_MAX_THREADS=3: Compute threads 3, os_threads=9

codegraph-server --stdio                   Compute threads: 6  os_threads=15
codegraph-server --stdio --max-threads 2   Compute threads: 2  os_threads=7
codegraph-server --stdio --max-threads 1   Compute threads: 1  os_threads=6
CODEGRAPH_MAX_THREADS=3 codegraph-server --stdio  Compute threads: 3  os_threads=9
logical cpus: 12
Evidence: publish-release-assets.sh stage+verify output
CodeGraph release assets
  version: 0.21.2
  tag:     v0.21.2
  repo:    codegraph-ai/CodeGraph

  ✓ npm + VS Code  pins engine 0.21.2
  ✓ JetBrains      pins engine 0.21.2

  ✗ codegraph-server-darwin-arm64        MISSING
  ✗ codegraph-server-darwin-x64          MISSING
  ✗ codegraph-server-linux-arm64         MISSING
  ✗ codegraph-server-linux-x64           MISSING
  ✗ codegraph-server-win32-x64.exe       MISSING
  ✗ onnxruntime.dll                      MISSING

ERROR: not every platform artifact is present in vscode/bin/.

A partial release is worse than none: a client that resolves its own platform
and finds nothing has no way to tell "not built yet" from "never supported".
Build the missing platforms first, each on its own build host - except
linux-arm64, which ./scripts/build-linux-arm64.sh builds here - then re-run.
exit=1
Evidence: vscode vitest run

 RUN  v4.1.2 ~/.no-mistakes/worktrees/b8216ba13cd2/01M7GN939ZRSSHAB114PXNDT4M/vscode


 Test Files  5 passed (5)
      Tests  44 passed (44)
   Start at  14:57:58
   Duration  564ms (transform 261ms, setup 0ms, import 297ms, tests 431ms, environment 1ms)
Evidence: mcp-package npm test
PASS only one --mcp reaches the engine
PASS wrapper supplies --mcp when the client omits it
PASS exit 2 produces a plain explanation
PASS it is named as configuration, not a crash
PASS the actual arguments are shown
PASS the breaker engages within three identical failures

0 failure(s)
Evidence: LSP driver script
"""Drive codegraph-server over real LSP stdio: index a workspace, report file count + PHP callers.
usage: lsp_drive.py <binary> <workspace> <client_maxFiles> [engine args...]"""
import json, subprocess, sys, threading, time, os, queue

binary, ws, client_max = sys.argv[1], os.path.abspath(sys.argv[2]), int(sys.argv[3])
extra = sys.argv[4:]
cmd = [binary, "--stdio"] + extra
print("$", " ".join(cmd), "(client maxFiles=%d)" % client_max)
p = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
msgs = queue.Queue()
stderr_lines = []
def rd():
    f = p.stdout
    while True:
        hdr = b""
        while not hdr.endswith(b"\r\n\r\n"):
            c = f.read(1)
            if not c: return
            hdr += c
        n = int([l for l in hdr.decode().split("\r\n") if l.lower().startswith("content-length")][0].split(":")[1])
        msgs.put(json.loads(f.read(n)))
def rde():
    for l in p.stderr: stderr_lines.append(l.decode(errors="replace").rstrip())
threading.Thread(target=rd, daemon=True).start()
threading.Thread(target=rde, daemon=True).start()
nid = [0]
logs = []
def send(m):
    b = json.dumps(m).encode(); p.stdin.write(b"Content-Length: %d\r\n\r\n" % len(b) + b); p.stdin.flush()
def req(method, params, timeout=120):
    nid[0] += 1; i = nid[0]; send({"jsonrpc": "2.0", "id": i, "method": method, "params": params})
    end = time.time() + timeout
    while time.time() < end:
        try: m = msgs.get(timeout=1)
        except queue.Empty: continue
        if m.get("id") == i and "method" not in m: return m
        if "method" in m and "id" in m: send({"jsonrpc": "2.0", "id": m["id"], "result": None})
        elif m.get("method") == "window/logMessage": logs.append(m["params"]["message"])
    raise TimeoutError(method)
uri = "file://" + ws
opts = {"indexOnStartup": True}
if client_max: opts["maxFiles"] = client_max
req("initialize", {"processId": os.getpid(), "rootUri": uri, "workspaceFolders": [{"uri": uri, "name": "ws"}], "capabilities": {}, "initializationOptions": opts})
send({"jsonrpc": "2.0", "method": "initialized", "params": {}})
# wait for indexing: poll parser metrics until file count is stable
last, stable = -1, 0
for _ in range(240):
    if any(("Indexed " in l or "Incremental index" in l or "unchanged" in l) for l in logs): break
    time.sleep(1)
    r = req("workspace/executeCommand", {"command": "codegraph.getParserMetrics", "arguments": []})
    res = r.get("result") or {}
    total = sum((m.get("filesSucceeded", 0) or 0) for m in res.get("metrics", [])) if isinstance(res, dict) else 0
    if total == last and total > 0: stable += 1
    else: stable = 0
    last = total
    pass
print("parser metrics:", json.dumps(res)[:600])
print("files indexed:", last)
def callers(rel, line):
    path=os.path.join(ws, rel); send({"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"file://"+path,"languageId":"php","version":1,"text":open(path).read()}}}); time.sleep(2)
    r = req("workspace/executeCommand", {"command": "codegraph.getCallers", "arguments": [{"uri": "file://" + os.path.join(ws, rel), "line": line}]})
    return r.get("result", r.get("error"))
if os.path.exists(os.path.join(ws, "src/Alpha/Screen.php")):
    for rel in ("src/Alpha/Screen.php", "src/Beta/Screen.php"):
        res = callers(rel, 3)
        names = sorted({(c.get("symbol") or {}).get("name") for c in (res or {}).get("callers", [])}) if isinstance(res, dict) else res
        print("callers of %s render():" % rel.split("/")[1], names, "from", sorted({os.path.relpath(c["callSite"]["file"], ws) for c in res.get("callers", [])}))
        print("  raw:", json.dumps(res)[:400])
try:
    req("shutdown", None, 10); send({"jsonrpc": "2.0", "method": "exit"})
except Exception: pass
time.sleep(1); p.kill()
print("--- engine log lines mentioning limits/threads ---")
for l in stderr_lines + logs:
    if any(k in l.lower() for k in ("max indexed file limit", "max_files", "thread", "indexed", "incremental", "unchanged", "persisted graph")): print(l[:300])
- Outcome: 🔧 2 issues found → no changes applied ✅ across 2 runs (21m1s)

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

🔧 **Test** - 2 issues found → no changes applied ✅
Scenario Result Live Evidence
Release engine binary reports 0.21.2 from --version/--info ✅ pass live codegraph-server 0.21.2; --info: v0.21.2 (20f20b8)
npm/VS Code client fetches engine 0.21.2 from the v0.21.2 release tag ✅ pass live fetch-engine-pin.txt
vsce packages the extension as codegraph-0.21.2.vsix, the file name the README tells users to install ✅ pass live vsix-package.txt, codegraph-0.21.2.vsix
Client tests still pass with the un-bumped 0.21.0 mock fixtures ⏸️ untested no The earlier payload backed this only with unit test runs (mcp-package npm test and vitest), not with the live product, so it did not establish a live result. To check it live, run the fetch flow aga…
publish-release-assets.sh stage+verify (no --publish) accepts the 0.21.2 pins ⏸️ untested no Not run in this step because the stamped binary was not staged in CODEGRAPH_BIN_DIR. Run ./scripts/stamp-binary.sh, then CODEGRAPH_BIN_DIR=&lt;dir&gt; ./scripts/publish-release-assets.sh without --publi…
Combined fixes on main: LSP --max-files honoured (#35), PHP callers resolve to the receiver's class (#36), --max-threads caps threads (#34) ⏸️ untested no The binary finished building after the step deadline, so the prepared LSP driver (evidence/scripts/lsp_drive.py with workspace evidence/ws) was never run. Run `python3 evidence/scripts/lsp_drive.py ta…
  • cargo build --release -p codegraph-server
  • target/release/codegraph-server --version and --info
  • cd mcp-package && npm test
  • node -e require(&#39;./mcp-package/bin/fetch-engine.js&#39;) printing ENGINE_VERSION, platform asset and the release download base
  • cd vscode && npm ci --ignore-scripts && npx vitest run src/engineDownload.test.ts src/extension.engineSwap.test.ts src/server.test.ts src/server.spawnEnv.test.ts
  • cd vscode && npm run esbuild-base -- --production && npx vsce package --out <evidence dir>

🔧 No changes applied.
✅ Re-checked - no issues remain.

  • Live validation: ✅ go - 6 of 6 scenarios driven live against the product
Scenario Result Live Evidence
The rebuilt release engine from main reports version 0.21.2 ✅ pass live target/release/codegraph-server --version -> codegraph-server 0.21.2
LSP mode with --max-files 30000 on a 5300-file workspace indexes past 5000, and client maxFiles=100 overrides it (#35) ✅ pass live lsp-max-files-r2.txt: no flag -> 5000 plus the limit warning; --max-files 30000 -> 5300 indexed; client maxFiles=100 -> 100 indexed
PHP callers and callees resolve to the receiver's class, and \fn() resolves like fn() (#36) ✅ pass live php-resolution-r2.txt and lsp-php-callers-r2.txt: Alpha render <- show only, Beta render <- paint only; helper_fn <- abs_call and bare_call
--max-threads and CODEGRAPH_MAX_THREADS cap engine CPU threads (#34) ✅ pass live max-threads-r2.txt: 6->2->1 compute threads, OS threads 15->7->6; the environment variable gives 3
vscode and mcp-package unit tests pass with the unbumped 0.21.0 mock fixtures ✅ pass live vscode-tests.txt (44/44 pass); mcp-package-tests.txt (0 failures across fetch-engine and wrapper-args)
publish-release-assets.sh in stage+verify mode reads 0.21.2, confirms the pins and refuses without binaries ✅ pass live publish-stage-verify-r2.txt: version 0.21.2, tag v0.21.2, both pin groups confirm 0.21.2, all platform binaries MISSING, exit=1 (expected)
  • cargo build --release -p codegraph-server then target/release/codegraph-server --version (prints 0.21.2)
  • python3 -I scripts/lsp_drive4.py &lt;bin&gt; &lt;5300-file ws&gt; 0 (LSP stdio, no flags; stops at the default 5000)
  • python3 -I scripts/lsp_drive4.py &lt;bin&gt; &lt;5300-file ws&gt; 0 --max-files 30000 (indexes all 5300)
  • python3 -I scripts/lsp_drive4.py &lt;bin&gt; &lt;5300-file ws&gt; 100 --max-files 30000 (client maxFiles=100 overrides the flag; stops at 100)
  • python3 -I scripts/lsp_drive4.py &lt;bin&gt; &lt;php ws&gt; 0 (codegraph.getCallers over LSP on Alpha and Beta Screen::render)
  • codegraph-server --graph-only -w &lt;php ws&gt; --run-tool codegraph_get_callers|codegraph_get_callees --tool-args &#39;{&#34;uri&#34;:&#34;file://...&#34;,&#34;line&#34;:N}&#39; (7 queries covering both classes and both forms of the global helper_fn call)
  • codegraph-server --stdio with no thread cap, --max-threads 2, --max-threads 1 and CODEGRAPH_MAX_THREADS=3, counting OS threads with ps -M
  • npm test in mcp-package (fetch-engine and wrapper-args tests, including the 0.21.0 fixtures)
  • npx vitest run in vscode (5 files, 44 tests, including engineDownload with the 0.21.0 mocks)
  • ./scripts/publish-release-assets.sh in stage+verify mode only, never with --publish
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

Engine release carrying the #29 thread cap, the #33 --max-files fix
in LSP mode and the #31 PHP call resolution fix. Bumps the workspace
crate version, the engine pins in fetch-engine.js and the JetBrains
resolver, the npm package and server.json, the VS Code extension and
the JetBrains plugin, and the VSIX name in the install instructions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017rVbt7rENTwXkdHt3Bpgb5
@github-actions

Copy link
Copy Markdown

🔍 CodeGraph PR Review

10 files changed (+13/−13, 0 functions) · Risk: 🟢 low

Suggested reviewers

Andrey Vasilevsky (52 lines), anvanster (25 lines)

Suggested commit: fix(core): <describe the change> · 0 tests cover the changes
🤖 Generated by CodeGraph

@anvanster
anvanster merged commit ae4b2e5 into main Nov 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant