Repository navigation
Measure call resolution on a pinned corpus of outside repos - #724
Open
jaywyawhare wants to merge 1 commit into
Open
jaywyawhare wants to merge 1 commit into
jaywyawhare wants to merge 1 commit into
Conversation
4 tasks done
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.
Summary
Measure call resolution on a pinned corpus of outside repos, not mostly on SelfGraph's own code. A corpus file pins nine repos, a runner fetches and scores them, and the README results are the measured figures.
Implementation details
Decisions
benchmarks/code/corpus.jsonpins nine repos to full SHAs with root, languages, reference, and license: requests and ky at their old pins, plus sanic, aiohttp, typer, and rich in Python and zod, hono, and fp-ts in TypeScript. All MIT or Apache-2.0.benchmarks/code/run_corpus.pyfetches each repo at its pin into a cache (--cache), scores it withresolve_accuracy's functions, and prints one table plus a JSON file with the date, commit, and tool versions.--onlypicks repos and--selfadds this repo's roots.router.matchreaching the interface method), and rich (a subclass override). sanic recall is 52.7%, mostly calls through its own package imported by absolute name.Validation
run_corpusruns end to end on a local fixture repo with no network, checking the pinned commit is the one used.scripts/precheck.pypasses (326 changed lines, clean trial merge).Limits
No resolver change.
Linked issue
Closes #720
AI Assistance
AI tools helped write and test parts of this. I reviewed and ran every change.
Checklist
/approved.AGENTS.md). No new codes.Breaking changes
None.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.