Skip to content

Conversation

@Tim-Pohlmann
Copy link
Contributor

The jitter calculation had a hardcoded 'I' character that caused bash arithmetic errors:
local jitter=$((RANDOM % 3))I

This resulted in values like '1I' or '2I' which are invalid for arithmetic operations.

Fixed by removing the 'I':
local jitter=$((RANDOM % 3))

This bug prevented proper retry logic and error reporting when OIDC token requests failed.

The jitter calculation had a hardcoded 'I' character that caused bash arithmetic errors:
  local jitter=$((RANDOM % 3))I

This resulted in values like '1I' or '2I' which are invalid for arithmetic operations.

Fixed by removing the 'I':
  local jitter=$((RANDOM % 3))

This bug prevented proper retry logic and error reporting when OIDC token requests failed.
@Tim-Pohlmann Tim-Pohlmann requested a review from a team as a code owner October 22, 2025 09:23
@julien-carsique-sonarsource julien-carsique-sonarsource changed the title Fix: Remove typo 'I' in jitter calculation BUILD-9545 Fix: Remove typo 'I' in jitter calculation Oct 29, 2025
@julien-carsique-sonarsource julien-carsique-sonarsource merged commit e8a83b5 into master Oct 29, 2025
3 checks passed
@julien-carsique-sonarsource julien-carsique-sonarsource deleted the Tim/remove-jitter-typo branch October 29, 2025 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants