[release-5.0] OCPBUGS-120743: Fix the number of requests in repeated exec - #31610
Conversation
`expectRouteStatusCodeRepeatedExec` treated `times` as a deadline in seconds, not a request count. The loop ran curl back-to-back for `times` seconds with no delay between requests — a tight loop. So callers actually fired an unbounded, load-dependent number of requests in 100 seconds - far more than 100 reqs, and hammering the router unnecessarily fast. Fix: * Replaced the time-based loop with a counter that increments once per iteration, so the loop runs exactly `times` times - matching what every caller's variable name and comments already implied. * Added `sleep 0.5` between iterations so requests are paced instead of fired in a tight loop. Net effect: times now means what it says (number of requests), and the requests are spaced out rather than bursted. https://redhat.atlassian.net/browse/OCPBUGS-112662
|
Pipeline controller notification For optional jobs, comment This repository is configured in: automatic mode |
|
@openshift-cherrypick-robot: Detected clone of Jira Issue OCPBUGS-112662 with correct target version. Will retitle the PR to link to the clone. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
|
@openshift-cherrypick-robot: This pull request references Jira Issue OCPBUGS-120743, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: openshift-cherrypick-robot The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Scheduling required tests: |
|
@openshift-cherrypick-robot: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
This is an automated cherry-pick of #31548
/assign openshift-ci-robot