From a135f1a7b1f7e84bbe262deafa89654fb9debe96 Mon Sep 17 00:00:00 2001 From: Daniel Gohlke Date: Fri, 13 Nov 2026 00:55:57 +0100 Subject: [PATCH 1/2] [TASK] Disable composer.lock The extension is a library, so a composer.lock is not committed. With "lock": false composer neither creates nor uses a local composer.lock, which can pin outdated dependencies. The same setting is used on the main branches. Co-Authored-By: Claude Opus 5.5 --- composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index fde92a1..971e33a 100644 --- a/composer.json +++ b/composer.json @@ -38,7 +38,8 @@ "typo3/class-alias-loader": true }, "vendor-dir": ".Build/vendor", - "bin-dir": ".Build/bin" + "bin-dir": ".Build/bin", + "lock": false }, "extra": { "typo3/cms": { From db61a77d3ab14d3c686e9d05f7cd547083eeec20 Mon Sep 17 00:00:00 2001 From: Daniel Gohlke Date: Fri, 13 Nov 2026 01:05:29 +0100 Subject: [PATCH 2/2] [TASK] Do not install dependencies before running tests The project-test-* commands in shell.nix ran project-install first. Without a composer.lock every install resolves the latest versions, so two test runs could test different dependencies, and every run needed network access and took longer. Dependencies are installed explicitly with project-install now, like for the composer scripts. Co-Authored-By: Claude Opus 5.5 --- shell.nix | 8 -------- 1 file changed, 8 deletions(-) diff --git a/shell.nix b/shell.nix index d7b3c25..844eaf5 100644 --- a/shell.nix +++ b/shell.nix @@ -134,10 +134,8 @@ let name = "project-test-unit"; runtimeInputs = [ php - projectInstall ]; text = '' - project-install "$PROJECT_ROOT/Build/Scripts/phpunit.sh" unit ''; }; @@ -146,10 +144,8 @@ let name = "project-test-functional"; runtimeInputs = [ php - projectInstall ]; text = '' - project-install "$PROJECT_ROOT/Build/Scripts/phpunit.sh" functional ''; }; @@ -158,10 +154,8 @@ let name = "project-test-with-coverage"; runtimeInputs = [ php - projectInstall ]; text = '' - project-install XDEBUG_MODE=coverage ./.Build/bin/phpunit -c Build/phpunit.xml.dist --coverage-html=coverage_result ''; }; @@ -169,7 +163,6 @@ let projectTestAcceptance = pkgs.writeShellApplication { name = "project-test-acceptance"; runtimeInputs = [ - projectInstall pkgs.sqlite pkgs.firefox pkgs.geckodriver @@ -177,7 +170,6 @@ let php ]; text = '' - project-install "$PROJECT_ROOT/Build/Scripts/acceptance.sh" "$@" ''; };