@@ -35,6 +35,8 @@ def sample_system_info() -> SystemInfo:
3535 runtime = "CUDA" ,
3636 platform = "Linux-5.15.0" ,
3737 torch = "2.0.1+cu118" ,
38+ hostname = "test-hostname" ,
39+ device_count = 1 ,
3840 )
3941
4042
@@ -504,9 +506,11 @@ def test_generate_report_test_failure(sample_full_result: FullResult):
504506 "Running on:\n "
505507 "* GPU: `NVIDIA RTX 4090`\n "
506508 "* CPU: `Intel i9-12900K`\n "
509+ "* Device count: `1`\n "
507510 "* Runtime: `CUDA`\n "
508511 "* Platform: `Linux-5.15.0`\n "
509512 "* Torch: `2.0.1+cu118`\n "
513+ "* Hostname: `test-hostname`\n "
510514 ),
511515 Text (
512516 text = "# Testing failed\n "
@@ -536,9 +540,11 @@ def test_generate_report_benchmark_failure(sample_full_result: FullResult):
536540 "Running on:\n "
537541 "* GPU: `NVIDIA RTX 4090`\n "
538542 "* CPU: `Intel i9-12900K`\n "
543+ "* Device count: `1`\n "
539544 "* Runtime: `CUDA`\n "
540545 "* Platform: `Linux-5.15.0`\n "
541546 "* Torch: `2.0.1+cu118`\n "
547+ "* Hostname: `test-hostname`\n "
542548 ),
543549 Log (
544550 header = "✅ Passed 3/3 tests" ,
@@ -571,9 +577,11 @@ def test_generate_report_benchmark_failure(sample_full_result: FullResult):
571577 "Running on:\n "
572578 "* GPU: `NVIDIA RTX 4090`\n "
573579 "* CPU: `Intel i9-12900K`\n "
580+ "* Device count: `1`\n "
574581 "* Runtime: `CUDA`\n "
575582 "* Platform: `Linux-5.15.0`\n "
576583 "* Torch: `2.0.1+cu118`\n "
584+ "* Hostname: `test-hostname`\n "
577585 ),
578586 Log (
579587 header = "✅ Passed 3/3 tests" ,
@@ -607,9 +615,11 @@ def test_generate_report_leaderboard_failure(sample_full_result: FullResult):
607615 "Running on:\n "
608616 "* GPU: `NVIDIA RTX 4090`\n "
609617 "* CPU: `Intel i9-12900K`\n "
618+ "* Device count: `1`\n "
610619 "* Runtime: `CUDA`\n "
611620 "* Platform: `Linux-5.15.0`\n "
612621 "* Torch: `2.0.1+cu118`\n "
622+ "* Hostname: `test-hostname`\n "
613623 ),
614624 Log (
615625 header = "✅ Passed 3/3 tests" ,
@@ -633,9 +643,11 @@ def test_generate_report_leaderboard_failure(sample_full_result: FullResult):
633643 "Running on:\n "
634644 "* GPU: `NVIDIA RTX 4090`\n "
635645 "* CPU: `Intel i9-12900K`\n "
646+ "* Device count: `1`\n "
636647 "* Runtime: `CUDA`\n "
637648 "* Platform: `Linux-5.15.0`\n "
638649 "* Torch: `2.0.1+cu118`\n "
650+ "* Hostname: `test-hostname`\n "
639651 ),
640652 Log (
641653 header = "✅ Passed 3/3 tests" ,
@@ -646,10 +658,7 @@ def test_generate_report_leaderboard_failure(sample_full_result: FullResult):
646658 "> Division by zero" ,
647659 ),
648660 Text (
649- text = "# Running failed\n "
650- "Command ```bash\n "
651- "./test```\n "
652- "**timed out** after 10.00 seconds."
661+ text = "# Running failed\n Command ```bash\n ./test```\n **timed out** after 10.00 seconds."
653662 ),
654663 Log (header = "Program stdout" , content = "log stdout" ),
655664 ]
@@ -676,9 +685,11 @@ def test_generate_report_profile(sample_full_result: FullResult):
676685 "Running on:\n "
677686 "* GPU: `NVIDIA RTX 4090`\n "
678687 "* CPU: `Intel i9-12900K`\n "
688+ "* Device count: `1`\n "
679689 "* Runtime: `CUDA`\n "
680690 "* Platform: `Linux-5.15.0`\n "
681691 "* Torch: `2.0.1+cu118`\n "
692+ "* Hostname: `test-hostname`\n "
682693 ),
683694 Log (
684695 header = "✅ Passed 3/3 tests" ,
@@ -688,11 +699,9 @@ def test_generate_report_profile(sample_full_result: FullResult):
688699 "❌ Test division\n "
689700 "> Division by zero" ,
690701 ),
691- Log (header = ' Profiling Benchmark' , content = ' Profile report\n ' ),
702+ Log (header = " Profiling Benchmark" , content = " Profile report\n " ),
692703 Link ("NSight profiling output" , "Download from GitHub" , "https://example.com" ),
693- File (name = 'profile-Benchmark.zip' ,
694- message = 'NSight report - Benchmark' ,
695- content = b'' ),
704+ File (name = "profile-Benchmark.zip" , message = "NSight report - Benchmark" , content = b"" ),
696705 ]
697706
698707
0 commit comments