Skip to content

Commit 8d3f979

Browse files
authored
Check unhandled exception in test log in test action (comfyanonymous#3987)
* Upload console logs * Check unhandled exception
1 parent 83f70a8 commit 8d3f979

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/test-browser.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
working-directory: ComfyUI
4343
- name: Start ComfyUI server
4444
run: |
45-
python main.py --cpu &
45+
python main.py --cpu 2>&1 | tee console_output.log &
4646
wait-for-it --service 127.0.0.1:8188 -t 600
4747
working-directory: ComfyUI
4848
- name: Install ComfyUI_frontend dependencies
@@ -55,9 +55,22 @@ jobs:
5555
- name: Run Playwright tests
5656
run: npx playwright test
5757
working-directory: ComfyUI_frontend
58+
- name: Check for unhandled exceptions in server log
59+
run: |
60+
if grep -qE "Exception|Error" console_output.log; then
61+
echo "Unhandled exception/error found in server log."
62+
exit 1
63+
fi
64+
working-directory: ComfyUI
5865
- uses: actions/upload-artifact@v4
5966
if: always()
6067
with:
6168
name: playwright-report
6269
path: ComfyUI_frontend/playwright-report/
6370
retention-days: 30
71+
- uses: actions/upload-artifact@v4
72+
if: always()
73+
with:
74+
name: console-output
75+
path: ComfyUI/console_output.log
76+
retention-days: 30

0 commit comments

Comments
 (0)