@@ -289,6 +289,14 @@ def test_submission_details_include_stored_run_results(self, test_client, mock_b
289289 "score" : None ,
290290 "passed" : False ,
291291 "result" : test_result ,
292+ "meta" : {
293+ "stdout" : "" ,
294+ "stderr" : "Traceback: public test failure" ,
295+ "success" : False ,
296+ "exit_code" : 1 ,
297+ "duration" : 1.25 ,
298+ },
299+ "compilation" : None ,
292300 },
293301 {
294302 "start_time" : "2026-07-06T12:00:00Z" ,
@@ -299,6 +307,18 @@ def test_submission_details_include_stored_run_results(self, test_client, mock_b
299307 "score" : None ,
300308 "passed" : True ,
301309 "result" : benchmark_result ,
310+ "meta" : {
311+ "stdout" : "benchmark output" ,
312+ "stderr" : "" ,
313+ "success" : True ,
314+ "exit_code" : 0 ,
315+ "duration" : 2.5 ,
316+ },
317+ "compilation" : {
318+ "success" : True ,
319+ "stdout" : "" ,
320+ "stderr" : "" ,
321+ },
302322 },
303323 {
304324 "start_time" : "2026-07-06T12:00:00Z" ,
@@ -309,6 +329,13 @@ def test_submission_details_include_stored_run_results(self, test_client, mock_b
309329 "score" : None ,
310330 "passed" : True ,
311331 "result" : {"secret-result" : "must not be exposed" },
332+ "meta" : {
333+ "stderr" : "SECRET_TRACEBACK_SENTINEL" ,
334+ "exit_code" : 1 ,
335+ },
336+ "compilation" : {
337+ "stderr" : "SECRET_COMPILER_SENTINEL" ,
338+ },
312339 },
313340 {
314341 "start_time" : "2026-07-06T12:00:00Z" ,
@@ -353,14 +380,26 @@ def test_submission_details_include_stored_run_results(self, test_client, mock_b
353380 assert response .status_code == 200
354381 runs = response .json ()["runs" ]
355382 assert runs [0 ]["result" ] == test_result
383+ assert runs [0 ]["diagnostics" ] == {
384+ "stdout" : "" ,
385+ "stderr" : "Traceback: public test failure" ,
386+ "success" : False ,
387+ "exit_code" : 1 ,
388+ "duration" : 1.25 ,
389+ }
356390 assert runs [1 ]["result" ] == benchmark_result
391+ assert runs [1 ]["diagnostics" ]["stdout" ] == "benchmark output"
392+ assert runs [1 ]["diagnostics" ]["compilation" ]["success" ] is True
357393 assert "result" not in runs [2 ]
394+ assert "diagnostics" not in runs [2 ]
358395 assert runs [2 ]["secret" ] is True
359396 assert runs [2 ]["passed" ] is True
360397 assert "result" not in runs [3 ]
361398 assert "result" not in runs [4 ]
362399 assert "must not be exposed" not in response .text
363400 assert "PROFILE_SENTINEL" not in response .text
401+ assert "SECRET_TRACEBACK_SENTINEL" not in response .text
402+ assert "SECRET_COMPILER_SENTINEL" not in response .text
364403
365404
366405class TestAdminStats :
0 commit comments