-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
Scope
Add a config-driven extended integration test playground that downloads real CodeQL databases from GitHub and exercises the full MCP server against real-world codebases.
Files
extensions/vscode/test/extended/repos.json— config with repos + CallGraphFromTo source/target function pairsextensions/vscode/test/extended/download-databases.ts— database discovery/download utilityextensions/vscode/test/extended/run-extended-tests.ts— test orchestrator with 7 scenariosextensions/vscode/esbuild.config.js— extended test build targetextensions/vscode/eslint.config.mjs—fetchglobal for test filesextensions/vscode/package.json—test:integration:extendedscriptpackage.json—test:extendedconvenience script
7 Test Scenarios
- Database discovery & registration
- CallGraphFromTo execution with external predicates + auto-caching
- Cache retrieval with subset selection (lineRange, grep)
- Cross-database query comparison
- Multi-repo audit workflow (store, list, triage, search, clear)
- Prompts & resources validation
- Cache cleanup
Features
- Auto-downloads databases via GitHub REST API (auth: VS Code session → GH_TOKEN →
gh auth token) - 24h disk cache for downloaded databases
- Server stderr captured to
.tmp/extended-test-logs/with timestamped reports DEBUG=truefor verbose server diagnostic logging
Independence
✅ Fully independent from core server changes — only reads repos.json and spawns the server via stdio. Can be merged independently if server tools already exist.
Run
npm run test:extendedParent: #163
Reactions are currently unavailable