Skip to content

ROX-33758: Fix quadratic runtime in endpointsStore.addToHistory#19571

Merged
Molter73 merged 1 commit intorelease-4.9from
backport-19566-to-release-4.9
Mar 26, 2026
Merged

ROX-33758: Fix quadratic runtime in endpointsStore.addToHistory#19571
Molter73 merged 1 commit intorelease-4.9from
backport-19566-to-release-4.9

Conversation

@rhacs-bot
Copy link
Copy Markdown
Contributor

Backport bfd67f2 from #19566.

@rhacs-bot rhacs-bot requested a review from a team as a code owner March 24, 2026 14:58
@github-actions github-actions bot added area/sensor backport PR to backport changes from master to release branch ai-review labels Mar 24, 2026
Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've left some high level feedback:

  • In benchmarkSeedEndpointsStore, the loop for i := range numEndpoints will not compile since range cannot be used over an int; use a standard indexed loop like for i := 0; i < numEndpoints; i++ { ... } instead.
  • In BenchmarkEndpointsStoreAddToHistory, b.Loop() is not part of the testing.B API and will fail to compile; replace it with the usual for i := 0; i < b.N; i++ { ... } pattern to drive the benchmark iterations.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- In `benchmarkSeedEndpointsStore`, the loop `for i := range numEndpoints` will not compile since `range` cannot be used over an `int`; use a standard indexed loop like `for i := 0; i < numEndpoints; i++ { ... }` instead.
- In `BenchmarkEndpointsStoreAddToHistory`, `b.Loop()` is not part of the `testing.B` API and will fail to compile; replace it with the usual `for i := 0; i < b.N; i++ { ... }` pattern to drive the benchmark iterations.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@rhacs-bot
Copy link
Copy Markdown
Contributor Author

Images are ready for the commit at db192e6.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.9.5-rc.0-9-gdb192e6c92.

@github-actions
Copy link
Copy Markdown
Contributor

/konflux-retest operator-bundle-on-push

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

/konflux-retest operator-bundle-on-push

@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Mar 24, 2026

@rhacs-bot: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/gke-sensor-integration-tests db192e6 link false /test gke-sensor-integration-tests
ci/prow/gke-nongroovy-compatibility-tests db192e6 link false /test gke-nongroovy-compatibility-tests
ci/prow/ocp-4-21-nongroovy-e2e-tests db192e6 link false /test ocp-4-21-nongroovy-e2e-tests
ci/prow/ocp-dev-preview-nongroovy-e2e-tests db192e6 link false /test ocp-dev-preview-nongroovy-e2e-tests
ci/prow/ocp-4-12-nongroovy-e2e-tests db192e6 link false /test ocp-4-12-nongroovy-e2e-tests
ci/prow/ocp-next-candidate-nongroovy-e2e-tests db192e6 link false /test ocp-next-candidate-nongroovy-e2e-tests

Full PR test history. Your PR dashboard.

Details

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 kubernetes-sigs/prow repository. I understand the commands that are listed here.

@Molter73 Molter73 merged commit 07ec45f into release-4.9 Mar 26, 2026
99 of 111 checks passed
@Molter73 Molter73 deleted the backport-19566-to-release-4.9 branch March 26, 2026 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-review area/sensor backport PR to backport changes from master to release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants