[CI] Skip worker-dependent SMG e2e tests pending runner-image debug (#24166)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
5f88c8593a
commit
cf346bb15d
@@ -233,6 +233,37 @@ def pytest_collection_modifyitems(
|
||||
else:
|
||||
logger.info("Scanned worker requirements: (none)")
|
||||
|
||||
# TEMPORARY: skip every test that would launch an sglang worker subprocess.
|
||||
#
|
||||
# Workers crash at import inside transformers.integrations.hub_kernels →
|
||||
# kernels.deps with:
|
||||
# StrictDataclassFieldValidationError: Validation error for field
|
||||
# 'import_name': TypeError: Unsupported type for field 'import_name': str | None
|
||||
#
|
||||
# The package combo (kernels==0.13.0 + huggingface_hub==1.12.2 +
|
||||
# transformers==5.6.0) is NOT the bug — it imports cleanly in fresh
|
||||
# python:3.10-slim and lmsysorg/sglang:dev containers. The crash is specific
|
||||
# to the 4-gpu-a10 runner image (most likely a stale/partial huggingface_hub
|
||||
# install where _BASIC_TYPE_VALIDATORS[types.UnionType] registration is
|
||||
# missing). Remove this skip once the runner image is rebuilt.
|
||||
#
|
||||
# Filter on `model_pool` in fixturenames (covers setup_backend, model_client,
|
||||
# model_base_url, backend_router — all transitively depend on model_pool) so
|
||||
# tests without an explicit `@pytest.mark.e2e` marker are also skipped. Then
|
||||
# clear scanned worker requirements so model_pool — if realized for any
|
||||
# non-skipped fixture — starts empty and never spawns a worker.
|
||||
skip_marker = pytest.mark.skip(
|
||||
reason="worker-dependent tests disabled: SMG runner image crash on transformers.integrations.hub_kernels import"
|
||||
)
|
||||
for item in items:
|
||||
if (
|
||||
item.get_closest_marker("e2e") is not None
|
||||
or "model_pool" in item.fixturenames
|
||||
):
|
||||
item.add_marker(skip_marker)
|
||||
_worker_counts.clear()
|
||||
_first_seen_order.clear()
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Pool requirements
|
||||
|
||||
Reference in New Issue
Block a user