Skip to content

Conversation

@mwalenia
Copy link
Member

@mwalenia mwalenia commented Apr 8, 2019


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

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 Build Status
Python Build Status
Build Status
--- Build Status
Build Status
Build Status --- --- ---

Pre-Commit Tests Status (on master branch)

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

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

@mwalenia
Copy link
Member Author

mwalenia commented Apr 8, 2019

R: @lgajowy

Copy link
Contributor

@lgajowy lgajowy left a comment

Choose a reason for hiding this comment

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

It looks like the only difference is that we add streaming=true pipeline option. IMO it would be better to hold both jobs (batch & streaming) in one file (job_LoadTest_Java.groovy). I don't like the name of this file ("job_... prefix suggests it's only ONE job and seed job requires it) but it's still better not to duplicate the code imo, especially when this is a very rapidly developed pice of code.

LMK if you agree.

Other than that - please add some additional reviewer for transparency. ;)

@mwalenia
Copy link
Member Author

@lgajowy I agree, I moved the tests to the main file.
Requesting additional review from @markflyhigh

Copy link
Contributor

@lgajowy lgajowy left a comment

Choose a reason for hiding this comment

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

Thanks! Another batch of suggestions. :)

autoscalingAlgorithm: "NONE"
]
],
[
Copy link
Contributor

@lgajowy lgajowy Apr 10, 2019

Choose a reason for hiding this comment

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

If we add new elements to loadTestConfiguration we will still have 1 Jenkins job but 2x more steps in it. I belive we need separate loadTestConfigurations for both batch job and streaming job. Could you modify this accordingly?

Also, as we discussed offline, the loadTestConfiguration could be a "template" for the options that could further be parametrized in jobs. This will prevent repeating too much code. Please consider doing this while you apply changes. :)

Copy link
Member Author

Choose a reason for hiding this comment

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

You're right, the template approach is much more elegant and maintainable. I applied your suggestions

@mwalenia
Copy link
Member Author

Run seed job

@mwalenia
Copy link
Member Author

Run Load Tests Java GBK Dataflow Batch

@mwalenia
Copy link
Member Author

Run Load Tests Java GBK Dataflow Streaming

@mwalenia
Copy link
Member Author

Run seed job

@mwalenia
Copy link
Member Author

Run Load Tests Java GBK Dataflow Streaming

1 similar comment
@mwalenia
Copy link
Member Author

Run Load Tests Java GBK Dataflow Streaming

Copy link
Contributor

@markflyhigh markflyhigh left a comment

Choose a reason for hiding this comment

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

Thanks for adding streaming tests. LGTM in general.

}


def loadTestJob = { scope, triggeringContext ->
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we make loadTestJob more specific like batchLoadTestJob given we have streamingLoadTestJob?

@mwalenia
Copy link
Member Author

Run seed job

@mwalenia
Copy link
Member Author

Run Load Tests Java GBK Dataflow Streaming

1 similar comment
@kkucharc
Copy link
Contributor

Run Load Tests Java GBK Dataflow Streaming

@mwalenia
Copy link
Member Author

Run Load Tests Java GBK Streaming Dataflow

@mwalenia
Copy link
Member Author

Run Load Tests Java GBK Dataflow Streaming

@mwalenia
Copy link
Member Author

Run standalone seed job

@mwalenia
Copy link
Member Author

Run Load Tests Java GBK Dataflow Streaming

…heck if phrase trigger will work

changed job name and phrase
@mwalenia mwalenia force-pushed the BEAM-7005-GBK-streaming-load-test branch from f2e8e3d to 84ddf77 Compare April 15, 2019 13:45
@lgajowy
Copy link
Contributor

lgajowy commented Apr 17, 2019

Run seed job

Copy link
Contributor

@lgajowy lgajowy left a comment

Choose a reason for hiding this comment

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

Thanks! Besides the problem with phrase triggering, I added one more suggestion. Let me know if you need help with investigating what is going on with phrase triggering.

*/
import CommonTestProperties

class CommonLoadTestConfiguration {
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if it would be better if we have the CommonLoadTestConfiguration, streaming testing job and batch testing job in one file? We can create multiple jobs in one file. They could reuse CommonLoadTestConfiguration the same way but without the need to import it. The config would also remain hidden for the load tests only - after all we wouldn't want other (non load-test) jobs to be able to import this. WDYT?

@mwalenia
Copy link
Member Author

Closing due to phrase triggering not working. @lgajowy I applied your suggestion in another PR where triggers are OK.

@mwalenia mwalenia closed this Apr 19, 2019
@mwalenia mwalenia deleted the BEAM-7005-GBK-streaming-load-test branch January 24, 2020 10:40
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.

4 participants