-
Notifications
You must be signed in to change notification settings - Fork 13.9k
[FLINK-13632] Port serializer upgrade tests to TypeSerializerUpgradeTestBase #12363
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
[FLINK-13632] Port serializer upgrade tests to TypeSerializerUpgradeTestBase #12363
Conversation
We change MIGRATION_VERSIONS to only test versions > 1.11 because that's when we're adding the tests. We make an exception for PojoSerializerUpgradeTest and RowSerializerUpgradeTest, for which we have earlier snapshots. This also changes the test base to only generate snapshots for the CURRENT_VERSION when we generateTestSetupFiles().
Theses snapshots were created on the release-1.11 branch by un-@Ignoring TypeSerializerUpgradeTestBase.generateTestSetupFiles() and running tests on each subclass individually.
…erUpgradeTestBase
…izerUpgradeTestBase
…TypeSerializerUpgradeTestBase
…erUpgradeTestBase
… to TypeSerializerUpgradeTestBase
…zerUpgradeTestBase
…lizerUpgradeTestBase
…erUpgradeTestBase
All tests have been ported to the new test base.
|
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit b2da3dd (Wed May 27 14:57:47 UTC 2020) Warnings:
Mention the bot in a comment to re-run the automated checks. Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. DetailsThe Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commandsThe @flinkbot bot supports the following commands:
|
klion26
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aljoscha thanks for great work!, I just have a minor question about the versions for PojoSerializerUpgradeTest
| testVersions.add(MigrationVersion.v1_7); | ||
| testVersions.add(MigrationVersion.v1_8); | ||
| testVersions.add(MigrationVersion.v1_9); | ||
| testVersions.addAll(Arrays.asList(MIGRATION_VERSIONS)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IICU, we do not support v1_10 here because of there did not have the snapshot for 1_10, do we need to add a comment for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, I'm extending the comment here.
|
Merged! |
What is the purpose of the change
We migrate all serializer upgrade tests from
TypeSerializerSnapshotMigrationTestBasetoTypeSerializerUpgradeTestBase. Additionally, we add snapshots for Flink 1.11 for all the serializers. This will give us test coverage from 1.11 onward for serializer compatibility.This is work by @klion26 and me, I am mostly the reviewer but putting up this PR to have a paper trail.
And thanks a lot to @klion26 for working on this gigantic task with me! 🎊
Brief change log
MigrationVersioncc @klion26 Could you do a final review?
cc @tzulitai