fix: address M3 verifier findings on soak invariants and probe tests

This commit is contained in:
2026-07-22 02:21:33 -04:00
parent fdd36e0e1f
commit 3c9f306ea3
8 changed files with 126 additions and 12 deletions
+19
View File
@@ -52,3 +52,22 @@ class TestErrorsClassified:
rows = [_row(error="KeyError: 'oops'")]
with pytest.raises(AssertionError, match="未分类"):
inv_errors_classified(rows, _KNOWN)
class TestRssAbsolute:
def test_within_bound(self):
from tools.soak.scoreboard import inv_rss_absolute
inv_rss_absolute([120.0, 180.0, 150.0], max_mb=500.0)
def test_peak_exceeds(self):
from tools.soak.scoreboard import inv_rss_absolute
with pytest.raises(AssertionError, match="峰值"):
inv_rss_absolute([120.0, 690.0, 200.0], max_mb=500.0) # verifier I1 实测形态
def test_empty_rejected(self):
from tools.soak.scoreboard import inv_rss_absolute
with pytest.raises(AssertionError):
inv_rss_absolute([], max_mb=500.0)