Skip to content

fix(extract): refresh pnpm workspace resolution on manifest changes - #5608

Open
rvitaliy wants to merge 1 commit into
Graphify-Labs:v8from
rvitaliy:fix/pnpm-workspace-resolution-refresh
Open

rvitaliy wants to merge 1 commit into
Graphify-Labs:v8from
rvitaliy:fix/pnpm-workspace-resolution-refresh

Conversation

@rvitaliy

Copy link
Copy Markdown
Contributor

What does this PR do?

Treat pnpm-workspace.yaml as 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

  • Bug fix

Verification & Invariants

  • Removing a workspace package drops its local import and call edges. Restoring the package restores those same edges.
  • The regression covers clustered and raw extract plus incremental update. The three cases fail on v8 and pass with the fix.
  • Verified a real workspace consumer whose unchanged withCompilerApi() call becomes resolvable after updating the manifest.

How was this tested?

  • Focused resolution suites on Python 3.14 (166 passed) and CLI/watcher resolver-input tests on Python 3.11 (18 passed).
  • Full suite on Python 3.14: 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), and python -m pytest tests/ -q --tb=short -m serial (282 passed).
  • ruff check ., git diff --check, and graphify update . passed. Pyright reports the same 789 existing diagnostics as v8.

Graphify-specific checklist

  • Checked deterministic extraction and reviewed the persisted-state impact.
  • Reviewed the diff for credentials and generated graph files.
  • Disclosed AI assistance in the commit trailer.

@rvitaliy
rvitaliy requested a review from safishamsi as a code owner November 28, 2026 23:20
@github-actions

Copy link
Copy Markdown

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.

@github-actions github-actions Bot added the contributor Pull request from a returning community contributor label Nov 28, 2026

@graphify-labs graphify-labs Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Graphify review View in Graphify

Nothing blocking · 5 possible issues to check · Merge confidence 5/5

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

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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor Pull request from a returning community contributor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Incremental extraction keeps stale workspace edges after a pnpm-workspace.yaml edit

1 participant