Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Check unhandled exception in test log in test action (#3987)

Chenlei Hu8d3f979b633d
diff --git a/.github/workflows/test-browser.yml b/.github/workflows/test-browser.yml
index 65483b00f..7beb0c696 100644
--- a/.github/workflows/test-browser.yml
+++ b/.github/workflows/test-browser.yml
@@ -42,7 +42,7 @@ jobs:
working-directory: ComfyUI
- name: Start ComfyUI server
run: |
- python main.py --cpu &
+ python main.py --cpu 2>&1 | tee console_output.log &
wait-for-it --service 127.0.0.1:8188 -t 600
working-directory: ComfyUI
- name: Install ComfyUI_frontend dependencies
@@ -55,9 +55,22 @@ jobs:
- name: Run Playwright tests
run: npx playwright test
working-directory: ComfyUI_frontend
+ - name: Check for unhandled exceptions in server log
+ run: |
+ if grep -qE "Exception|Error" console_output.log; then
+ echo "Unhandled exception/error found in server log."
+ exit 1
+ fi
+ working-directory: ComfyUI
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: ComfyUI_frontend/playwright-report/
retention-days: 30
+ - uses: actions/upload-artifact@v4
+ if: always()
+ with:
+ name: console-output
+ path: ComfyUI/console_output.log
+ retention-days: 30