since there are multiple jacoco.xml files

possible and it's too hard to understand which one
is the correct one for the class, I just log in
the coverages each one that have the fully
qualified class that is commented, it will then be
up to us to filter out what's needed
This commit is contained in:
Karma Riuk
2025-03-21 13:43:46 +01:00
parent a0e17b62bb
commit 282f29520b
2 changed files with 6 additions and 2 deletions

View File

@ -143,12 +143,16 @@ def process_pull(repo: Repository, pr: PullRequest, dataset: Dataset, repos_dir:
entry.metadata.build_system = build_handler.get_type()
build_handler.set_client(docker_client)
def _check_coverages():
for coverage_file, coverage in build_handler.check_coverage(commented_file_path):
entry.metadata.commented_file_coverages[coverage_file] = coverage
steps = [
("Checking for tests...", build_handler.check_for_tests),
("Compiling...", build_handler.compile_repo),
("Running tests...", build_handler.test_repo),
("Generating coverage...", build_handler.generate_coverage_report),
("Checking coverage...", lambda: build_handler.check_coverage(commented_file_path)),
("Checking coverage...", _check_coverages),
]
with build_handler, tqdm(total=len(steps), desc="Processing PR", leave=False) as pbar: