Skip to content

Look up a file's directories in the unrequired package paths - #14533

Merged
alies-dev merged 2 commits into
vimeo:masterfrom
orklah:cache-unrequired-package-paths
Nov 21, 2026
Merged

alies-dev merged 2 commits into
vimeo:masterfrom
orklah:cache-unrequired-package-paths

Conversation

@orklah

@orklah orklah commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

Config::isInUnrequiredPackage() compared every function defined in Psalm's process with every package path, on each Config. The test suite builds one per test, so InternalCallMapHandlerTest (~11,000 cases) went from ~15 s to 300–550 s on Windows and made Windows shard 3 take ~13 min. It now takes 33 s.

🤖 Generated with Claude Code

Config::isInUnrequiredPackage() compared each file with every package
path, and collectPredefinedFunctions() called it for each of the ~340
functions defined in Psalm's process, on every Config. The test suite
builds a Config per test, so the ~10,000 cheap cases of
InternalCallMapHandlerTest went from ~13 s to 300-550 s on Windows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@orklah orklah added the release:internal The PR will be included in 'Internal changes' section of the release notes label Nov 21, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T17:02:47.483133Z ea9c352 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

On UNIX a backslash is a filename character, so the backslash path is
in no package there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

✅ Performance: unchanged · Types: unchanged

Project Memory (MB) Wall (s) Issues Weighted (types) Taint
✅ laravel 1 751 106.2 $\color{gray}{\textsf{-0.8\%}}$ 25 908 53 462 682
✅ symfony 3 600 200.3 $\color{gray}{\textsf{+0.4\%}}$ 50 611 98 405 1 528
✅ doctrine-orm 381 21.4 $\color{gray}{\textsf{+0.4\%}}$ 3 481 6 143 0
✅ psl 617 27.1 $\color{gray}{\textsf{-0.1\%}}$ 1 375 5 615 1
✅ phpunit 455 18.4 $\color{gray}{\textsf{+1.0\%}}$ 1 731 3 410 18
✅ php-parser 226 12.3 $\color{gray}{\textsf{+0.8\%}}$ 17 132 21 025 0
✅ tempest 895 34.2 $\color{gray}{\textsf{+1.7\%}}$ 5 047 10 528 252
✅ amphp-amp 68 1.6 $\color{gray}{\textsf{-7.6\%}}$ 29 49 0
✅ webmozarts-assert 273 3.6 $\color{gray}{\textsf{-2.5\%}}$ 577 2 720 0
✅ guzzle-promises 44 1.3 $\color{gray}{\textsf{-2.3\%}}$ 155 434 2
✅ monolog 135 4.5 $\color{gray}{\textsf{+0.4\%}}$ 913 2 479 10
✅ drupal 4 842 150.6 $\color{gray}{\textsf{-2.9\%}}$ 97 591 169 293 583
Total 13 286 581.4 $\color{gray}{\textsf{-0.7\%}}$ 204 550 373 563 3 076
How to read this table
  • Memory: Psalm's own peak figure, threads=1. More than +5 % fails, unless the PR changes composer.json.
  • Wall: base and head run on the same runner; ±10 % is noise. Above +20 % warns, never fails. re-run: a reversed second run was taken and the faster kept.
  • Issues: head count over all categories, then $\color{red}{\textsf{+added}}$ $\color{green}{\textsf{-removed}}$ against base.
  • Weighted (types): type issues weighted by error level (levels 1–8 as is, always-errors 10, strictness checks 1). Taint and dead-code issues are not weighed. The projects' own code is pinned and their dependencies resolve identically for base and head, so a change means Psalm reports more, fewer or differently serious issues. A rise is not necessarily a regression.
  • Taint: head count of Tainted* issues, then $\color{orange}{\textsf{+added}}$ $\color{orange}{\textsf{-removed}}$ against base. Both are orange as either direction needs review: more can be new detection or false positives, fewer can be fixed false positives or lost detection.
  • Dead code: head count of unused-code issues, shown only when a run reported some (findUnusedCode). More is red, fewer is green.
  • Total: sum over the projects compared on both sides. Thresholds apply per project, not to the total.
  • Colors: $\color{red}{\textsf{red}}$ past a fail or warn threshold (or more issues), $\color{green}{\textsf{green}}$ an improvement past noise (or fewer issues), $\color{orange}{\textsf{orange}}$ needs review, $\color{gray}{\textsf{gray}}$ noise.
  • Performance: regressed if a head run crashed or timed out or a memory or wall delta is red, else improved if one is green, else unchanged. Its icon is the check result: ❌ fail · ⚠️ warn · ✅ pass; the icon next to each project is that project's result, 💥 = not comparable: base crashed or timed out (counts as ⚠️).
  • Types (heading): direction of the total weighted change, increased · decreased · unchanged. Taint and Dead code (heading): added and removed counts, present only when non-zero. Informational, never fails the check.

head d0f7182 · base e63cd9f (merge-base) · workflow run

@alies-dev
alies-dev merged commit 81acf71 into vimeo:master Nov 21, 2026
71 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:internal The PR will be included in 'Internal changes' section of the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants