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] (Kraft)KafkaUpgradeDowngrade decrease tests durations #9852

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

henryZrncik
Copy link
Contributor

Type of change

  • Refactoring

Description

Decreasing the time to send/receive messages for continuous producer and consumer per each test in KRaftKafkaUpgradeDowngradeST and KafkaUpgradeDowngradeST to half, as wait that long is unnecessary.

8 Tests in KRaftKafkaUpgradeDowngradeST and KafkaUpgradeDowngradeST are always waiting for consumer and producer to finish successfully before the end of the tests if we are sending 1000 messages = ~16 minutes. Only ~7 minutes of this seems to be actually necessary, Causing almost 9 minutes of extra waiting per test.

notice time of waiting in log under of one of the tests.

2024-03-18 10:45:39 [main] INFO  [ClientUtils:90] Waiting for producer: co-namespace/cluster-723aa64f-producer-continuous and consumer: co-namespace/cluster-723aa64f-consumer-continuous Jobs to finish successfully
2024-03-18 10:55:21 [main] INFO  [ResourceManager:397] ############################################################################

The wait is now only ~500 seconds which gives 20% extra in addition to most of observed execution times.

execution of these tests under upgrade profile takes ~3hours, this would decrease it by almost half (8 * 9minutes).

Signed-off-by: hzrncik <hzrncik@redhat.com>
@henryZrncik henryZrncik self-assigned this Mar 19, 2024
@henryZrncik henryZrncik added this to the 0.41.0 milestone Mar 19, 2024
@see-quick
Copy link
Member

/azp run upgrade

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@see-quick see-quick merged commit 7a2cbc2 into strimzi:main Mar 20, 2024
17 checks passed
steffen-karlsson pushed a commit to steffen-karlsson/strimzi-kafka-operator that referenced this pull request Mar 21, 2024
)

Signed-off-by: hzrncik <hzrncik@redhat.com>
Signed-off-by: Steffen Karlsson <steffen.karlsson@maersk.com>
steffen-karlsson added a commit to steffen-karlsson/strimzi-kafka-operator that referenced this pull request Mar 21, 2024
steffen-karlsson pushed a commit to steffen-karlsson/strimzi-kafka-operator that referenced this pull request Mar 21, 2024
)

Signed-off-by: hzrncik <hzrncik@redhat.com>
Signed-off-by: Steffen Karlsson <steffen.karlsson@maersk.com>
steffen-karlsson added a commit to steffen-karlsson/strimzi-kafka-operator that referenced this pull request Mar 21, 2024
…trimzi#9852)"

This reverts commit f70d6b3.

Signed-off-by: Steffen Karlsson <steffen.karlsson@maersk.com>
steffen-karlsson pushed a commit to steffen-karlsson/strimzi-kafka-operator that referenced this pull request Mar 21, 2024
)

Signed-off-by: hzrncik <hzrncik@redhat.com>
Signed-off-by: Steffen Karlsson <steffen.karlsson@maersk.com>
steffen-karlsson pushed a commit to steffen-karlsson/strimzi-kafka-operator that referenced this pull request Mar 21, 2024
)

Signed-off-by: hzrncik <hzrncik@redhat.com>
Signed-off-by: Steffen Karlsson <steffen.karlsson@maersk.com>
steffen-karlsson added a commit to steffen-karlsson/strimzi-kafka-operator that referenced this pull request Mar 21, 2024
…trimzi#9852)"

This reverts commit f70d6b3.

Signed-off-by: Steffen Karlsson <steffen.karlsson@maersk.com>
steffen-karlsson pushed a commit to steffen-karlsson/strimzi-kafka-operator that referenced this pull request Mar 21, 2024
)

Signed-off-by: hzrncik <hzrncik@redhat.com>
Signed-off-by: Steffen Karlsson <steffen.karlsson@maersk.com>
steffen-karlsson pushed a commit to steffen-karlsson/strimzi-kafka-operator that referenced this pull request Apr 2, 2024
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.

None yet

3 participants