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

[ST] Fix and improve QuotasST #9813

Merged
merged 2 commits into from
Mar 13, 2024
Merged

[ST] Fix and improve QuotasST #9813

merged 2 commits into from
Mar 13, 2024

Conversation

im-konge
Copy link
Member

@im-konge im-konge commented Mar 11, 2024

Type of change

  • Bugfix

Description

This PR fixes #9754
with correct broker Pod name. But during the work on the fix I found out that the QuotasST doesn't work at all:

  • the test-clients were running out of memory on local clusters
  • the ST doesn't work on clusters with local storage (e.g. minikube), which makes sense in terms of the calculation of the used storage
  • the check for disk is beyond soft limit is flaky, as we can hit the soft limit really rarely, based on how the messages are send and how much free (or filled) storage we have during the test execution
  • we are not running the test in any pipeline and it doesn't contain any tag for easier execution
  • there is no note about "how we can actually run the test"

This PR should fix all of the above, it adds new tag quotasplugin for easier execution of the ST class, adds new method isMinikube, so it will be skipped on minikube clusters, and more.

Fixes #9754

Checklist

  • Make sure all tests pass

Signed-off-by: Lukas Kral <lukywill16@gmail.com>
@im-konge im-konge self-assigned this Mar 11, 2024
@im-konge im-konge added this to the 0.41.0 milestone Mar 11, 2024
@im-konge im-konge requested a review from a team March 11, 2024 21:27
@im-konge
Copy link
Member Author

@strimzi-ci run tests --cluster-type=ocp --cluster-version=4.14 --install-type=bundle --profile=all --groups=quotasplugin

@strimzi-ci
Copy link

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

@strimzi-ci
Copy link

✔️ Test Summary ✔️

TEST_PROFILE: all
GROUPS: quotasplugin
TEST_CASE:
TOTAL: 1
PASS: 1
FAIL: 0
SKIP: 0
BUILD_NUMBER: 42
OCP_VERSION: 4.14
BUILD_IMAGES: false
FIPS_ENABLED: false
PARALLEL_COUNT: 5
EXCLUDED_GROUPS: loadbalancer,nodeport,olm

Copy link
Contributor

@jankalinic jankalinic left a comment

Choose a reason for hiding this comment

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

Looks good to me

@henryZrncik
Copy link
Contributor

henryZrncik commented Mar 12, 2024

LGTM, just about execution is QUOTAS_PLUGIN to be executed as part of something else? I am asking to know if this test will be run periodically, or just as a group (which you called in strimzi-ci) ?

@im-konge
Copy link
Member Author

No, I don't expect to execute the quotasplugin group anywhere in the regression (in AZP for example) - as I mentioned, the test will not work on minikube
So it should be executed on some weekly bases on some normal cluster.

Signed-off-by: Lukas Kral <lukywill16@gmail.com>
Copy link
Member

@see-quick see-quick left a comment

Choose a reason for hiding this comment

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

👍

@im-konge im-konge merged commit a1afa58 into strimzi:main Mar 13, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test testKafkaQuotasPluginIntegration uses wrong Kafka pod name when getting log
5 participants