[CI] move Krea-2 expansion to slow and skip failing README snippets (#5347)

Signed-off-by: wangyu <410167048@qq.com>
This commit is contained in:
wangyu authored and GitHub committed 2026-07-23 21:47:58 +08:00
1 parent 05b794f29b
commit f72b38184b
3 files changed
+5 -2

No files matched your search

@@ -31,7 +31,7 @@ LORA_PROMPT = f"a fox in the snow, {LORA_TRIGGER}"
pytestmark = [
pytest.mark.diffusion,
pytest.mark.full_model,
pytest.mark.slow,
]
@@ -31,7 +31,7 @@ from PIL import Image
from tests.helpers.mark import hardware_marks
from tests.helpers.runtime import OmniServer, OmniServerParams, OpenAIClientHandler, dummy_messages_from_mix_data
pytestmark = [pytest.mark.diffusion, pytest.mark.full_model]
pytestmark = [pytest.mark.diffusion, pytest.mark.slow]
MODEL = os.environ.get("KREA2_MODEL", "krea/Krea-2-Turbo")
# vLLM-Omni-compatible PEFT repackaging of krea/Krea-2-LoRA-darkbrush (264 modules, r=alpha=32).
@@ -26,6 +26,9 @@ EXAMPLE_OUTPUT_SUBFOLDER = "example_offline_t2i"
def _skip_readme_snippet(language: str, code: str, h2_title: str) -> tuple[bool, str]:
if h2_title == "Web UI Demo":
return True, f"README section '{h2_title}' is intentionally excluded for examples tests"
# Krea-2 Turbo/Raw README snippets currently fail in CI (more_cli_examples_006/007).
if "krea/Krea-2-Turbo" in code or "krea/Krea-2-Raw" in code:
return True, "Krea-2 README snippets are temporarily skipped (CI failures)"
return False, ""