fix(v3.8): restore verified review queue lifecycle
Restore the installed WIP v2 frontend byte-for-byte without reverting the current backend or Windows atomic-replace handling. Consume one-shot retry/restart intents on the supported queue path; await terminal storage readback and recover cached completed revisions. Exercise the supported queue lifecycle in 42 frontend regression cases, retain public-surface assertions, and refresh distribution hashes. CPU pytest: 1156 passed. Real-browser/GPU acceptance not performed. No workflow, README, Sampling, Audio, or backend changes.
This commit is contained in:
@@ -15,3 +15,29 @@ if PACKAGE_NAME not in sys.modules:
|
||||
module = importlib.util.module_from_spec(spec)
|
||||
module.__path__ = [str(ROOT)]
|
||||
sys.modules[PACKAGE_NAME] = module
|
||||
|
||||
|
||||
# Run real production JS through ComfyUI's supported queue lifecycle once.
|
||||
# No unsupported beforeQueuePrompt helper injection or copied UI predicates.
|
||||
import json
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
def review_queue_results():
|
||||
node = shutil.which("node")
|
||||
assert node, "Node.js is required for the frontend regression gate"
|
||||
result = subprocess.run(
|
||||
[node, str(ROOT / "tests" / "frontend_review_queue.cjs")],
|
||||
env={**os.environ, "H3_TEST_ROOT": str(ROOT)},
|
||||
capture_output=True, text=True, encoding="utf-8", timeout=45,
|
||||
)
|
||||
records = json.loads(result.stdout)
|
||||
assert len(records) == 42, "The complete queue fixture must finish"
|
||||
failures = [item for item in records if not item["pass"]]
|
||||
assert result.returncode == 0 and not failures, result.stdout + result.stderr
|
||||
return {item["name"]: item for item in records}
|
||||
|
||||
Reference in New Issue
Block a user