@@ -311,9 +311,11 @@ def main(argv):
311311 short_output_paths = FLAGS .short_output_paths )
312312 logging .info ("END building for %s" , testapp )
313313
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 )
315316
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 )
317319 return 1 if failures else 0
318320
319321
@@ -434,19 +436,22 @@ def _collect_integration_tests(testapps, root_output_dir, output_dir, artifact_n
434436 _rm_dir_safe (artifact_path )
435437 for testapp in testapps :
436438 os .makedirs (os .path .join (artifact_path , testapp ))
439+ generated_files = []
437440 for path in testapp_paths :
438441 for testapp in testapps :
439442 if testapp in path :
443+ generated_files .append (os .path .join (artifact_path , testapp , os .path .basename (path )))
440444 if os .path .isfile (path ):
441445 shutil .copy (path , os .path .join (artifact_path , testapp ))
442446 if path .endswith (desktop_testapp_name ) and testapp_google_services .get (testapp ):
443447 shutil .copy (testapp_google_services [testapp ], os .path .join (artifact_path , testapp ))
444448 else :
445449 dir_util .copy_tree (path , os .path .join (artifact_path , testapp , os .path .basename (path )))
446450 break
451+ return generated_files
447452
448453
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 ):
450455 """Logs a readable summary of the results of the build."""
451456 file_name = "build-results-" + artifact_name + ".log"
452457
@@ -461,6 +466,10 @@ def _summarize_results(testapps, platforms, failures, root_output_dir, artifact_
461466 summary .append ("SOME ERRORS OCCURRED:" )
462467 for i , failure in enumerate (failures , start = 1 ):
463468 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+
464473 summary = "\n " .join (summary )
465474
466475 logging .info (summary )
0 commit comments