Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Feb 7, 2022

Conversation

lukecwik
Copy link
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)

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.

@lukecwik
Copy link
Member Author

R: @ibzib
CC: @scwhittle

@codecov
Copy link

codecov bot commented Jan 18, 2022

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 Files Coverage Δ
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.

if (project.file("/opt/cprof/profiler_java_agent.so").exists()) {
def gcpProject = project.findProperty('gcpProject') ?: 'apache-beam-testing'
def userName = System.getProperty("user.name").toLowerCase().replaceAll(" ", "_")
//jvmArgs '-agentpath:/opt/cprof/profiler_java_agent.so=-cprof_service=' + userName + "_" + project.getProperty("benchmark").toLowerCase() + '_' + System.currentTimeMillis() + ',-cprof_project_id=' + gcpProject + ',-cprof_zone_name=us-central1-a'
Copy link
Contributor

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
Member Author

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.

assertEquals(3, outputValuesCount.getAndSet(0));
}

private static String padLeftZeros(String inputString, int length) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Done


RunnerApi.Pipeline pipelineProto = PipelineTranslation.toProto(p);
FusedPipeline fused = GreedyPipelineFuser.fuse(pipelineProto);
checkState(fused.getFusedStages().size() == 2, "Expected exactly two fused stages");
Copy link
Contributor

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
Member Author

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
Member

aaltay commented Feb 3, 2022

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
Member Author

lukecwik commented Feb 4, 2022

@ibzib this is ready for another review.

@lukecwik
Copy link
Member Author

lukecwik commented Feb 4, 2022

Run Java PreCommit

Copy link
Contributor

@ibzib ibzib left a comment

Choose a reason for hiding this comment

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

LGTM

@lukecwik
Copy link
Member Author

lukecwik commented Feb 5, 2022

Run Java PreCommit

1 similar comment
@lukecwik
Copy link
Member Author

lukecwik commented Feb 5, 2022

Run Java PreCommit

@lukecwik
Copy link
Member Author

lukecwik commented Feb 5, 2022

Run Website_Stage_GCS

@lukecwik
Copy link
Member Author

lukecwik commented Feb 5, 2022

Run Java PreCommit

1 similar comment
@lukecwik
Copy link
Member Author

lukecwik commented Feb 5, 2022

Run Java PreCommit

@lukecwik
Copy link
Member Author

lukecwik commented Feb 5, 2022

Run Website_Stage_GCS PreCommit

@lukecwik
Copy link
Member Author

lukecwik commented Feb 5, 2022

Run Java PreCommit

6 similar comments
@lukecwik
Copy link
Member Author

lukecwik commented Feb 5, 2022

Run Java PreCommit

@lukecwik
Copy link
Member Author

lukecwik commented Feb 5, 2022

Run Java PreCommit

@lukecwik
Copy link
Member Author

lukecwik commented Feb 5, 2022

Run Java PreCommit

@lukecwik
Copy link
Member Author

lukecwik commented Feb 5, 2022

Run Java PreCommit

@lukecwik
Copy link
Member Author

lukecwik commented Feb 6, 2022

Run Java PreCommit

@aaltay
Copy link
Member

aaltay commented Feb 7, 2022

Run Java PreCommit

@aaltay
Copy link
Member

aaltay commented Feb 7, 2022

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

@lukecwik
Copy link
Member Author

lukecwik commented Feb 7, 2022

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

@lukecwik
Copy link
Member Author

lukecwik commented Feb 7, 2022

Run Java PreCommit

@lukecwik
Copy link
Member Author

lukecwik commented Feb 7, 2022

Run Java PreCommit

@lukecwik lukecwik merged commit eef048b into apache:master Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants