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 30ef79ed93 #17295

Closes #22421
This commit is contained in:
Viktor Szakats 2026-07-15 02:18:30 +02:00
parent 387b4c5e4c
commit ca96fd5190
No known key found for this signature in database

View file

@ -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):