Repository navigation
Conversation
Resolve Pascal imports against the files selected for the current extraction batch so conventional Delphi layouts can link across project directories without scanning unrelated vendor trees. Leave missing or duplicate unit names unresolved to preserve deterministic, fail-closed behavior. Add sequential, ambiguity, and multiprocessing regressions. Co-Authored-By: Codex <[email protected]>
|
Thanks for the pull request, @adity982. 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. |
Scope the Pascal corpus context in sequential extraction so the existing three-argument extraction helper remains compatible with wrappers and tests. Co-Authored-By: Codex <[email protected]>
Scope the dispatched corpus in a context variable so parallel and sequential helper APIs retain their existing signatures. Process workers still receive the same selected corpus through their initializer. Co-Authored-By: Codex <[email protected]>
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?
Fixes #5287. Pascal
usesrelationships now resolve against the Pascal files selected for the active extraction batch, so a Delphi project underProjects/App/can resolve units in sibling directories. Missing and duplicate unit names remain unresolved, avoiding guesses from unrelated or ambiguous vendor copies. The same corpus index reaches parallel workers while existing extraction helper call signatures remain unchanged.Type of change
Verification & Invariants
How was this tested?
uv run pytest tests/test_pascal_resolution.py tests/test_cache.py tests/test_terraform_modules.py tests/test_zero_node_no_cache.pyplus four targeted extraction helper compatibility tests — 135 passed, 11 skipped.uv run pytest tests/test_pascal_resolution.py tests/test_cache.pyplus the four helper compatibility tests after the final signature-preserving change — 89 passed, 8 skipped.uv run ruff check .andgit diff --check— passed.v8code.uv run graphify update .— completed; optional parsers for other languages are absent in this environment.uv run pyright graphify/extract.py graphify/extractors/resolution.py— 192 existing diagnostics in these large modules; none were on the changed lines.v8base; other failures include tests that requirebash, which is unavailable in this Windows environment.Limitations
A unit name with zero or multiple matching files in the dispatched corpus remains a symbolic unresolved reference. This deliberately avoids choosing a file based on filesystem traversal order.