diff --git a/tasks/compute_comparison.py b/tasks/compute_comparison.py index b1c34c141..7bb730ea7 100644 --- a/tasks/compute_comparison.py +++ b/tasks/compute_comparison.py @@ -68,6 +68,7 @@ def run_impl( # Because we have a HEAD report and a base commit to get the diff from patch_totals = comparison_proxy.get_patch_totals() comparison.patch_totals = minimal_totals(patch_totals) + db_session.commit() if not comparison_proxy.has_project_coverage_base_report(): comparison.error = CompareCommitError.missing_base_report.value @@ -96,6 +97,7 @@ def run_impl( path = self.store_results(comparison, impacted_files) comparison.report_storage_path = path + db_session.commit() comparison.state = CompareCommitState.processed.value log.info("Computing comparison successful", extra=log_extra)