ComfyUI/tests-unit/execution_test
Glary-Bot 1f0b13705d Address review: clear stale workflow_id, expand reconnect payload, harden tests
- Clear self.server.last_workflow_id and self.workflow_id in the
  PromptExecutor finally block so a progress callback racing with
  teardown can no longer attach the previous run's workflow_id to a
  later 'progress' event.
- Include prompt_id and last_workflow_id in the reconnect 'executing'
  message in server.py so reconnecting clients can recover both
  workflow- and prompt-scoped execution state, matching the regular
  'executing' payload.
- Add an AST-based static guard that walks execution.py, main.py, and
  comfy_execution/progress.py and asserts every dict literal carrying
  prompt_id also carries workflow_id. Also add a unit test covering
  PREVIEW_IMAGE_WITH_METADATA metadata. Together these regression-test
  every emitter (execution_start/success/error/interrupted/cached,
  executing, executed, progress, progress_state, preview metadata)
  without requiring a GPU-backed import of execution.py.
2026-05-02 02:39:30 +00:00
..
preview_method_override_test.py feat(preview): add per-queue live preview method override (#11261) 2025-12-15 15:57:39 -08:00
test_cache_provider.py Revert "Revert "feat: Add CacheProvider API for external distributed caching"" (#12915) 2026-03-12 21:17:50 -07:00
test_workflow_id_in_ws_messages.py Address review: clear stale workflow_id, expand reconnect payload, harden tests 2026-05-02 02:39:30 +00:00
validate_node_input_test.py Reland union type (#5900) 2024-12-04 15:12:10 -05:00