We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ca3b82 commit 1137e86Copy full SHA for 1137e86
bot/code_coverage_bot/commit_coverage.py
@@ -123,9 +123,13 @@ def analyze_changeset(changeset_to_analyze: str) -> None:
123
"unknown": sum(c["lines_unknown"] for c in coverage["paths"].values()),
124
}
125
126
+ max_workers = min(32, (os.cpu_count() or 1) + 4)
127
+ logger.info(f"Analyzing {len(changesets_to_analyze)} with {max_workers} workers")
128
+
129
with ThreadPoolExecutorResult(
130
initializer=_init_thread, initargs=(repo_dir,)
131
) as executor:
132
133
futures = [
134
executor.submit(analyze_changeset, changeset)
135
for changeset in changesets_to_analyze
0 commit comments