Repository navigation
Conversation
Refs Graphify-Labs#5607 Co-Authored-By: Codex <[email protected]>
|
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 makes pnpm-workspace.yaml count as a JavaScript/TypeScript resolution input, so changes to workspace membership can trigger importer refreshes.
5 possible issues we couldn't confirm
- pnpm-workspace.yaml is treated as a code input, but the surrounding code may never stamp it into the manifest, so its edits could still go u ·
graphify/detect.py:1031 - Incremental flag is ignored for the extract entries, so two of the three cases never run the incremental refresh path ·
tests/test_extract_js_resolution_inputs.py:162 - Workspace removal check passes on an empty result even when the caller was never analyzed ·
tests/test_extract_js_resolution_inputs.py:181 - +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.
- 2 of 2 changed files inspected. This is scope, not a correctness guarantee.
Code graph · 5274 functions depend on this change
- 658 of 658 test files are affected by this change.
- Gate, test list and every flagged function: in the Graphify check.
Reviewed a67cd3b
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?
Treat
pnpm-workspace.yamlas an input to incremental JavaScript and TypeScript resolution. A workspace membership change now refreshes unchanged importers through the existing resolver invalidation path. The YAML file remains part of the extraction corpus.Closes #5607. Related to #462 and #5534.
Type of change
Verification & Invariants
extractplus incrementalupdate. The three cases fail onv8and pass with the fix.withCompilerApi()call becomes resolvable after updating the manifest.How was this tested?
python -m pytest tests/ -q --tb=short -n 6 -m 'not serial' --ignore=tests/test_workers_by_work_size.py --ignore=tests/test_language_overrides.py(12,075 passed), the two worker-sensitive files without xdist (93 passed), andpython -m pytest tests/ -q --tb=short -m serial(282 passed).ruff check .,git diff --check, andgraphify update .passed. Pyright reports the same 789 existing diagnostics asv8.Graphify-specific checklist