Skip to content

Commit 278bec7

Browse files
Output number of network files found (#625)
* Output number of network files found This information is useful to verify that the FileFinders worked as expected and file-fixes will be done correctly. * Use debug logging instead of info Co-authored-by: Tom Hu <88201630+thomasrockhu-codecov@users.noreply.github.com> * Update codecov_cli/services/upload/upload_collector.py --------- Co-authored-by: Tom Hu <88201630+thomasrockhu-codecov@users.noreply.github.com>
1 parent 6e8e1b1 commit 278bec7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

codecov_cli/services/upload/upload_collector.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,14 @@ def generate_upload_data(
160160
logger.debug("Collecting relevant files")
161161
with sentry_sdk.start_span(name="file_collector"):
162162
network = self.network_finder.find_files()
163+
unfiltered_network = self.network_finder.find_files(True)
163164
report_files = self.file_finder.find_files()
164165
logger.info(
165166
f"Found {len(report_files)} {report_type.value} files to report"
166167
)
168+
logger.debug(
169+
f"Found {len(network)} network files to report, ({len(unfiltered_network)} without filtering)"
170+
)
167171
if not report_files:
168172
if report_type == ReportType.TEST_RESULTS:
169173
error_message = "No JUnit XML reports found. Please review our documentation (https://docs.codecov.com/docs/test-result-ingestion-beta) to generate and upload the file."
@@ -187,7 +191,7 @@ def generate_upload_data(
187191
network=network,
188192
files=report_files,
189193
file_fixes=(
190-
self._produce_file_fixes(self.network_finder.find_files(True))
194+
self._produce_file_fixes(unfiltered_network)
191195
if report_type == ReportType.COVERAGE
192196
else []
193197
),

0 commit comments

Comments
 (0)