Skip to content

[BEAM-13015] Add state caching benchmark and move benchmarks to their own module. - #16542

Merged
lukecwik merged 3 commits into
apache:masterfrom
lukecwik:beam13015.3
Feb 7, 2022
Merged

[BEAM-13015] Add state caching benchmark and move benchmarks to their own module.#16542
lukecwik merged 3 commits into
apache:masterfrom
lukecwik:beam13015.3

Conversation

@lukecwik

Copy link
Copy Markdown
Member

This simplifies adding unit tests and decreases the clutter in the sdks/java/harness module.


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)

LangULRDataflowFlinkSamzaSparkTwister2
Go---Build StatusBuild StatusBuild StatusBuild Status---
JavaBuild StatusBuild 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 StatusBuild Status---
XLangBuild StatusBuild StatusBuild StatusBuild StatusBuild Status---

Examples testing status on various runners

LangULRDataflowFlinkSamzaSparkTwister2
Go---------------------
Java---Build Status
Build Status
Build Status
---------------
Python---------------------
XLang---------------------

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

GoJavaPython
Build StatusBuild StatusBuild Status
Build Status
Build Status

Pre-Commit Tests Status (on master branch)

---JavaPythonGoWebsiteWhitespaceTypescript
Non-portableBuild Status
Build Status
Build Status
Build Status
Build Status
Build StatusBuild StatusBuild StatusBuild Status
Portable---Build StatusBuild 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.

@lukecwik

Copy link
Copy Markdown
MemberAuthor

R: @ibzib
CC: @scwhittle

@codecov

codecovBot commented Jan 18, 2022

Copy link
Copy Markdown

Codecov Report

Merging #16542 (f64f505) into master (6814a06) will increase coverage by 37.26%.
The diff coverage is n/a.

Impacted file tree graph

@@ Coverage Diff @@## master #16542 +/- ##
===========================================
+ Coverage 46.38% 83.64% +37.26% 
===========================================
Files 202 452 +250 Lines 19897 62168 +42271 ===========================================
+ Hits 9230 52003 +42773 - Misses 9682 10165 +483 + Partials 985 0 -985 
Impacted FilesCoverage Δ
sdks/go/pkg/beam/io/synthetic/source.go
sdks/go/pkg/beam/io/filesystem/filesystem.go
sdks/go/pkg/beam/internal/errors/errors.go
sdks/go/pkg/beam/transforms/stats/mean.go
sdks/go/pkg/beam/io/filesystem/gcs/gcs.go
sdks/go/pkg/beam/core/runtime/xlangx/expand.go
sdks/go/pkg/beam/core/runtime/exec/reshuffle.go
sdks/go/pkg/beam/core/graph/coder/int.go
sdks/go/pkg/beam/util.go
sdks/go/pkg/beam/core/util/reflectx/util.go
... and 644 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6814a06...f64f505. Read the comment docs.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why is this commented out?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

hold over from temp change.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Done

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What are the two expected stages? 1. impulse+toKeyAndValue 2. stateful+gbk?

My understanding is that toKeyAndValue is just a dummy transform that is added only for pipeline construction, and then its stage is not actually executed. Is that correct? And can we add a comment to clarify it?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Your understanding is correct since the stateful dofn causes a fusion break in the GreedyPipelineFuser.

Added comment.

@aaltay

Copy link
Copy Markdown
Member

What is the next step on this PR?

… own module.
This simplifies adding unit tests and decreases the clutter in the sdks/java/harness module.
Also clean-up comments around args and fix classpath to only be runtime classpath.
@lukecwik

Copy link
Copy Markdown
MemberAuthor

@ibzib this is ready for another review.

@lukecwik

Copy link
Copy Markdown
MemberAuthor

Run Java PreCommit

@ibzibibzib left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@lukecwik

Copy link
Copy Markdown
MemberAuthor

Run Java PreCommit

1 similar comment
@lukecwik

Copy link
Copy Markdown
MemberAuthor

Run Java PreCommit

@lukecwik

Copy link
Copy Markdown
MemberAuthor

Run Website_Stage_GCS

@lukecwik

Copy link
Copy Markdown
MemberAuthor

Run Java PreCommit

1 similar comment
@lukecwik

Copy link
Copy Markdown
MemberAuthor

Run Java PreCommit

@lukecwik

Copy link
Copy Markdown
MemberAuthor

Run Website_Stage_GCS PreCommit

@lukecwik

Copy link
Copy Markdown
MemberAuthor

Run Java PreCommit

6 similar comments
@lukecwik

Copy link
Copy Markdown
MemberAuthor

Run Java PreCommit

@lukecwik

Copy link
Copy Markdown
MemberAuthor

Run Java PreCommit

@lukecwik

Copy link
Copy Markdown
MemberAuthor

Run Java PreCommit

@lukecwik

Copy link
Copy Markdown
MemberAuthor

Run Java PreCommit

@lukecwik

Copy link
Copy Markdown
MemberAuthor

Run Java PreCommit

@aaltay

Copy link
Copy Markdown
Member

Run Java PreCommit

@aaltay

Copy link
Copy Markdown
Member

For reference, link to the failed test: https://ci-beam.apache.org/job/beam_PreCommit_Java_Phrase/4593/

@lukecwik

Copy link
Copy Markdown
MemberAuthor

It looks like Java PreCommit is perma-red. Now that #16748 is in. Rerunning Java PreCommit.

@lukecwik

Copy link
Copy Markdown
MemberAuthor

Run Java PreCommit

@lukecwik

Copy link
Copy Markdown
MemberAuthor

Run Java PreCommit

@lukecwik
lukecwik merged commit eef048b into apache:masterFeb 7, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@lukecwik@aaltay@ibzib