51
51
from codechecker_web .shared import webserver_context , host_check
52
52
from codechecker_web .shared .env import get_default_workspace
53
53
54
- # from codechecker_server import MetadataInfoParser
55
54
try :
56
55
from codechecker_client .blame_info import assemble_blame_info
57
56
except ImportError :
@@ -425,6 +424,10 @@ def assemble_zip(inputs,
425
424
"""Collect and compress report and source files, together with files
426
425
contanining analysis related information into a zip file which
427
426
will be sent to the server.
427
+
428
+ For each report directory, we create a uniqued zipped directory. Each
429
+ report directory to store could have been made with different
430
+ configurations, so we can't merge them all into a single zip.
428
431
"""
429
432
files_to_compress : Dict [str , set ] = defaultdict (set )
430
433
analyzer_result_file_paths = []
@@ -473,7 +476,9 @@ def assemble_zip(inputs,
473
476
if report .changed_files :
474
477
changed_files .update (report .changed_files )
475
478
continue
476
- # Need to calculate unique reoirt count to determine report limit
479
+ # Unique all bug reports per report directory; also, count how many
480
+ # reports we want to store at once to check for the report store
481
+ # limit.
477
482
report_path_hash = get_report_path_hash (report )
478
483
if report_path_hash not in unique_report_hashes :
479
484
unique_report_hashes .add (report_path_hash )
@@ -485,7 +490,6 @@ def assemble_zip(inputs,
485
490
file_paths .update (report .original_files )
486
491
file_report_positions [report .file .original_path ].add (report .line )
487
492
488
- # TODO: Doesn't support storing multiple report dirs.
489
493
if unique_reports :
490
494
for dirname , analyzer_reports in unique_reports .items ():
491
495
for analyzer_name , reports in analyzer_reports .items ():
0 commit comments