[Kernel][CI] --jit-monitor-mode error e2e tests for kernel warmup infra (#50109)

Signed-off-by: NickLucche <nicolo.lucchesi@mistral.ai>
This commit is contained in:
Nicolò Lucchesi
2026-07-31 08:53:16 -04:00
committed by GitHub
parent 7fdc1ab29e
commit 864a87febb
10 changed files with 716 additions and 539 deletions
+27
View File
@@ -0,0 +1,27 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
import pytest
from vllm.utils import jit_monitor
@pytest.fixture(autouse=True)
def _reset_monitor():
"""Reset global monitor state between tests.
``activate()`` installs process-global hooks and flips module globals, so
without this every test would inherit the previous test's monitor state.
"""
def reset():
jit_monitor._active = False
jit_monitor._mode = "warn"
jit_monitor._verbose = False
jit_monitor._cutedsl_hook_installed = False
jit_monitor._tilelang_hook_installed = False
jit_monitor._tilelang_jitimpl_compile_depth = 0
reset()
yield
reset()