Repository navigation
fix(comfy): evaluate live test guards after config load - #116388
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 30, 2026, 7:49 AM ET / 11:49 UTC. ClawSweeper reviewWhat this changesThe PR changes Comfy live tests so image, video, and music capability checks run inside each test after the isolated live configuration loads, rather than during test registration. Merge readinessKeep this PR open for explicit maintainer review. The one-file test change matches Vitest’s collection-before- Priority: P3 Review scores
Verification
How this fits togetherThe bundled Comfy plugin exposes workflow-backed image, video, and music generation. Its opt-in live test suite loads isolated configuration before exercising those provider paths, then either runs the configured workflow or records an intentional skip. flowchart TD
A[COMFY_LIVE_TEST enabled] --> B[Comfy live test suite]
B --> C[beforeAll loads isolated config]
C --> D[Capability check per workflow]
D -->|configured| E[Comfy provider call]
D -->|not configured| F[Recorded test skip]
E --> G[Media output assertions]
Decision needed
Why: The patch is bounded and appears correct, but the protected Before merge
Agent review detailsSecurityNone. PR surfaceTests +2. Total +2 across 1 file. View PR surface stats
Review metricsNone. Merge-risk options
Maintainer options:
Technical reviewBest possible solution: Land the focused runtime-skip refactor after the exact-head CI completes green and an owner confirms the configured Comfy live path is adequately covered by the existing live-test contract. Do we have a high-confidence way to reproduce the issue? Yes, from source: collection-time Is this the best way to solve the issue? Yes. Moving the existing capability decision to the test callback preserves the current config loader and provider assertions while evaluating the fact only after its owning setup phase has completed. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against fb6545738564. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Owner decision: land this focused test-lifecycle repair. Exact-head CI completed green on |
|
Merged via squash.
|
* origin/main: (99 commits) docs(automation): rename scheduled-tasks feature wording to Automations (#114855) feat(ui): finish cron -> Automations rename in visible strings (#114853) feat(cli): add openclaw automations alias and reword cron display prose (#114854) feat(agents): rename scheduler agent tool cron -> automations (#114841) fix(tui): preserve session state across switches and reconnects (#116399) feat(agents): report CLI command outcomes in channel progress fix(cli): preserve explicit option intent (#116389) fix(release): trust update restart harness (#116301) test(reef): remove false-green live guard smoke (#116393) test(comfy): evaluate live guards after setup (#116388) fix(heartbeat): serialize wake lifecycle state (#116351) test: remove redundant extension boundary wrapper (#116385) fix(test): bound Testbox agentic and extension suites (#115696) fix(ui): show the correct Threads page size (#116349) test(discord): align progress timing expectations (#116377) feat(ui): add composable skill references (#116330) fix(qa): prevent Slack cleanup from stalling profile runs (#116361) fix(ci): validate frozen release candidates faithfully (#116357) improve(ci): fail_fast option for release validation, off by default (#116352) fix(agents): compare shell tool names case-insensitively and stop re-parsing tool labels ...
What Problem This Solves
Fixes an issue where configured Comfy live workflows were always skipped because capability guards ran while Vitest collected the file, before
beforeAllloaded the isolated live configuration.Why This Change Was Made
Each image, video, and music case now evaluates its capability inside the test through Vitest's runtime
skipcontext. This preserves lazy best-effort config loading and reports a skip only after the loaded configuration is known.User Impact
No shipped runtime behavior changes. Maintainers running
COMFY_LIVE_TEST=1can now exercise configured Comfy workflows instead of receiving false skips.Evidence
node scripts/run-vitest.mjs extensions/comfy: 5 files, 42/42 passed.oxfmt --check extensions/comfy/comfy.live.test.tspasses.git diff --checkpasses.A configured Comfy endpoint was not available in the isolated proof environment, so no external workflow success is claimed.