@@ -82,9 +82,7 @@ def _load_release_module():
8282
8383
8484def _current_c3_profile ():
85- policy = json .loads (
86- (FIRMWARE_DIR / "qualification" / "oi1-gates.json" ).read_bytes ()
87- )
85+ policy , _digest = RELEASE ._load_qualification_policy (REPO_ROOT )
8886 return next (
8987 item for item in policy ["profiles" ] if item ["profile_id" ] == "esp32-c3-4mb"
9088 )
@@ -1273,21 +1271,18 @@ def test_c3_disables_phy_calibration_storage_without_relaxing_oi1(self):
12731271 )
12741272
12751273 profile = _current_c3_profile ()
1274+ self .assertEqual (profile ["profile_id" ], "esp32-c3-4mb" )
1275+ self .assertEqual (profile ["target" ], "esp32-c3" )
1276+ self .assertEqual (profile ["resource_kind" ], "esp-idf" )
12761277 thresholds = profile ["thresholds" ]
12771278 self .assertEqual (
1278- thresholds ,
1279- {
1280- "application_headroom_min_bytes" : 352880 ,
1281- "application_image_max_bytes" : 1678736 ,
1282- "gc_free_min_bytes" : 117760 ,
1283- "get_verified_goodput_min_bytes_per_second" : 6600 ,
1284- "idf_internal_free_min_bytes" : 66560 ,
1285- "idf_internal_largest_block_min_bytes" : 57344 ,
1286- "idf_internal_minimum_free_min_bytes" : 63488 ,
1287- "put_committed_goodput_min_bytes_per_second" : 6600 ,
1288- "reset_to_service_advertisement_max_ms" : 3000 ,
1289- },
1290- "the PHY policy must keep the exact C3 static/heap gates and "
1279+ set (thresholds ),
1280+ C3_RESOURCE_THRESHOLD_KEYS | set (C3_FIXED_PERFORMANCE_THRESHOLDS ),
1281+ )
1282+ self .assertEqual (
1283+ {key : thresholds [key ] for key in C3_FIXED_PERFORMANCE_THRESHOLDS },
1284+ C3_FIXED_PERFORMANCE_THRESHOLDS ,
1285+ "the PHY policy must validate the current C3 static/heap gates and "
12911286 "carry the fixed ADR-0037 product SLOs" ,
12921287 )
12931288
0 commit comments