Skip to content

Conversation

@kw2542
Copy link
Contributor

@kw2542 kw2542 commented Aug 11, 2021

  1. Update logic to fire timer when timestamp equals to watermark
  2. Properly set timer family id when constructing TimerData in order to be properly deleted.
  3. Get timestamp from state store instead of Instance.now() in order to be properly deleted.
  4. Include NeedsRunner test catagory.

Please add a meaningful description for your change here


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

ValidatesRunner compliance status (on master branch)

Lang ULR Dataflow Flink Samza Spark Twister2
Go --- Build Status Build Status Build Status Build Status ---
Java Build Status Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Python --- Build Status
Build Status
Build Status
Build Status
Build Status
Build Status Build Status ---
XLang Build Status Build Status Build Status Build Status Build Status ---

Examples testing status on various runners

Lang ULR Dataflow Flink Samza Spark Twister2
Go --- --- --- --- --- --- ---
Java --- Build Status
Build Status
Build Status
--- --- --- --- ---
Python --- --- --- --- --- --- ---
XLang --- --- --- --- --- --- ---

Post-Commit SDK/Transform Integration Tests Status (on master branch)

Go Java Python
Build Status Build Status Build Status
Build Status
Build Status

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website Whitespace Typescript
Non-portable Build Status
Build Status
Build Status
Build Status
Build Status
Build Status Build Status Build Status Build Status
Portable --- Build Status Build Status --- --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests

See CI.md for more information about GitHub Actions CI.

Ke Wu added 3 commits August 11, 2021 16:35
1. Update logic to fire timer when timestamp equals to watermark
2. Properly set timer family id when constructing TimerData in order to be properly deleted.
3. Get timestamp from state store instead of Instance.now() in order to be properly deleted.
4. Include NeedsRunner test catagory.
@kw2542
Copy link
Contributor Author

kw2542 commented Aug 12, 2021

Dataflow Tests failed because of BEAM-12699

@kw2542
Copy link
Contributor Author

kw2542 commented Aug 12, 2021

Run Samza ValidatesRunner

@pabloem
Copy link
Member

pabloem commented Aug 12, 2021

Is this ready for review? LMK if I should help you find a reviewer of if you're good finding one yourself : )

@kw2542
Copy link
Contributor Author

kw2542 commented Aug 12, 2021

Thank you @pabloem for the offering. Could you help me identify a reviewer to review the changes on sdks/java/core/src/test/java/org/apache/beam/sdk

@xinyuiscool would help review the Samza runner changes.

Copy link
Member

@pabloem pabloem left a comment

Choose a reason for hiding this comment

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

Added a few comments. LGTM other than that.


@Test
@Category(NeedsRunner.class)
@Category({NeedsRunner.class, UsesTimersInParDo.class, UsesTestStream.class})
Copy link
Member

Choose a reason for hiding this comment

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

Thanks a lot for adding all of these categories. It will be helpful. Maybe add UsesTestStream.class to all of those that also have UsesTestStreamWithProcessingTime.class?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, this is what I would like to understand the common practice in beam.

UsesTestStreamWithProcessingTime is a subtype of UsesTestStream, based on JUnit documentation, tests marked as UsesTestStreamWithProcessingTime is also part of UsesTestStream but not the other way around.

Therefore, if a test is marked as UsesTestStreamWithProcessingTime, then marking it with UsesTestStream does not effectively change how it behaves since it transiently belongs to UsesTestStream category as well.

However, I do agree that having both annotations here are clearer and more readable and there does not seem to have cons to have both annotations.

What are your suggestions here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated all tests with UsesTestStreamWithProcessingTime to have UsesTestStream for now.

Copy link
Member

Choose a reason for hiding this comment

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

hi - well, I am not an expert on JUnit, but we have recently started storing the annotations, and we plan over the long term to use them to build a capability matrix, so I think it's best to separate all the sub-categories. Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have updated the PR so that tests with UsesTestStreamWithProcessingTime are also annotated with UsesTestStream, does this look good to you?

@kw2542 kw2542 requested a review from pabloem August 13, 2021 01:08
@kw2542
Copy link
Contributor Author

kw2542 commented Aug 13, 2021

Run Java PreCommit

Copy link
Contributor

@xinyuiscool xinyuiscool left a comment

Choose a reason for hiding this comment

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

Changes on Samza Runner looks good!

@kw2542
Copy link
Contributor Author

kw2542 commented Aug 16, 2021

@pabloem Can you help take another look ?

@kw2542
Copy link
Contributor Author

kw2542 commented Aug 17, 2021

Run Java_Examples_Dataflow PreCommit

@kw2542
Copy link
Contributor Author

kw2542 commented Aug 17, 2021

Run Java_Examples_Dataflow_Java11 PreCommit

@xinyuiscool xinyuiscool merged commit bd51855 into apache:master Aug 18, 2021
@kw2542 kw2542 deleted the BEAM-12742 branch August 18, 2021 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants