Accept thresholds_source S3.7 (STRA-246 review)

STRA-256's thresholds schema names the source S3.7; rename the enum value from S3.7_FILE in schema.json, the test and the countable-without-summary fixture.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Pavlo Ratushnyi
2026-10-28 20:01:46 +01:00
co-authored by Claude Sonnet 5.5
parent 79c4e29927
commit ff9e36eada
3 changed files with 3 additions and 3 deletions
@@ -32,7 +32,7 @@
},
"countable": true,
"invalid_reasons": [],
"thresholds_source": "S3.7_FILE",
"thresholds_source": "S3.7",
"thresholds_sha256": "0bf18d635f3bbcd7a832ffb3470087a916f07374bc88b9064667f5b7de86c558",
"workload": {
"long_session_argv": [
+1 -1
View File
@@ -162,7 +162,7 @@
"countable": {"type": "boolean"},
"invalid_reasons": {"$ref": "#/definitions/string_list"},
"power_sample_summary": {"$ref": "#/definitions/power_sample_summary"},
"thresholds_source": {"type": "string", "enum": ["BOOTSTRAP", "S3.7_FILE"]},
"thresholds_source": {"type": "string", "enum": ["BOOTSTRAP", "S3.7"]},
"thresholds_sha256": {"$ref": "#/definitions/sha256"},
"workload": {
"type": "object",
+1 -1
View File
@@ -228,7 +228,7 @@ class Rules(unittest.TestCase):
def test_countable_rules(self):
rec = copy.deepcopy(self.ours)
rec.update({"countable": True, "invalid_reasons": [], "thresholds_source": "S3.7_FILE"})
rec.update({"countable": True, "invalid_reasons": [], "thresholds_source": "S3.7"})
self.assertEqual(codes(rec), [])
no_summary = copy.deepcopy(rec)
del no_summary["power_sample_summary"]