@@ -313,6 +313,7 @@ def test_expected_gpu_processes_success(mock_analyzer):
313313 name = "test_process" ,
314314 pid = 1234 ,
315315 memory_usage = ProcessMemoryUsage (gtt_mem = None , cpu_mem = None , vram_mem = None ),
316+ mem_usage = None ,
316317 usage = ProcessUsage (gfx = None , enc = None ),
317318 )
318319 ),
@@ -321,6 +322,7 @@ def test_expected_gpu_processes_success(mock_analyzer):
321322 name = "test_process2" ,
322323 pid = 5678 ,
323324 memory_usage = ProcessMemoryUsage (gtt_mem = None , cpu_mem = None , vram_mem = None ),
325+ mem_usage = None ,
324326 usage = ProcessUsage (gfx = None , enc = None ),
325327 )
326328 ),
@@ -346,6 +348,7 @@ def test_expected_gpu_processes_exceeds(mock_analyzer):
346348 name = f"process_{ i } " ,
347349 pid = i ,
348350 memory_usage = ProcessMemoryUsage (gtt_mem = None , cpu_mem = None , vram_mem = None ),
351+ mem_usage = None ,
349352 usage = ProcessUsage (gfx = None , enc = None ),
350353 )
351354 )
@@ -449,7 +452,7 @@ def test_check_pldm_version_success(mock_analyzer):
449452 Fw (
450453 gpu = 0 ,
451454 fw_list = [
452- FwListItem (fw_name = "PLDM_BUNDLE" , fw_version = "1.2.3" ),
455+ FwListItem (fw_id = "PLDM_BUNDLE" , fw_version = "1.2.3" ),
453456 ],
454457 ),
455458 ]
@@ -467,7 +470,7 @@ def test_check_pldm_version_mismatch(mock_analyzer):
467470 Fw (
468471 gpu = 0 ,
469472 fw_list = [
470- FwListItem (fw_name = "PLDM_BUNDLE" , fw_version = "1.2.3" ),
473+ FwListItem (fw_id = "PLDM_BUNDLE" , fw_version = "1.2.3" ),
471474 ],
472475 ),
473476 ]
@@ -486,7 +489,7 @@ def test_check_pldm_version_missing(mock_analyzer):
486489 Fw (
487490 gpu = 0 ,
488491 fw_list = [
489- FwListItem (fw_name = "OTHER_FW" , fw_version = "1.0.0" ),
492+ FwListItem (fw_id = "OTHER_FW" , fw_version = "1.0.0" ),
490493 ],
491494 ),
492495 ]
@@ -502,15 +505,14 @@ def test_check_expected_memory_partition_mode_success(mock_analyzer):
502505 analyzer = mock_analyzer
503506
504507 partition_data = Partition (
505- memory = [
508+ memory_partition = [
506509 PartitionMemory (gpu_id = 0 , partition_type = "NPS1" ),
507510 PartitionMemory (gpu_id = 1 , partition_type = "NPS1" ),
508511 ],
509- compute = [
512+ compute_partition = [
510513 PartitionCompute (gpu_id = 0 , partition_type = "SPX" ),
511514 PartitionCompute (gpu_id = 1 , partition_type = "SPX" ),
512515 ],
513- accelerator = [],
514516 )
515517
516518 analyzer .check_expected_memory_partition_mode (partition_data , "NPS1" , "SPX" )
@@ -523,15 +525,14 @@ def test_check_expected_memory_partition_mode_mismatch(mock_analyzer):
523525 analyzer = mock_analyzer
524526
525527 partition_data = Partition (
526- memory = [
528+ memory_partition = [
527529 PartitionMemory (gpu_id = 0 , partition_type = "NPS1" ),
528530 PartitionMemory (gpu_id = 1 , partition_type = "NPS4" ),
529531 ],
530- compute = [
532+ compute_partition = [
531533 PartitionCompute (gpu_id = 0 , partition_type = "SPX" ),
532534 PartitionCompute (gpu_id = 1 , partition_type = "SPX" ),
533535 ],
534- accelerator = [],
535536 )
536537
537538 analyzer .check_expected_memory_partition_mode (partition_data , "NPS1" , "SPX" )
@@ -565,14 +566,15 @@ def test_analyze_data_full_workflow(mock_analyzer):
565566 memory_usage = ProcessMemoryUsage (
566567 gtt_mem = None , cpu_mem = None , vram_mem = None
567568 ),
569+ mem_usage = None ,
568570 usage = ProcessUsage (gfx = None , enc = None ),
569571 )
570572 ),
571573 ],
572574 ),
573575 ],
574576 firmware = [
575- Fw (gpu = 0 , fw_list = [FwListItem (fw_name = "PLDM_BUNDLE" , fw_version = "1.2.3" )]),
577+ Fw (gpu = 0 , fw_list = [FwListItem (fw_id = "PLDM_BUNDLE" , fw_version = "1.2.3" )]),
576578 ],
577579 partition = None ,
578580 gpu_list = None ,
0 commit comments