Compare commits

...

3 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] 91a7024bc6 fix(ci): use playwright binary directly instead of npx to prevent hang
The npx/npm-exec process wrapper can fail to detect child process exit,
causing indefinite hangs. Calling node_modules/.bin/playwright directly
bypasses the npm process management layer entirely.
2026-06-02 14:59:57 +00:00
Simon L. 5c84df6149 revert later 2026-06-02 16:50:43 +02:00
copilot-swe-agent[bot] 061b8c8a87 fix(ci): split playwright install into separate deps and browser steps to prevent hang
The combined `npx playwright install --with-deps chromium` command was hanging
after downloading Chromium, causing the CI job to time out at 60 minutes.
Splitting into `install-deps` (system packages) and `install` (browser download)
avoids the hang.
2026-06-02 14:48:35 +00:00
3 changed files with 14 additions and 6 deletions
+6 -3
View File
@@ -37,8 +37,11 @@ jobs:
- name: Install dependencies
run: cd php/tests && npm ci
- name: Install Playwright system dependencies
run: cd php/tests && ./node_modules/.bin/playwright install-deps chromium
- name: Install Playwright Browsers
run: cd php/tests && npx playwright install --with-deps chromium
run: cd php/tests && ./node_modules/.bin/playwright install chromium
- name: Set up php 8.5
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
@@ -86,7 +89,7 @@ jobs:
run: |
cd php/tests
export DEBUG=pw:api
if ! npx playwright test tests/initial-setup.spec.js; then
if ! ./node_modules/.bin/playwright test tests/initial-setup.spec.js; then
docker logs nextcloud-aio-mastercontainer
docker logs nextcloud-aio-borgbackup
exit 1
@@ -118,7 +121,7 @@ jobs:
run: |
cd php/tests
export DEBUG=pw:api
if ! npx playwright test tests/restore-instance.spec.js; then
if ! ./node_modules/.bin/playwright test tests/restore-instance.spec.js; then
docker logs nextcloud-aio-mastercontainer
docker logs nextcloud-aio-borgbackup
exit 1
@@ -22,8 +22,11 @@ jobs:
- name: Install dependencies
run: cd php/tests && npm ci
- name: Install Playwright system dependencies
run: cd php/tests && ./node_modules/.bin/playwright install-deps chromium
- name: Install Playwright Browsers
run: cd php/tests && npx playwright install --with-deps chromium
run: cd php/tests && ./node_modules/.bin/playwright install chromium
- name: Start fresh development server
run: |
@@ -48,7 +51,7 @@ jobs:
run: |
cd php/tests
export DEBUG=pw:api
if ! npx playwright test tests/initial-setup.spec.js; then
if ! ./node_modules/.bin/playwright test tests/initial-setup.spec.js; then
docker logs nextcloud-aio-mastercontainer
docker logs nextcloud-aio-borgbackup
exit 1
@@ -76,7 +79,7 @@ jobs:
run: |
cd php/tests
export DEBUG=pw:api
if ! npx playwright test tests/restore-instance.spec.js; then
if ! ./node_modules/.bin/playwright test tests/restore-instance.spec.js; then
docker logs nextcloud-aio-mastercontainer
docker logs nextcloud-aio-borgbackup
exit 1
+2
View File
@@ -1,5 +1,7 @@
# PHP Docker Controller
<!--test-->
This is the code for the PHP Docker controller.
## How to run