Skip to content

Commit

Permalink
Fix: Change parallel settings to defaults, remove buffer
Browse files Browse the repository at this point in the history
'buffer' is not a documented parameter, removing it.
Removing some configuration settings as the defaults are higher and
should adapt better to the target machine
  • Loading branch information
mdeweerd committed Mar 10, 2024
1 parent 10f0982 commit 5c457a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ jobs:
- name: Run PHPStan
id: phpstan
run: |
php -i | grep max_execution_time
phpstan --debug -vvv analyse --error-format=checkstyle --memory-limit 7G -a build/phpstan/bootstrap_action.php -c phpstan.neon.dist | tee _stan.xml | cs2pr --graceful-warnings
phpstan -vvv analyse --error-format=checkstyle --memory-limit 7G -a build/phpstan/bootstrap_action.php | tee _stan.xml | cs2pr --graceful-warnings
# continue-on-error: true

# Save cache
Expand Down
11 changes: 6 additions & 5 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
parameters:
tmpDir: ./.github/tmp
parallel:
jobSize: 8
# Commented some of the settings: ci failed, disabling helped
# jobSize: 8 # default is 20
processTimeout: 600.0
maximumNumberOfProcesses: 20
# maximumNumberOfProcesses: 20 # default is 32
minimumNumberOfJobsPerProcess: 2
buffer: 134217728 # 128 MB
# buffer: 134217728 # 128 MB # Not documented
customRulesetUsed: true
level: 2
fileExtensions:
- php
paths:
- htdocs
- scripts
# stubFiles:
stubFiles:
# - dev/tools/phan/stubs/GeoIP2.php
# - dev/tools/phan/stubs/geoip_inc.php
- dev/tools/phan/stubs/module_numberwords.php
# - dev/tools/phan/stubs/module_numberwords.php
- dev/tools/phan/stubs/restler.php
- dev/tools/phan/stubs/stripe.php
- dev/tools/phan/stubs/swiss-qr-bill.php
Expand Down

0 comments on commit 5c457a2

Please sign in to comment.