You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/11/18 11:49:48 UTC
[GitHub] [flink] SteNicholas opened a new pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
SteNicholas opened a new pull request #14120:
URL: https://github.com/apache/flink/pull/14120
## What is the purpose of the change
*Currently, `TypeInfoTestCoverageTest` which checks a test that extends `TypeInformationTestBase` for all type infos. But `TypeSerializer` doesn’t have the same thing that would verify that `TypeSerializer` has tests that extend `SerializerTestBase` and `TypeSerializerUpgradeTestBase`. Therefore this should add `TypeSerializerTestCoverageTest` to check whether to have tests based on `SerializerTestBase` and `TypeSerializerUpgradeTestBase` because all serializers should have tests based on both of them.*
## Brief change log
- *Add `TypeSerializerTestCoverageTest` to check whether to have tests based on `SerializerTestBase` and `TypeSerializerUpgradeTestBase`.*
- *Modify `StreamElementSerializerTest` extends `SerializerTestBase` to cover the test of `StreamElementSerializer`.*
## Verifying this change
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): (yes / **no**)
- The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (yes / **no**)
- The serializers: (**yes** / no / don't know)
- The runtime per-record code paths (performance sensitive): (yes / **no** / don't know)
- Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn/Mesos, ZooKeeper: (yes / **no** / don't know)
- The S3 file system connector: (yes / **no** / don't know)
## Documentation
- Does this pull request introduce a new feature? (yes / **no**)
- If yes, how is the feature documented? (**not applicable** / docs / JavaDocs / not documented)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-729644511
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7a0700585dc56e463bea46e46d85937562202717",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9777",
"triggerID" : "7a0700585dc56e463bea46e46d85937562202717",
"triggerType" : "PUSH"
}, {
"hash" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9867",
"triggerID" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"triggerType" : "PUSH"
}, {
"hash" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10027",
"triggerID" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* d5dc87dc93ac56eb60e8b1067b9f930fd22b1857 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9867)
* ba730ab74271cadc57bfd5e952139e1e742c817b Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10027)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] guoweiM commented on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
guoweiM commented on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-734294887
Thanks @SteNicholas for resolving the comments and it looks good to me.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot commented on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
flinkbot commented on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-729629462
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community
to review your pull request. We will use this comment to track the progress of the review.
## Automated Checks
Last check on commit 7a0700585dc56e463bea46e46d85937562202717 (Wed Nov 18 11:52:18 UTC 2020)
**Warnings:**
* No documentation files were touched! Remember to keep the Flink docs up to date!
<sub>Mention the bot in a comment to re-run the automated checks.</sub>
## Review Progress
* ❓ 1. The [description] looks good.
* ❓ 2. There is [consensus] that the contribution should go into to Flink.
* ❓ 3. Needs [attention] from.
* ❓ 4. The change fits into the overall [architecture].
* ❓ 5. Overall code [quality] is good.
Please see the [Pull Request Review Guide](https://flink.apache.org/contributing/reviewing-prs.html) for a full explanation of the review process.<details>
The 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 <summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot approve description` to approve one or more aspects (aspects: `description`, `consensus`, `architecture` and `quality`)
- `@flinkbot approve all` to approve all aspects
- `@flinkbot approve-until architecture` to approve everything until `architecture`
- `@flinkbot attention @username1 [@username2 ..]` to require somebody's attention
- `@flinkbot disapprove architecture` to remove an approval you gave earlier
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-729644511
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7a0700585dc56e463bea46e46d85937562202717",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9777",
"triggerID" : "7a0700585dc56e463bea46e46d85937562202717",
"triggerType" : "PUSH"
}, {
"hash" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9867",
"triggerID" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 7a0700585dc56e463bea46e46d85937562202717 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9777)
* d5dc87dc93ac56eb60e8b1067b9f930fd22b1857 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9867)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] SteNicholas removed a comment on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
SteNicholas removed a comment on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-732773261
@guoweiM , I have added the missing tests for `typeutils` package. Please help to review again if you are available.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] SteNicholas commented on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
SteNicholas commented on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-733650072
@guoweiM , according to offline discussion, I have add type serializer whitelist for missing `SerializerTestBase` and `TypeSerializerUpgradeTestBase`, which tests should be add later on other pull requests. This pull request is defined to find the missing test and check the other `TypeSerializer ` added in future.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-729644511
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7a0700585dc56e463bea46e46d85937562202717",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9777",
"triggerID" : "7a0700585dc56e463bea46e46d85937562202717",
"triggerType" : "PUSH"
}, {
"hash" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9867",
"triggerID" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"triggerType" : "PUSH"
}, {
"hash" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10027",
"triggerID" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"triggerType" : "PUSH"
}, {
"hash" : "f8cab3962ff04f69741406107c00a706a301a957",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10051",
"triggerID" : "f8cab3962ff04f69741406107c00a706a301a957",
"triggerType" : "PUSH"
}, {
"hash" : "768e314098bd6e55f0deb5d1f74fab12aae658d7",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10103",
"triggerID" : "768e314098bd6e55f0deb5d1f74fab12aae658d7",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* f8cab3962ff04f69741406107c00a706a301a957 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10051)
* 768e314098bd6e55f0deb5d1f74fab12aae658d7 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10103)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-729644511
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7a0700585dc56e463bea46e46d85937562202717",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9777",
"triggerID" : "7a0700585dc56e463bea46e46d85937562202717",
"triggerType" : "PUSH"
}, {
"hash" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9867",
"triggerID" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"triggerType" : "PUSH"
}, {
"hash" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10027",
"triggerID" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"triggerType" : "PUSH"
}, {
"hash" : "f8cab3962ff04f69741406107c00a706a301a957",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10051",
"triggerID" : "f8cab3962ff04f69741406107c00a706a301a957",
"triggerType" : "PUSH"
}, {
"hash" : "768e314098bd6e55f0deb5d1f74fab12aae658d7",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10103",
"triggerID" : "768e314098bd6e55f0deb5d1f74fab12aae658d7",
"triggerType" : "PUSH"
}, {
"hash" : "0d7a9c59ca7752c8b8da941da0095139fe587d3a",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10174",
"triggerID" : "0d7a9c59ca7752c8b8da941da0095139fe587d3a",
"triggerType" : "PUSH"
}, {
"hash" : "340a6c872bbf65b85c1eaaaf7399b1cec764152a",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10462",
"triggerID" : "340a6c872bbf65b85c1eaaaf7399b1cec764152a",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 0d7a9c59ca7752c8b8da941da0095139fe587d3a Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10174)
* 340a6c872bbf65b85c1eaaaf7399b1cec764152a Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10462)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] SteNicholas commented on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
SteNicholas commented on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-734257569
@guoweiM , according to offline discussion, I have add type serializer whitelist for missing `SerializerTestBase` and `TypeSerializerUpgradeTestBase`, which tests should be add later on other pull requests. This pull request is defined to find the missing test and in future this would add the missing `SerializerTestBase` and `TypeSerializerUpgradeTestBase` for the existed `TypeSerializer ` added .
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] SteNicholas commented on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
SteNicholas commented on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-737757185
@aljoscha , please review the `TypeSerializerCoverageTest` again. I have merged your commit about the serializers in the Scala package.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-729644511
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7a0700585dc56e463bea46e46d85937562202717",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9777",
"triggerID" : "7a0700585dc56e463bea46e46d85937562202717",
"triggerType" : "PUSH"
}, {
"hash" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9867",
"triggerID" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"triggerType" : "PUSH"
}, {
"hash" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10027",
"triggerID" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"triggerType" : "PUSH"
}, {
"hash" : "f8cab3962ff04f69741406107c00a706a301a957",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10051",
"triggerID" : "f8cab3962ff04f69741406107c00a706a301a957",
"triggerType" : "PUSH"
}, {
"hash" : "768e314098bd6e55f0deb5d1f74fab12aae658d7",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10103",
"triggerID" : "768e314098bd6e55f0deb5d1f74fab12aae658d7",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 768e314098bd6e55f0deb5d1f74fab12aae658d7 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10103)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] aljoscha commented on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
aljoscha commented on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-737777871
Thanks for the contribution, @SteNicholas! And thanks for the review, @guoweiM! I now merged this.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-729644511
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7a0700585dc56e463bea46e46d85937562202717",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9777",
"triggerID" : "7a0700585dc56e463bea46e46d85937562202717",
"triggerType" : "PUSH"
}, {
"hash" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9867",
"triggerID" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"triggerType" : "PUSH"
}, {
"hash" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10027",
"triggerID" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"triggerType" : "PUSH"
}, {
"hash" : "f8cab3962ff04f69741406107c00a706a301a957",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10051",
"triggerID" : "f8cab3962ff04f69741406107c00a706a301a957",
"triggerType" : "PUSH"
}, {
"hash" : "768e314098bd6e55f0deb5d1f74fab12aae658d7",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10103",
"triggerID" : "768e314098bd6e55f0deb5d1f74fab12aae658d7",
"triggerType" : "PUSH"
}, {
"hash" : "0d7a9c59ca7752c8b8da941da0095139fe587d3a",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10174",
"triggerID" : "0d7a9c59ca7752c8b8da941da0095139fe587d3a",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 0d7a9c59ca7752c8b8da941da0095139fe587d3a Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10174)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] SteNicholas commented on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
SteNicholas commented on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-734534667
@aljoscha , could you please take a look at this pull request? @guoweiM has already completed the review.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] aljoscha commented on a change in pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
aljoscha commented on a change in pull request #14120:
URL: https://github.com/apache/flink/pull/14120#discussion_r534191802
##########
File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/api/operators/sort/KeyAndValueSerializer.java
##########
@@ -41,7 +41,7 @@
* [key-length] | <key> | <timestamp> | <record>
* </pre>
*/
-final class KeyAndValueSerializer<IN> extends TypeSerializer<Tuple2<byte[], StreamRecord<IN>>> {
+public final class KeyAndValueSerializer<IN> extends TypeSerializer<Tuple2<byte[], StreamRecord<IN>>> {
Review comment:
We shouldn't make this `public` just to make it accessible in the test. We can just use a `"String"` for exclusion.
##########
File path: flink-tests/src/test/java/org/apache/flink/test/completeness/TypeSerializerTestCoverageTest.java
##########
@@ -0,0 +1,180 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.flink.test.completeness;
+
+import org.apache.flink.api.common.typeutils.SerializerTestBase;
+import org.apache.flink.api.common.typeutils.SingleThreadAccessCheckingTypeSerializer;
+import org.apache.flink.api.common.typeutils.TypeSerializer;
+import org.apache.flink.api.common.typeutils.TypeSerializerUpgradeTestBase;
+import org.apache.flink.api.common.typeutils.UnloadableDummyTypeSerializer;
+import org.apache.flink.api.common.typeutils.base.EnumSerializer;
+import org.apache.flink.api.common.typeutils.base.GenericArraySerializer;
+import org.apache.flink.api.common.typeutils.base.InstantSerializer;
+import org.apache.flink.api.common.typeutils.base.LocalDateSerializer;
+import org.apache.flink.api.common.typeutils.base.LocalDateTimeSerializer;
+import org.apache.flink.api.common.typeutils.base.LocalTimeSerializer;
+import org.apache.flink.api.common.typeutils.base.NullValueSerializer;
+import org.apache.flink.api.common.typeutils.base.VoidSerializer;
+import org.apache.flink.api.common.typeutils.base.array.BooleanPrimitiveArraySerializer;
+import org.apache.flink.api.common.typeutils.base.array.BytePrimitiveArraySerializer;
+import org.apache.flink.api.common.typeutils.base.array.CharPrimitiveArraySerializer;
+import org.apache.flink.api.common.typeutils.base.array.DoublePrimitiveArraySerializer;
+import org.apache.flink.api.common.typeutils.base.array.FloatPrimitiveArraySerializer;
+import org.apache.flink.api.common.typeutils.base.array.IntPrimitiveArraySerializer;
+import org.apache.flink.api.common.typeutils.base.array.LongPrimitiveArraySerializer;
+import org.apache.flink.api.common.typeutils.base.array.ShortPrimitiveArraySerializer;
+import org.apache.flink.api.common.typeutils.base.array.StringArraySerializer;
+import org.apache.flink.api.java.typeutils.runtime.CopyableValueSerializer;
+import org.apache.flink.api.java.typeutils.runtime.EitherSerializer;
+import org.apache.flink.api.java.typeutils.runtime.RowSerializer;
+import org.apache.flink.api.java.typeutils.runtime.Tuple0Serializer;
+import org.apache.flink.api.java.typeutils.runtime.TupleSerializer;
+import org.apache.flink.api.java.typeutils.runtime.ValueSerializer;
+import org.apache.flink.api.java.typeutils.runtime.WritableSerializer;
+import org.apache.flink.api.java.typeutils.runtime.kryo.KryoSerializer;
+import org.apache.flink.core.io.SimpleVersionedSerializerTypeSerializerProxy;
+import org.apache.flink.runtime.state.ArrayListSerializer;
+import org.apache.flink.runtime.state.ttl.TtlStateFactory;
+import org.apache.flink.streaming.api.datastream.CoGroupedStreams;
+import org.apache.flink.streaming.api.functions.sink.TwoPhaseCommitSinkFunction;
+import org.apache.flink.streaming.api.operators.InternalTimersSnapshotReaderWriters;
+import org.apache.flink.streaming.api.operators.co.IntervalJoinOperator;
+import org.apache.flink.streaming.api.operators.sort.KeyAndValueSerializer;
+import org.apache.flink.streaming.api.windowing.windows.GlobalWindow;
+import org.apache.flink.streaming.api.windowing.windows.TimeWindow;
+import org.apache.flink.streaming.runtime.streamrecord.StreamElementSerializer;
+import org.apache.flink.util.TestLogger;
+
+import org.junit.Test;
+import org.reflections.Reflections;
+
+import java.lang.reflect.Modifier;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Set;
+import java.util.stream.Collectors;
+
+import static org.junit.Assert.fail;
+
+/**
+ * Scans the class path for type serializer and checks if there is a test for it.
+ */
+public class TypeSerializerTestCoverageTest extends TestLogger {
+
+ @Test
+ public void testTypeSerializerTestCoverage() {
+ final Reflections reflections = new Reflections("org.apache.flink");
+
+ final Set<Class<? extends TypeSerializer>> typeSerializers = reflections.getSubTypesOf(TypeSerializer.class);
+
+ final Set<String> typeSerializerTestNames = reflections.getSubTypesOf(SerializerTestBase.class)
+ .stream().map(Class::getName).collect(Collectors.toSet());
+ final Set<String> typeSerializerUpgradeTestNames = reflections.getSubTypesOf(TypeSerializerUpgradeTestBase.class)
+ .stream().map(Class::getName).collect(Collectors.toSet());
+ final Set<String> typeSerializerUpgradeSetupNames = reflections.getSubTypesOf(TypeSerializerUpgradeTestBase.PreUpgradeSetup.class)
+ .stream().map(Class::getSimpleName).collect(Collectors.toSet());
+
+ // type serializer whitelist for SerializerTestBase test coverage
+ final List<String> serializerTestBaseWhitelist = Arrays.asList(
+ KeyAndValueSerializer.class.getName(),
+ ArrayListSerializer.class.getName(),
+ EitherSerializer.class.getName(),
+ SingleThreadAccessCheckingTypeSerializer.class.getName(),
+ GenericArraySerializer.class.getName(),
+ NullValueSerializer.class.getName(),
+ Tuple0Serializer.class.getName(),
+ CopyableValueSerializer.class.getName(),
+ VoidSerializer.class.getName(),
+ ValueSerializer.class.getName(),
+ RowSerializer.class.getName(),
+ StreamElementSerializer.class.getName(),
+ WritableSerializer.class.getName(),
+ KryoSerializer.class.getName(),
+ UnloadableDummyTypeSerializer.class.getName(),
+ TupleSerializer.class.getName(),
+ EnumSerializer.class.getName(),
+ CoGroupedStreams.UnionSerializer.class.getName(),
+ TtlStateFactory.TtlSerializer.class.getName(),
+ TimeWindow.Serializer.class.getName(),
+ InternalTimersSnapshotReaderWriters.LegacyTimerSerializer.class.getName(),
+ TwoPhaseCommitSinkFunction.StateSerializer.class.getName(),
+ IntervalJoinOperator.BufferEntrySerializer.class.getName(),
+ GlobalWindow.Serializer.class.getName(),
+ org.apache.flink.queryablestate.client.VoidNamespaceSerializer.class.getName(),
+ org.apache.flink.runtime.state.VoidNamespaceSerializer.class.getName()
+ );
+
+ // type serializer whitelist for TypeSerializerUpgradeTestBase test coverage
+ final List<String> typeSerializerUpgradeTestBaseWhitelist = Arrays.asList(
+ KeyAndValueSerializer.class.getName(),
+ InstantSerializer.class.getName(),
+ SingleThreadAccessCheckingTypeSerializer.class.getName(),
+ SimpleVersionedSerializerTypeSerializerProxy.class.getName(),
+ Tuple0Serializer.class.getName(),
+ CopyableValueSerializer.class.getName(),
+ VoidSerializer.class.getName(),
+ StringArraySerializer.class.getName(),
+ LocalDateTimeSerializer.class.getName(),
+ BooleanPrimitiveArraySerializer.class.getName(),
+ BytePrimitiveArraySerializer.class.getName(),
+ CharPrimitiveArraySerializer.class.getName(),
+ DoublePrimitiveArraySerializer.class.getName(),
+ FloatPrimitiveArraySerializer.class.getName(),
+ IntPrimitiveArraySerializer.class.getName(),
+ LongPrimitiveArraySerializer.class.getName(),
+ ShortPrimitiveArraySerializer.class.getName(),
+ LocalDateSerializer.class.getName(),
+ LocalTimeSerializer.class.getName(),
+ UnloadableDummyTypeSerializer.class.getName(),
+ TimeWindow.Serializer.class.getName(),
+ CoGroupedStreams.UnionSerializer.class.getName(),
+ InternalTimersSnapshotReaderWriters.LegacyTimerSerializer.class.getName(),
+ TwoPhaseCommitSinkFunction.StateSerializer.class.getName(),
+ GlobalWindow.Serializer.class.getName()
+ );
+
+ // check if a test exists for each type serializer
+ for (Class<? extends TypeSerializer> typeSerializer : typeSerializers) {
+ // we skip abstract classes, test classes, inner classes and scala classes to skip type serializer defined in test classes
+ if (Modifier.isAbstract(typeSerializer.getModifiers()) ||
+ Modifier.isPrivate(typeSerializer.getModifiers()) ||
+ typeSerializer.getName().contains("test") ||
+ typeSerializer.getName().contains("Test") ||
+ typeSerializer.getName().contains("ITCase") ||
+ typeSerializer.getName().contains("$$anon") ||
+ typeSerializer.getName().contains("scala")) {
Review comment:
These exclusions are a bit too broad now. Like this, newly added Scala `TypeSerializers` will not trigger the test.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] SteNicholas commented on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
SteNicholas commented on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-732773261
@guoweiM , I have added the missing tests for `typeutils` package. Please help to review again if you are available.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-729644511
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7a0700585dc56e463bea46e46d85937562202717",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9777",
"triggerID" : "7a0700585dc56e463bea46e46d85937562202717",
"triggerType" : "PUSH"
}, {
"hash" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9867",
"triggerID" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"triggerType" : "PUSH"
}, {
"hash" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10027",
"triggerID" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"triggerType" : "PUSH"
}, {
"hash" : "f8cab3962ff04f69741406107c00a706a301a957",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "f8cab3962ff04f69741406107c00a706a301a957",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* ba730ab74271cadc57bfd5e952139e1e742c817b Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10027)
* f8cab3962ff04f69741406107c00a706a301a957 UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-729644511
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7a0700585dc56e463bea46e46d85937562202717",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9777",
"triggerID" : "7a0700585dc56e463bea46e46d85937562202717",
"triggerType" : "PUSH"
}, {
"hash" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9867",
"triggerID" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"triggerType" : "PUSH"
}, {
"hash" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10027",
"triggerID" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"triggerType" : "PUSH"
}, {
"hash" : "f8cab3962ff04f69741406107c00a706a301a957",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10051",
"triggerID" : "f8cab3962ff04f69741406107c00a706a301a957",
"triggerType" : "PUSH"
}, {
"hash" : "768e314098bd6e55f0deb5d1f74fab12aae658d7",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10103",
"triggerID" : "768e314098bd6e55f0deb5d1f74fab12aae658d7",
"triggerType" : "PUSH"
}, {
"hash" : "0d7a9c59ca7752c8b8da941da0095139fe587d3a",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10174",
"triggerID" : "0d7a9c59ca7752c8b8da941da0095139fe587d3a",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 768e314098bd6e55f0deb5d1f74fab12aae658d7 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10103)
* 0d7a9c59ca7752c8b8da941da0095139fe587d3a Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10174)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] SteNicholas edited a comment on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
SteNicholas edited a comment on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-734534667
@aljoscha , could you please take a look at this pull request?
@guoweiM has already completed the review.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] SteNicholas commented on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
SteNicholas commented on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-731045138
> Thanks @SteNicholas for opening this pr. In general the pr is good to me. I just have some minor comments.
>
> 1. Provide more precise filtering. Currently it is fine that we use the “typeutils” to filter because there are already some cases. (For example PrimitiveArraySerializerUpgradeTest.java and BasicTypeSerializerUpgradeTest.java). But I think the filter scope might be a little big. If somebody adds a serializer in the “typeutils” package and does not follow our rule we could not find it.
> 2. Make the filter consistent in the ‘TypeInfoTestCoverageTest’ and ‘TypeSerializerTestCoverageTest’. I think we might use the same condition to filter the “test/itcase/innercalss”.
> 3. Maybe we could split the commit to two. One is to add a test for StreamElement. One is to add the `‘TypeSerializerTestCoverageTest’`
Thanks for @guoweiM detailed review. I have followed the second comment for the filter consistent.
About the first point, the typeutils package shoud be excluded. Because based on `SerializerTestBase `, the typeutils package has missing tests as follows:
```
Could not find test 'org.apache.flink.api.common.typeutils.base.GenericArraySerializerTest' that covers 'org.apache.flink.api.common.typeutils.base.GenericArraySerializer'.
Could not find test 'org.apache.flink.api.common.typeutils.SingleThreadAccessCheckingTypeSerializerTest' that covers 'org.apache.flink.api.common.typeutils.SingleThreadAccessCheckingTypeSerializer'.
Could not find test 'org.apache.flink.api.common.typeutils.UnloadableDummyTypeSerializerTest' that covers 'org.apache.flink.api.common.typeutils.UnloadableDummyTypeSerializer'.
Could not find test 'org.apache.flink.api.common.typeutils.base.VoidSerializerTest' that covers 'org.apache.flink.api.common.typeutils.base.VoidSerializer'.
Could not find test 'org.apache.flink.api.java.typeutils.runtime.CopyableValueSerializerTest' that covers 'org.apache.flink.api.java.typeutils.runtime.CopyableValueSerializer'.
Could not find test 'org.apache.flink.api.common.typeutils.base.NullValueSerializerTest' that covers 'org.apache.flink.api.common.typeutils.base.NullValueSerializer'.
```
About the third point, IMO, this could be included in this commit because the `TypeSerializerTestCoverageTest ` checkes these tests in typesutils package that the name of the tests are correct but not extend `SerializerTestBase`. Therefore, to pass the tests cases for `TypeSerializerTestCoverageTest`, these tests that the pull request included are necessary.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-729644511
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7a0700585dc56e463bea46e46d85937562202717",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9777",
"triggerID" : "7a0700585dc56e463bea46e46d85937562202717",
"triggerType" : "PUSH"
}, {
"hash" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9867",
"triggerID" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"triggerType" : "PUSH"
}, {
"hash" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10027",
"triggerID" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"triggerType" : "PUSH"
}, {
"hash" : "f8cab3962ff04f69741406107c00a706a301a957",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10051",
"triggerID" : "f8cab3962ff04f69741406107c00a706a301a957",
"triggerType" : "PUSH"
}, {
"hash" : "768e314098bd6e55f0deb5d1f74fab12aae658d7",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10103",
"triggerID" : "768e314098bd6e55f0deb5d1f74fab12aae658d7",
"triggerType" : "PUSH"
}, {
"hash" : "0d7a9c59ca7752c8b8da941da0095139fe587d3a",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "0d7a9c59ca7752c8b8da941da0095139fe587d3a",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 768e314098bd6e55f0deb5d1f74fab12aae658d7 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10103)
* 0d7a9c59ca7752c8b8da941da0095139fe587d3a UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] aljoscha closed pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
aljoscha closed pull request #14120:
URL: https://github.com/apache/flink/pull/14120
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-729644511
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7a0700585dc56e463bea46e46d85937562202717",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9777",
"triggerID" : "7a0700585dc56e463bea46e46d85937562202717",
"triggerType" : "PUSH"
}, {
"hash" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9867",
"triggerID" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"triggerType" : "PUSH"
}, {
"hash" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10027",
"triggerID" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"triggerType" : "PUSH"
}, {
"hash" : "f8cab3962ff04f69741406107c00a706a301a957",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10051",
"triggerID" : "f8cab3962ff04f69741406107c00a706a301a957",
"triggerType" : "PUSH"
}, {
"hash" : "768e314098bd6e55f0deb5d1f74fab12aae658d7",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10103",
"triggerID" : "768e314098bd6e55f0deb5d1f74fab12aae658d7",
"triggerType" : "PUSH"
}, {
"hash" : "0d7a9c59ca7752c8b8da941da0095139fe587d3a",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10174",
"triggerID" : "0d7a9c59ca7752c8b8da941da0095139fe587d3a",
"triggerType" : "PUSH"
}, {
"hash" : "340a6c872bbf65b85c1eaaaf7399b1cec764152a",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "340a6c872bbf65b85c1eaaaf7399b1cec764152a",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 0d7a9c59ca7752c8b8da941da0095139fe587d3a Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10174)
* 340a6c872bbf65b85c1eaaaf7399b1cec764152a UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] SteNicholas removed a comment on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
SteNicholas removed a comment on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-733650072
@guoweiM , according to offline discussion, I have add type serializer whitelist for missing `SerializerTestBase` and `TypeSerializerUpgradeTestBase`, which tests should be add later on other pull requests. This pull request is defined to find the missing test and check the other `TypeSerializer ` added in future.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] guoweiM commented on a change in pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
guoweiM commented on a change in pull request #14120:
URL: https://github.com/apache/flink/pull/14120#discussion_r530162870
##########
File path: flink-core/src/test/java/org/apache/flink/api/java/typeutils/runtime/EitherSerializerTest.java
##########
@@ -157,38 +192,41 @@ public void testEitherWithObjectReuse() {
}
@Test
- public void testSerializeIndividually() throws IOException {
- EitherTypeInfo<LongValue, DoubleValue> eitherTypeInfo = new EitherTypeInfo<>(
- ValueTypeInfo.LONG_VALUE_TYPE_INFO, ValueTypeInfo.DOUBLE_VALUE_TYPE_INFO);
- EitherSerializer<LongValue, DoubleValue> eitherSerializer =
- (EitherSerializer<LongValue, DoubleValue>) eitherTypeInfo.createSerializer(new ExecutionConfig());
-
- LongValue lv = new LongValue();
- DoubleValue dv = new DoubleValue();
-
- Either<LongValue, DoubleValue> left = Left(lv);
- Either<LongValue, DoubleValue> right = Right(dv);
-
- TestOutputView out = new TestOutputView();
- eitherSerializer.serialize(left, out);
- eitherSerializer.serialize(right, out);
- eitherSerializer.serialize(left, out);
-
- TestInputView in = out.getInputView();
- // the first deserialization creates a new instance of Left
- Either<LongValue, DoubleValue> copy0 = eitherSerializer.deserialize(right, in);
-
- // then the cross-references are used for future copies
- Either<LongValue, DoubleValue> copy1 = eitherSerializer.deserialize(copy0, in);
- Either<LongValue, DoubleValue> copy2 = eitherSerializer.deserialize(copy1, in);
-
- // validate reference equality
- assertSame(right, copy1);
- assertSame(copy0, copy2);
-
- // validate reference equality of contained objects
- assertSame(right.right(), copy1.right());
- assertSame(copy0.left(), copy2.left());
+ public void testSerializeIndividually() {
Review comment:
Maybe we need to change the name for example testEitherWithLongAndDoulbe.
Or the parent test would not run.
##########
File path: flink-tests/src/test/java/org/apache/flink/test/completeness/TypeInfoTestCoverageTest.java
##########
@@ -50,10 +50,11 @@ public void testTypeInfoTestCoverage() {
// we skip abstract classes and inner classes to skip type information defined in test classes
if (Modifier.isAbstract(typeInfo.getModifiers()) ||
Modifier.isPrivate(typeInfo.getModifiers()) ||
- typeInfo.getName().contains("Test$") ||
- typeInfo.getName().contains("TestBase$") ||
- typeInfo.getName().contains("ITCase$") ||
- typeInfo.getName().contains("$$anon") ||
+ typeInfo.getName().contains("test") ||
+ typeInfo.getName().contains("Test") ||
+ typeInfo.getName().contains("ITCase") ||
+ typeInfo.getName().contains("$") ||
Review comment:
I think we could not exclude all the internal classes.
##########
File path: flink-core/src/test/java/org/apache/flink/api/common/typeutils/base/EnumSerializerTest.java
##########
@@ -36,15 +37,38 @@
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
-public class EnumSerializerTest extends TestLogger {
+/**
+ * Tests for {@link EnumSerializer}.
+ */
+public class EnumSerializerTest extends SerializerTestBase<EnumSerializerTest.PublicEnum> {
+
+ @Override
+ protected TypeSerializer<PublicEnum> createSerializer() {
+ return new EnumSerializer<>(PublicEnum.class);
+ }
+
+ @Override
+ protected int getLength() {
+ return 4;
+ }
+
+ @Override
+ protected Class<PublicEnum> getTypeClass() {
+ return PublicEnum.class;
+ }
+
+ @Override
+ protected PublicEnum[] getTestData() {
+ return new PublicEnum[]{PublicEnum.FOO, PublicEnum.BAR};
+ }
@Test
- public void testPublicEnum() {
+ public void testPrivateEnum() {
testEnumSerializer(PrivateEnum.ONE, PrivateEnum.TWO, PrivateEnum.THREE);
}
@Test
- public void testPrivateEnum() {
+ public void testPublicEnum() {
Review comment:
see above
##########
File path: flink-core/src/test/java/org/apache/flink/api/common/typeutils/base/EnumSerializerTest.java
##########
@@ -36,15 +37,38 @@
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
-public class EnumSerializerTest extends TestLogger {
+/**
+ * Tests for {@link EnumSerializer}.
+ */
+public class EnumSerializerTest extends SerializerTestBase<EnumSerializerTest.PublicEnum> {
+
+ @Override
+ protected TypeSerializer<PublicEnum> createSerializer() {
+ return new EnumSerializer<>(PublicEnum.class);
+ }
+
+ @Override
+ protected int getLength() {
+ return 4;
+ }
+
+ @Override
+ protected Class<PublicEnum> getTypeClass() {
+ return PublicEnum.class;
+ }
+
+ @Override
+ protected PublicEnum[] getTestData() {
+ return new PublicEnum[]{PublicEnum.FOO, PublicEnum.BAR};
+ }
@Test
- public void testPublicEnum() {
+ public void testPrivateEnum() {
Review comment:
maybe we could open another commit/pr for this
##########
File path: flink-core/src/test/java/org/apache/flink/api/java/typeutils/runtime/Tuple0SerializerTest.java
##########
@@ -0,0 +1,50 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+package org.apache.flink.api.java.typeutils.runtime;
+
+import org.apache.flink.api.common.typeutils.SerializerTestBase;
+import org.apache.flink.api.common.typeutils.TypeSerializer;
+import org.apache.flink.api.java.tuple.Tuple0;
+
+/**
+ * Tests for {@link Tuple0Serializer}.
+ */
+public class Tuple0SerializerTest extends SerializerTestBase<Tuple0> {
+
+ @Override
+ protected TypeSerializer<Tuple0> createSerializer() {
+ return Tuple0Serializer.INSTANCE;
+ }
+
+ @Override
+ protected int getLength() {
+ return 1;
+ }
+
+ @Override
+ protected Class<Tuple0> getTypeClass() {
+ return Tuple0.class;
+ }
+
+ @Override
+ protected Tuple0[] getTestData() {
+ return new Tuple0[]{Tuple0.INSTANCE, Tuple0.INSTANCE, Tuple0.INSTANCE};
Review comment:
maybe one is enough. :-)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-729644511
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7a0700585dc56e463bea46e46d85937562202717",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9777",
"triggerID" : "7a0700585dc56e463bea46e46d85937562202717",
"triggerType" : "PUSH"
}, {
"hash" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9867",
"triggerID" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"triggerType" : "PUSH"
}, {
"hash" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10027",
"triggerID" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"triggerType" : "PUSH"
}, {
"hash" : "f8cab3962ff04f69741406107c00a706a301a957",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10051",
"triggerID" : "f8cab3962ff04f69741406107c00a706a301a957",
"triggerType" : "PUSH"
}, {
"hash" : "768e314098bd6e55f0deb5d1f74fab12aae658d7",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10103",
"triggerID" : "768e314098bd6e55f0deb5d1f74fab12aae658d7",
"triggerType" : "PUSH"
}, {
"hash" : "0d7a9c59ca7752c8b8da941da0095139fe587d3a",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10174",
"triggerID" : "0d7a9c59ca7752c8b8da941da0095139fe587d3a",
"triggerType" : "PUSH"
}, {
"hash" : "340a6c872bbf65b85c1eaaaf7399b1cec764152a",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10462",
"triggerID" : "340a6c872bbf65b85c1eaaaf7399b1cec764152a",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 340a6c872bbf65b85c1eaaaf7399b1cec764152a Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10462)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-729644511
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7a0700585dc56e463bea46e46d85937562202717",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9777",
"triggerID" : "7a0700585dc56e463bea46e46d85937562202717",
"triggerType" : "PUSH"
}, {
"hash" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9867",
"triggerID" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"triggerType" : "PUSH"
}, {
"hash" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10027",
"triggerID" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"triggerType" : "PUSH"
}, {
"hash" : "f8cab3962ff04f69741406107c00a706a301a957",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10051",
"triggerID" : "f8cab3962ff04f69741406107c00a706a301a957",
"triggerType" : "PUSH"
}, {
"hash" : "768e314098bd6e55f0deb5d1f74fab12aae658d7",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "768e314098bd6e55f0deb5d1f74fab12aae658d7",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* f8cab3962ff04f69741406107c00a706a301a957 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10051)
* 768e314098bd6e55f0deb5d1f74fab12aae658d7 UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-729644511
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7a0700585dc56e463bea46e46d85937562202717",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9777",
"triggerID" : "7a0700585dc56e463bea46e46d85937562202717",
"triggerType" : "PUSH"
}, {
"hash" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 7a0700585dc56e463bea46e46d85937562202717 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9777)
* d5dc87dc93ac56eb60e8b1067b9f930fd22b1857 UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot commented on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
flinkbot commented on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-729644511
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7a0700585dc56e463bea46e46d85937562202717",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "7a0700585dc56e463bea46e46d85937562202717",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 7a0700585dc56e463bea46e46d85937562202717 UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-729644511
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7a0700585dc56e463bea46e46d85937562202717",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9777",
"triggerID" : "7a0700585dc56e463bea46e46d85937562202717",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 7a0700585dc56e463bea46e46d85937562202717 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9777)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-729644511
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7a0700585dc56e463bea46e46d85937562202717",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9777",
"triggerID" : "7a0700585dc56e463bea46e46d85937562202717",
"triggerType" : "PUSH"
}, {
"hash" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9867",
"triggerID" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"triggerType" : "PUSH"
}, {
"hash" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10027",
"triggerID" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"triggerType" : "PUSH"
}, {
"hash" : "f8cab3962ff04f69741406107c00a706a301a957",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10051",
"triggerID" : "f8cab3962ff04f69741406107c00a706a301a957",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* ba730ab74271cadc57bfd5e952139e1e742c817b Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10027)
* f8cab3962ff04f69741406107c00a706a301a957 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10051)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-729644511
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7a0700585dc56e463bea46e46d85937562202717",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9777",
"triggerID" : "7a0700585dc56e463bea46e46d85937562202717",
"triggerType" : "PUSH"
}, {
"hash" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9867",
"triggerID" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"triggerType" : "PUSH"
}, {
"hash" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* d5dc87dc93ac56eb60e8b1067b9f930fd22b1857 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9867)
* ba730ab74271cadc57bfd5e952139e1e742c817b UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-729644511
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7a0700585dc56e463bea46e46d85937562202717",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9777",
"triggerID" : "7a0700585dc56e463bea46e46d85937562202717",
"triggerType" : "PUSH"
}, {
"hash" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9867",
"triggerID" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"triggerType" : "PUSH"
}, {
"hash" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10027",
"triggerID" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* ba730ab74271cadc57bfd5e952139e1e742c817b Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10027)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] SteNicholas removed a comment on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
SteNicholas removed a comment on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-731045138
> Thanks @SteNicholas for opening this pr. In general the pr is good to me. I just have some minor comments.
>
> 1. Provide more precise filtering. Currently it is fine that we use the “typeutils” to filter because there are already some cases. (For example PrimitiveArraySerializerUpgradeTest.java and BasicTypeSerializerUpgradeTest.java). But I think the filter scope might be a little big. If somebody adds a serializer in the “typeutils” package and does not follow our rule we could not find it.
> 2. Make the filter consistent in the ‘TypeInfoTestCoverageTest’ and ‘TypeSerializerTestCoverageTest’. I think we might use the same condition to filter the “test/itcase/innercalss”.
> 3. Maybe we could split the commit to two. One is to add a test for StreamElement. One is to add the `‘TypeSerializerTestCoverageTest’`
Thanks for @guoweiM detailed review. I have followed the second comment for the filter consistent.
About the first point, the typeutils package shoud be excluded. Because based on `SerializerTestBase `, the typeutils package has missing tests as follows:
```
Could not find test 'org.apache.flink.api.common.typeutils.base.GenericArraySerializerTest' that covers 'org.apache.flink.api.common.typeutils.base.GenericArraySerializer'.
Could not find test 'org.apache.flink.api.common.typeutils.SingleThreadAccessCheckingTypeSerializerTest' that covers 'org.apache.flink.api.common.typeutils.SingleThreadAccessCheckingTypeSerializer'.
Could not find test 'org.apache.flink.api.common.typeutils.UnloadableDummyTypeSerializerTest' that covers 'org.apache.flink.api.common.typeutils.UnloadableDummyTypeSerializer'.
Could not find test 'org.apache.flink.api.common.typeutils.base.VoidSerializerTest' that covers 'org.apache.flink.api.common.typeutils.base.VoidSerializer'.
Could not find test 'org.apache.flink.api.java.typeutils.runtime.CopyableValueSerializerTest' that covers 'org.apache.flink.api.java.typeutils.runtime.CopyableValueSerializer'.
Could not find test 'org.apache.flink.api.common.typeutils.base.NullValueSerializerTest' that covers 'org.apache.flink.api.common.typeutils.base.NullValueSerializer'.
```
About the third point, IMO, this could be included in this commit because the `TypeSerializerTestCoverageTest ` checkes these tests in typesutils package that the name of the tests are correct but not extend `SerializerTestBase`. Therefore, to pass the tests cases for `TypeSerializerTestCoverageTest`, these tests that the pull request included are necessary.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-729644511
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7a0700585dc56e463bea46e46d85937562202717",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9777",
"triggerID" : "7a0700585dc56e463bea46e46d85937562202717",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 7a0700585dc56e463bea46e46d85937562202717 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9777)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-729644511
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7a0700585dc56e463bea46e46d85937562202717",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9777",
"triggerID" : "7a0700585dc56e463bea46e46d85937562202717",
"triggerType" : "PUSH"
}, {
"hash" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9867",
"triggerID" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* d5dc87dc93ac56eb60e8b1067b9f930fd22b1857 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9867)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] guoweiM commented on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
guoweiM commented on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-730115130
Thanks @SteNicholas for opening this pr. In general the pr is good to me. I just have some minor comments.
1. Provide more precise filtering. Currently it is fine that we use the “typeutils” to filter because there are already some cases. (For example PrimitiveArraySerializerUpgradeTest.java and BasicTypeSerializerUpgradeTest.java). But I think the filter scope might be a little big. If somebody adds a serializer in the “typeutils” package and does not follow our rule we could not find it.
2. Make the filter consistent in the ‘TypeInfoTestCoverageTest’ and ‘TypeSerializerTestCoverageTest’. I think we might use the same condition to filter the “test/itcase/innercalss”.
3. Maybe we could split the commit to two. One is to add a test for StreamElement. One is to add the `‘TypeSerializerTestCoverageTest’`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #14120: [FLINK-19984][core] Add TypeSerializerTestCoverageTest to check whether tests based on SerializerTestBase and TypeSerializerUpgradeTestBase
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #14120:
URL: https://github.com/apache/flink/pull/14120#issuecomment-729644511
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7a0700585dc56e463bea46e46d85937562202717",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9777",
"triggerID" : "7a0700585dc56e463bea46e46d85937562202717",
"triggerType" : "PUSH"
}, {
"hash" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=9867",
"triggerID" : "d5dc87dc93ac56eb60e8b1067b9f930fd22b1857",
"triggerType" : "PUSH"
}, {
"hash" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10027",
"triggerID" : "ba730ab74271cadc57bfd5e952139e1e742c817b",
"triggerType" : "PUSH"
}, {
"hash" : "f8cab3962ff04f69741406107c00a706a301a957",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10051",
"triggerID" : "f8cab3962ff04f69741406107c00a706a301a957",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* f8cab3962ff04f69741406107c00a706a301a957 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=10051)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org