[#315] Removed the 'tmpDir' override pinning the PHPStan cache to '.artifacts'. - #329
Merged
Merged
Conversation
|
Warning Review limit reached
On-demand reviews are free for the next 12 days. After that, they cost $0.25 per reviewed file. Or wait 16 minutes for your next included review. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (1)
Comment |
|
Code coverage (threshold: 80%) Per-class coverage |
AlexSkrypnyk
enabled auto-merge (squash)
September 8, 2026 07:31
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #329 +/- ##
========================================
Coverage 86.56% 86.56%
========================================
Files 28 28
Lines 655 655
========================================
Hits 567 567
Misses 88 88 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Closes #315
Summary
phpstan.neonno longer setstmpDir, sovendor/bin/phpstanwrites its result cache to PHPStan's defaultsys_get_temp_dir()/phpstaninside theclicontainer rather than to the repo-relative.artifacts/phpstan..artifacts/is the project's disposable build-output tree, gitignored wholesale at.gitignore:51and written to by test runs, screenshots and CodeRabbit scratch, so any cleanup of that directory also deletedresultCache.phpand the next analysis silently restarted cold with no signal that the cache had gone. The line was never a deliberate choice:git log -S tmpDir -- phpstan.neontraces it to exactly one commit,cb38d59, where it was bundled into an unrelated AI alt-text feature PR alongside theProviderProxy::chat()ignore rule that feature actually needed.After merge
ahoy cli vendor/bin/phpstanand the CI step atbuild-test-deploy.yml:146both run unchanged,.artifacts/phpstan/is never recreated, and the file matches the upstream Vortex template, which sets notmpDir. Nothing else inphpstan.neonmoves: thescripts/composer/ScriptHandler.phpexclusion and theProviderProxy::chat()ignore rule are deliberate project rules and stay, and.gitignoreis untouched because its.artifactsentry is a blanket rule serving many consumers.Before / After
Checklist before requesting a review
[#123] Verb in past tense.#123added to descriptionChangedsectionThe tests box is left unticked deliberately. The change alters where a third-party tool writes its cache, so there is nothing project-owned to assert against; a test pinning PHPStan's resolved
tmpDirwould be testing PHPStan's defaults rather than this repo, and would break on any upstream change to them. The acceptance criteria in the issue are behavioural, so the verification below is behavioural.ahoy lintandahoy test-unit(369 tests, 1145 assertions) both pass locally.Changed
phpstan.neon- removed thetmpDir: .artifacts/phpstanline and its trailing blank line, leavinglevelandphpVersionadjacent as they are upstream. This two-line deletion is the entire diff; no other file changes.Verification
develop:[OK] No errorsacross 153 files, cache populated at.artifacts/phpstan/(resultCache.php, 2.7 MB)..artifacts/phpstan/, then ranahoy cli vendor/bin/phpstancold:[OK] No errorsin 15.4s, with no error about a missing cache directory..artifacts/phpstan/was not recreated.[OK] No errorsin 3.9s. The drop from 15.4s to 3.9s is the evidence that the cache repopulated at the default location and is being read back.Checked for dead references
The issue asks whether anything now depends on the override. Nothing does.
grep -rn "artifacts/phpstan"across the repo returns only the removed line itself..gitignorehas nophpstanentry. It ignores.artifactswholesale at line 51, a blanket rule that predates the override, so no entry becomes dead..github/workflows/build-test-deploy.yml:146invokes PHPStan with no cache key, noactions/cachestep, and no cleanup step naming the path. CI runs were always cold and are unaffected.Screenshots
N/A - the diff touches only
phpstan.neon, a static-analysis config file Drupal never loads at runtime. Nothing rendered changes.