Repository navigation
chore: bump version to 0.21.2 - #37
Merged
Merged
Conversation
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
🔍 CodeGraph PR Review10 files changed (+13/−13, 0 functions) · Risk: 🟢 low Suggested reviewersAndrey Vasilevsky (52 lines), anvanster (25 lines) Suggested commit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Cargo.tomlfrom 0.21.0 to 0.21.2, along with the three matching workspace crate entries that cargo regenerated inCargo.lock.ENGINE_VERSIONto 0.21.2 inmcp-package/bin/fetch-engine.jsand in the JetBrainsCodeGraphServerResolver.kt, so the MCP package and JetBrains plugin download the 0.21.2 engine binaries. Also bumps the versions inmcp-package/package.json,mcp-package/server.jsonandjetbrains/gradle.properties(pluginVersion) from 0.21.0 to 0.21.2.vscode/package.jsonfrom 0.21.1 to 0.21.2 and changes the VSIX file name in the install instructions inREADME.mdandvscode/README.mdtocodegraph-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-toolCLI. 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 ashelper_fn(). For #34,--max-threads 2and--max-threads 1cut 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 gitignoredtarget/directory was left in place because it existed before this run.target/release/codegraph-server --version-> codegraph-server 0.21.2Evidence: LSP --max-files transcript (#35): default 5000, flag gives 5300, client maxFiles=100 overrides
Evidence: LSP PHP callers transcript (#36)
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]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=9Evidence: publish-release-assets.sh stage+verify output
Evidence: vscode vitest run
Evidence: mcp-package npm test
Evidence: LSP driver script
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 ✅
npm testand vitest), not with the live product, so it did not establish a live result. To check it live, run the fetch flow aga…./scripts/stamp-binary.sh, thenCODEGRAPH_BIN_DIR=<dir> ./scripts/publish-release-assets.shwithout --publi…cargo build --release -p codegraph-servertarget/release/codegraph-server --versionand--infocd mcp-package && npm testnode -e require('./mcp-package/bin/fetch-engine.js')printing ENGINE_VERSION, platform asset and the release download basecd 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.tscd vscode && npm run esbuild-base -- --production && npx vsce package --out <evidence dir>🔧 No changes applied.
✅ Re-checked - no issues remain.
target/release/codegraph-server --version-> codegraph-server 0.21.2cargo build --release -p codegraph-serverthentarget/release/codegraph-server --version(prints 0.21.2)python3 -I scripts/lsp_drive4.py <bin> <5300-file ws> 0(LSP stdio, no flags; stops at the default 5000)python3 -I scripts/lsp_drive4.py <bin> <5300-file ws> 0 --max-files 30000(indexes all 5300)python3 -I scripts/lsp_drive4.py <bin> <5300-file ws> 100 --max-files 30000(client maxFiles=100 overrides the flag; stops at 100)python3 -I scripts/lsp_drive4.py <bin> <php ws> 0(codegraph.getCallers over LSP on Alpha and Beta Screen::render)codegraph-server --graph-only -w <php ws> --run-tool codegraph_get_callers|codegraph_get_callees --tool-args '{"uri":"file://...","line":N}'(7 queries covering both classes and both forms of the global helper_fn call)codegraph-server --stdiowith no thread cap,--max-threads 2,--max-threads 1andCODEGRAPH_MAX_THREADS=3, counting OS threads withps -Mnpm testin mcp-package (fetch-engine and wrapper-args tests, including the 0.21.0 fixtures)npx vitest runin vscode (5 files, 44 tests, including engineDownload with the 0.21.0 mocks)./scripts/publish-release-assets.shin stage+verify mode only, never with --publish✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.