Repository navigation
Conversation
Refs Graphify-Labs#5613 Co-Authored-By: Codex <codex@openai.com>
|
Thanks for the pull request, @rvitaliy. A maintainer will review it soon. Want to talk it through while it is in review? Come join us on our Discord server. For longer-form discussion there is also GitHub Discussions. A couple of things that speed up review: make sure the test suite passes on Python 3.11 and 3.13, and that the change keeps extraction deterministic. |
There was a problem hiding this comment.
Graphify review 
5 possible issues to check · High impact
The change tracks imported-function aliases inside TypeScript callable bodies and resolves their calls through exported symbols.
5 possible issues we couldn't confirm
- Callable scope tuples gained a third value; the consumer must unpack three items or the TypeScript alias pass fails ·
graphify/extract.py:13182 - Imported calls inside functions are silently dropped when the imported symbol is not marked as a callable ·
graphify/extractors/resolution.py:2117 - Scoped imported calls from callers that own no node are dropped instead of being attributed to the file node ·
graphify/extractors/resolution.py:2110 - +2 more in Graphify
They don't change the score.
What this review covered
- We didn't review 1 file that isn't source code, such as docs, config, images, or generated or third-party code.
- 5 of 5 changed files inspected. This is scope, not a correctness guarantee.
Code graph · 6385 functions depend on this change
- 4 functions became more coupled. Largest:
extract()(1428 callers),_collect_js_symbol_resolution_facts()(5 callers),_js_receiver_binding_scope()(5 callers). - 658 of 658 test files are affected by this change.
- Gate, test list and every flagged function: in the Graphify check.
Reviewed 178fa02
This branch has not been deployed
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.
What does this PR do?
Resolve an imported callable reached by a local
constalias inside an indexed TypeScript callable. The existing import and export facts must identify a single target. The edge keeps the lexical caller and the actual call line, including a call inside an anonymous callback.Closes #5613. Follow-up to #5594.
Type of change
Verification & Invariants
How was this tested?
v8with both full and incremental contexts. The focused extractor and architecture suites passed on Python 3.14 (223 tests), and the factory and typed receiver suites passed on Python 3.11 (41 tests).ruff check .,git diff --check, andgraphify update .passed. Pyright adds no diagnostics relative tov8.Graphify-specific checklist