Skip to content

Conversation

@cademarkegard
Copy link
Contributor

Ports UserScoreTest off the DoFnTester in favor of testing through a real pipeline. This is subtask of the story of BEAM-3650 Deprecating and removing the DoFnTester.


Follow this checklist to help us incorporate your contribution quickly and easily:

  • 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.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

It will help us expedite review of your Pull Request if you tag someone (e.g. @username) to look at it.

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- --- --- --- ---
Java 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 --- --- ---

Copy link
Contributor

@aromanenko-dev aromanenko-dev left a comment

Choose a reason for hiding this comment

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

Thanks! It looks almost ok for me, I just added a couple of minor notes.

@Test
public void testParseEventFn() throws Exception {
DoFnTester<String, GameActionInfo> parseEventFn = DoFnTester.of(new ParseEventFn());
PCollection<String> input = p.apply(Create.of(GAME_EVENTS).withCoder(StringUtf8Coder.of()));
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we need to add explicitly default coder StringUtf8Coder

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 originally had it because the other tests were also using it. I've removed the coder from the other examples to stay consistent.

@cademarkegard cademarkegard force-pushed the beam3695/portusertest branch 3 times, most recently from c4a7a19 to 8136ca1 Compare November 25, 2018 21:48
@cademarkegard
Copy link
Contributor Author

@kennknowles @aromanenko-dev I've addressed the comments, however, it seems that the java pre-commit is failing due to some GRPC test. Is this a known issue? Should I just trigger another build?

@aromanenko-dev
Copy link
Contributor

Run Java PreCommit

1 similar comment
@cademarkegard
Copy link
Contributor Author

Run Java PreCommit

@kennknowles
Copy link
Member

I'm not sure that pushes to master change the tested commit pointed to by the ref pull/7126/merge. You might just rebase and force push to ensure you are testing against the latest master where maybe flakes are better.

@cademarkegard
Copy link
Contributor Author

thanks @kennknowles that worked. 🎉

@aromanenko-dev could you please review again?

@aromanenko-dev
Copy link
Contributor

aromanenko-dev commented Nov 30, 2018

I'm merging since, finally, the changes were approved.
Thank you for you contribution @cademarkegard !

@aromanenko-dev aromanenko-dev merged commit bd81e8b into apache:master Nov 30, 2018
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