From ca96fd5190c3910f633ad8fe9f66380c28cd91ad Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 15 Jul 2026 02:18:30 +0200 Subject: [PATCH] scorecard: fix `max_upload` init value in `ul_parallel()` "In `ul_parallel`, `max_parallel` is computed using `self._download_parallel` instead of `self._upload_parallel`. This causes the upload parallelism to incorrectly follow the download parallel setting. It should use `self._upload_parallel` to be consistent with how `uploads()` computes `max_parallel`." Reported by GitHub Code Quality Follow-up to 30ef79ed937ca0fc7592ff73d162398773c6a5aa #17295 Closes #22421 --- tests/http/scorecard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/http/scorecard.py b/tests/http/scorecard.py index 41682ae132..d6d89a3753 100755 --- a/tests/http/scorecard.py +++ b/tests/http/scorecard.py @@ -542,7 +542,7 @@ class ScoreRunner: samples = [] errors = [] profiles = [] - max_parallel = self._download_parallel if self._download_parallel > 0 else count + max_parallel = self._upload_parallel if self._upload_parallel > 0 else count url = f'{url}?id=[0-{count - 1}]' self.info('parallel...') for _ in range(nsamples):