From 9ca98009b2cadd35affb7f6a7befdc5b535bfe31 Mon Sep 17 00:00:00 2001 From: wangyu <53896905+yenuo26@users.noreply.github.com> Date: Tue, 21 Jul 2026 23:29:06 +0800 Subject: [PATCH] [Bugfix][CI] Recognize local_model in check-test-ci-coverage hook (#5275) Signed-off-by: wangyu <410167048@qq.com> --- tools/pre_commit/check_test_marks.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/pre_commit/check_test_marks.py b/tools/pre_commit/check_test_marks.py index 9a727ab72..2afef8b6e 100644 --- a/tools/pre_commit/check_test_marks.py +++ b/tools/pre_commit/check_test_marks.py @@ -4,8 +4,9 @@ """Run a pre-commit hook that fails if test files are modified or added that (probably) never run in the CI. For now, this means that every tests file needs to have a CI level marker (e.g., core_model, advanced_model, full_model, -etc) and hardware mark / helper so that we ensure mutated tests will actually -be selected as long as there are pytest commands pointing at the right paths. +local_model, slow, etc) and hardware mark / helper so that we ensure mutated +tests will actually be selected as long as there are pytest commands pointing +at the right paths. """ import os @@ -13,7 +14,7 @@ import re import sys # CI level markers -LEVEL_MARKERS = ("core_model", "advanced_model", "full_model", "slow") +LEVEL_MARKERS = ("core_model", "advanced_model", "full_model", "local_model", "slow") # Hardware markers. These are platforms and resources that CI filters on. # NOTE: If new hardware marks are added to pyproject.toml etc, we need