|
4 | 4 |
|
5 | 5 | import sentry_sdk |
6 | 6 | from asgiref.sync import async_to_sync |
7 | | -from shared.reports.changes import get_changes_using_rust, run_comparison_using_rust |
| 7 | +from shared.reports.changes import run_comparison_using_rust |
8 | 8 | from shared.reports.types import Change, ReportTotals |
9 | 9 | from shared.torngit.base import TorngitBaseAdapter |
10 | 10 | from shared.torngit.exceptions import TorngitClientGeneralError |
@@ -169,31 +169,6 @@ def get_changes(self) -> list[Change] | None: |
169 | 169 | self.comparison.head.report, |
170 | 170 | diff, |
171 | 171 | ) |
172 | | - if ( |
173 | | - self._changes |
174 | | - and self.comparison.project_coverage_base.report is not None |
175 | | - and self.comparison.head.report is not None |
176 | | - and self.comparison.project_coverage_base.report.rust_report is not None |
177 | | - and self.comparison.head.report.rust_report is not None |
178 | | - ): |
179 | | - rust_changes = get_changes_using_rust( |
180 | | - self.comparison.project_coverage_base.report, |
181 | | - self.comparison.head.report, |
182 | | - diff, |
183 | | - ) |
184 | | - original_paths = set([c.path for c in self._changes]) |
185 | | - new_paths = set([c.path for c in rust_changes]) |
186 | | - if original_paths != new_paths: |
187 | | - only_on_new = sorted(new_paths - original_paths) |
188 | | - only_on_original = sorted(original_paths - new_paths) |
189 | | - log.info( |
190 | | - "There are differences between python changes and rust changes", |
191 | | - extra=dict( |
192 | | - only_on_new=only_on_new[:100], |
193 | | - only_on_original=only_on_original[:100], |
194 | | - repoid=self.head.commit.repoid, |
195 | | - ), |
196 | | - ) |
197 | 172 |
|
198 | 173 | return self._changes |
199 | 174 |
|
|
0 commit comments