Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing the inner polling to check proposal request and rebalancing #9940

Merged
merged 4 commits into from
Apr 13, 2024

Conversation

ppatierno
Copy link
Member

Type of change

  • Refactoring

Description

This PR removes the inner polling loop when checking the status of a rebalance proposal request and the current rebalancing. It refactors the code in order to rely on the operator periodic reconcile loop to run the checks.
Due to this change, the PR has a big refactoring on tests as well because of the logic is now depending on the reconciliation loop and not hidden inside a short periodic internal polling anymore.

Checklist

Please go through this checklist and make sure all applicable tasks have been done

  • Make sure all tests pass
  • Try your changes from Pod inside your Kubernetes and OpenShift cluster, not just locally

@im-konge
Copy link
Member

@strimzi-ci run tests --cluster-type=minikube --cluster-version=stable --install-type=bundle --profile=all --groups=cruisecontrol

@strimzi-ci
Copy link

▶️ Build started - check Jenkins for more info. ▶️

@strimzi-ci
Copy link

❌ Test Summary ❌

TEST_PROFILE: all
GROUPS: cruisecontrol
TEST_CASE:
TOTAL: 1
PASS: 0
FAIL: 1
SKIP: 0
BUILD_NUMBER: 67
OCP_VERSION: stable
BUILD_IMAGES: false
FIPS_ENABLED: false
PARALLEL_COUNT: 1
EXCLUDED_GROUPS: loadbalancer,nodeport,olm

❗ Test Failures ❗

  • io.strimzi.systemtest.kafka.KafkaST

Re-run command:
@strimzi-ci run tests --profile=all --testcase=io.strimzi.systemtest.kafka.KafkaST

@im-konge
Copy link
Member

@strimzi-ci run tests --cluster-type=minikube --cluster-version=stable --install-type=bundle --profile=all --groups=cruisecontrol --build-images

@strimzi-ci
Copy link

▶️ Build started - check Jenkins for more info. ▶️

@ppatierno
Copy link
Member Author

/azp run regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Refactoring rebalancing related tests now relying on reconciliation loop

Signed-off-by: Paolo Patierno <ppatierno@live.com>
@ppatierno ppatierno force-pushed the remove-rebalance-periodic-timer branch from 06e059a to 8f746cb Compare April 11, 2024 06:43
@ppatierno ppatierno added this to the 0.41.0 milestone Apr 11, 2024
Signed-off-by: Paolo Patierno <ppatierno@live.com>
@ppatierno
Copy link
Member Author

/azp run regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Refactored tests by calling the main reconcile entry point on the
KafkaRebalanceAssemblyOperator

Signed-off-by: Paolo Patierno <ppatierno@live.com>
@ppatierno ppatierno marked this pull request as ready for review April 11, 2024 17:20
@ppatierno ppatierno requested a review from a team April 11, 2024 17:20
@ppatierno
Copy link
Member Author

/azp run regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Paolo Patierno <ppatierno@live.com>
@ppatierno
Copy link
Member Author

/azp run regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@kyguy kyguy left a comment

Choose a reason for hiding this comment

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

Thanks for refactoring this @ppatierno, looks a lot cleaner!

@ppatierno ppatierno merged commit 343d1eb into strimzi:main Apr 13, 2024
21 checks passed
@ppatierno ppatierno deleted the remove-rebalance-periodic-timer branch April 13, 2024 04:56
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.

None yet

5 participants