Skip to content

ci(quality): install app deps before enabling app (phpunit job) - #111

Merged
rubenvdlinde merged 2 commits into
mainfrom
fix/phpunit-install-deps-before-enable
Jul 26, 2026
Merged

ci(quality): install app deps before enabling app (phpunit job)#111
rubenvdlinde merged 2 commits into
mainfrom
fix/phpunit-install-deps-before-enable

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

The phpunit matrix job enabled the app before composer install, so enable-time repair steps autowiring eager constructors (e.g. OpenRegister SaveObject new Twig\Environment) fatal with an uncaught Error when vendor is absent (Class Twig\Extension\AbstractExtension not found). Reorder to composer-install-then-enable, matching the newman/playwright/journeydoc jobs. Mirrors Codeberg Conduction/.github#71. Fixes OpenRegister's PHPUnit (NC stable32) CI.

rubenvdlinde and others added 2 commits July 25, 2026 12:07
The phpunit matrix job ran 'php occ app:enable <app>' inside 'Install Nextcloud'
BEFORE the separate 'Install app dependencies' composer step. Enabling an app
runs its install-scope repair steps, which autowire services with eager
constructors (e.g. OpenRegister's SaveObject does 'new Twig\Environment(...)').
Without vendor/ present that fatals with an uncaught \Error — NC core only
catches \Exception — killing the step ('Class Twig\Extension\AbstractExtension
not found'). The newman/playwright/journeydoc jobs already composer-install
before enabling; this makes the phpunit job consistent.
@rubenvdlinde
rubenvdlinde merged commit f0c038f into main Jul 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant