@@ -311,9 +311,11 @@ def main(argv):
311
311
short_output_paths = FLAGS .short_output_paths )
312
312
logging .info ("END building for %s" , testapp )
313
313
314
- _collect_integration_tests (testapps , root_output_dir , output_dir , FLAGS .artifact_name )
314
+ integration_test_files = _collect_integration_tests (
315
+ testapps , root_output_dir , output_dir , FLAGS .artifact_name )
315
316
316
- _summarize_results (testapps , platforms , failures , root_output_dir , FLAGS .artifact_name )
317
+ _summarize_results (
318
+ testapps , platforms , failures , root_output_dir , FLAGS .artifact_name , integration_test_files )
317
319
return 1 if failures else 0
318
320
319
321
@@ -434,19 +436,22 @@ def _collect_integration_tests(testapps, root_output_dir, output_dir, artifact_n
434
436
_rm_dir_safe (artifact_path )
435
437
for testapp in testapps :
436
438
os .makedirs (os .path .join (artifact_path , testapp ))
439
+ generated_files = []
437
440
for path in testapp_paths :
438
441
for testapp in testapps :
439
442
if testapp in path :
443
+ generated_files .append (os .path .join (artifact_path , testapp , os .path .basename (path )))
440
444
if os .path .isfile (path ):
441
445
shutil .copy (path , os .path .join (artifact_path , testapp ))
442
446
if path .endswith (desktop_testapp_name ) and testapp_google_services .get (testapp ):
443
447
shutil .copy (testapp_google_services [testapp ], os .path .join (artifact_path , testapp ))
444
448
else :
445
449
dir_util .copy_tree (path , os .path .join (artifact_path , testapp , os .path .basename (path )))
446
450
break
451
+ return generated_files
447
452
448
453
449
- def _summarize_results (testapps , platforms , failures , root_output_dir , artifact_name ):
454
+ def _summarize_results (testapps , platforms , failures , root_output_dir , artifact_name , generated_files ):
450
455
"""Logs a readable summary of the results of the build."""
451
456
file_name = "build-results-" + artifact_name + ".log"
452
457
@@ -461,6 +466,10 @@ def _summarize_results(testapps, platforms, failures, root_output_dir, artifact_
461
466
summary .append ("SOME ERRORS OCCURRED:" )
462
467
for i , failure in enumerate (failures , start = 1 ):
463
468
summary .append ("%d: %s" % (i , failure .describe ()))
469
+ if generated_files and not FLAGS .gha_build :
470
+ summary .append ("GENERATED FILES:" )
471
+ summary .extend (generated_files )
472
+
464
473
summary = "\n " .join (summary )
465
474
466
475
logging .info (summary )
0 commit comments