From c6fbcbe53280d965475b319fdb776485d4198c84 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 02:55:15 -0500 Subject: [PATCH] Refresh completion code total after removing overlapping extent --- tools/check_decomp_complete.py | 2 +- tools/test_workflow_guards.py | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/tools/check_decomp_complete.py b/tools/check_decomp_complete.py index 2f41cc5c..249869de 100644 --- a/tools/check_decomp_complete.py +++ b/tools/check_decomp_complete.py @@ -10,7 +10,7 @@ from pathlib import Path EXPECTED_DOL_SHA1 = "26116613f624061ba99c8d1a299aaa6efa85670d" EXPECTED_TOTAL_UNITS = 1027 -EXPECTED_TOTAL_CODE = 2995188 +EXPECTED_TOTAL_CODE = 2995176 EXPECTED_TOTAL_DATA = 1832684 EXPECTED_TOTAL_FUNCTIONS = 12563 INTEGER_PATTERN = re.compile(r"-?(0|[1-9][0-9]*)\Z") diff --git a/tools/test_workflow_guards.py b/tools/test_workflow_guards.py index 078e581b..2aac76ef 100644 --- a/tools/test_workflow_guards.py +++ b/tools/test_workflow_guards.py @@ -21,6 +21,15 @@ class WorkflowGuardTests(unittest.TestCase): self.assertTrue(any("total_units" in failure for failure in failures)) self.assertTrue(any("missing categories" in failure for failure in failures)) + def test_obsolete_overlapping_code_total_is_rejected(self): + failures = check_report({ + "version": 2, + "measures": {"total_code": 2995188}, + "units": [], + "categories": [], + }) + self.assertIn("overall total_code: 2995188 != 2995176", failures) + def test_malformed_report_values_fail_without_crashing(self): failures = check_report( { -- 2.49.1