Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 37 additions & 36 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 12 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -429,12 +429,23 @@
EOF

export HOME="$TMPDIR"
# Unlike gutenberg-downgrade and wordpress-sqlite-anywhere,
# wordpress-stubs.php is fetched as a raw fetchurl file rather
# than the php-stubs/wordpress-stubs Composer package (see the
# comment on wordpressStubs above), so it never gets a "dist"
# entry in installed.json for PHPStan >= 2.2.13's path-package
# detection (phpstan-src#6356) to mistrigger on -- installed.json
# here has no path packages at all. The scanFiles route is what
# costs memory instead: with no locked package version to hang a
# cache key on, PHPStan >= 2.2.13 parses and reflects the whole
# 5.5 MB stub file to export its nodes for the result cache on
# every run, which alone needs a bit over 2G. 3G leaves headroom.
phpstan analyse \
-c tests/phpstan-nix.neon \
--no-progress \
--error-format=table \
--autoload-file=vendor/autoload.php \
--memory-limit=2G
--memory-limit=3G

touch "$out"
'';
Expand Down
9 changes: 9 additions & 0 deletions nix/devenv-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ in
];
};

# Under process-compose, a process whose `ready` config has no `timeout` is
# handed to process-compose's own policy (supervisionMode = "external"),
# and devenv then reports it Ready the instant it is spawned without ever
# running the exec probe -- so devenv:mysql:configure (which creates
# initialDatabases) races mariadbd's actual startup instead of waiting on
# it. Setting `timeout` keeps devenv supervising mysql itself, so the probe
# actually runs and the databases get created after mariadbd is really up.
processes.mysql.ready.timeout = 60;

services.minio = {
enable = true;
accessKey = "wpcftestkey";
Expand Down
Loading