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] Use the KafkaConnect with Connector upgrade/downgrade scenario as the main one #10544

Merged
merged 4 commits into from
Sep 6, 2024

Conversation

im-konge
Copy link
Member

@im-konge im-konge commented Sep 5, 2024

Type of change

  • Enhancement

Description

This PR updates the upgrade/downgrade scenarios to run the parametrized tests together with Connect and the KafkaConnector resources.
Until now, we had first upgrade/downgrade scenarios that took the testcases from particular YAML files (with FG and other stuff) that checked upgrade of Strimzi just with Kafka cluster. Then, we have other scenarios with just Kafka cluster (like upgrading with unsupported Kafka version or empty version etc.). And finally, there is scenario for upgrade/downgrade of Strimzi with Kafka and KafkaConnect + KafkaConnector. The issue is that for example for downgrade, the logic is to pick the version from the BundleDowngrade.yaml, where we have FGs (same for upgrade IIRC). So in case that there are no scenarios with FGs, it's skipped or it ends up in error.

Because the scenario is more or less (the Kafka cluster upgrade/downgrade part) covered in the parametrized test, the KafkaConnect + KafkaConnector scenario adds value just in the KafkaConnect case.

To save some time and test exactly the same thing, it's better to "remove" the scenario just with Kafka cluster upgrade/downgrade, and add the scenario with Kafka + KafkaConnect + KafkaConnector. Thanks to that, the test scenario will be wider, we will test more and also save some time (and the KafkaConnect scenario will not be fixed).

The PR updates the code to handle this kind of upgrade/downgrade, adds possibility to also upgrade the KafkaConnect's Kafka version inside the KafkaConnect's .spec.version field, removes not needed methods (which were used for the previous parametrized tests), changes the parametrized name of the tests (downgrade ones), and bumps the number of messages that should be sent/received throughout the test.

Checklist

  • Make sure all tests pass

@im-konge im-konge requested a review from a team September 5, 2024 18:48
@im-konge im-konge self-assigned this Sep 5, 2024
@im-konge im-konge added this to the 0.44.0 milestone Sep 5, 2024
@im-konge
Copy link
Member Author

im-konge commented Sep 5, 2024

/azp run upgrade

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

…t new default

Signed-off-by: Lukas Kral <[email protected]>

upgrade also kafka version in the KafkaConnect

Signed-off-by: Lukas Kral <[email protected]>

update continuousClientsMessage

Signed-off-by: Lukas Kral <[email protected]>

add set LMFV to null in other test cases as well

Signed-off-by: Lukas Kral <[email protected]>
@im-konge im-konge force-pushed the connect-upgrade branch 2 times, most recently from 9bf80a7 to 2777f5a Compare September 6, 2024 07:05
Signed-off-by: Lukas Kral <[email protected]>
@im-konge
Copy link
Member Author

im-konge commented Sep 6, 2024

/azp list

@im-konge
Copy link
Member Author

im-konge commented Sep 6, 2024

/azp run upgrade

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@henryZrncik henryZrncik left a comment

Choose a reason for hiding this comment

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

LGTM thanks a lot!

Signed-off-by: Lukas Kral <[email protected]>
@im-konge
Copy link
Member Author

im-konge commented Sep 6, 2024

/azp run upgrade

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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.

Thanks 👍

Signed-off-by: Lukas Kral <[email protected]>
@im-konge
Copy link
Member Author

im-konge commented Sep 6, 2024

/azp run upgrade

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@im-konge im-konge merged commit 8f14b5e into strimzi:main Sep 6, 2024
17 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.

4 participants