Repository navigation
Commit bf4c317
committed
fix(ci): show the server log when a Playwright test fails
The workflow step that shows the Nextcloud log on failure printed
nothing when a test had failed. With CI set, playwright/start-server.mjs
stops the test server when Playwright ends, and that removes the
container before the step can read the log from it.
@nextcloud/e2e-test-server saves the log first when
NEXTCLOUD_E2E_LOG_FILE is set, so the workflow now sets it to
test-results/nextcloud.log, and the step prints that file. The report
upload already includes test-results/, so the log is uploaded too.
Version 0.6.0 of the library read the log through the Docker copy API,
which cannot see the tmpfs the data directory is on, so it saved
nothing. The dependency moves to 0.6.1, which reads the log by running
cat inside the container; the lockfile changes in that package only.
If the server script fails during setup and leaves its container
running, the step falls back to reading the log from that container, as
it did before.
Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com>1 parent da54068 commit bf4c317
3 files changed
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
97 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
98 | 104 | | |
99 | 105 | | |
100 | 106 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
0 commit comments