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-13893] improved coverage of jobopts package #17003

Merged
merged 5 commits into from
Mar 18, 2022

Conversation

riteshghorse
Copy link
Contributor

Improved coverage of jobopts package. Part of effort to improve code coverage of Go SDK.


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.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

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.

@github-actions github-actions bot added the go label Mar 3, 2022
@riteshghorse
Copy link
Contributor Author

R: @jrmccluskey @damccorm

@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2022

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control

@codecov
Copy link

codecov bot commented Mar 3, 2022

Codecov Report

Merging #17003 (69b7070) into master (06e7c20) will increase coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #17003      +/-   ##
==========================================
+ Coverage   73.83%   73.88%   +0.05%     
==========================================
  Files         664      669       +5     
  Lines       87272    87502     +230     
==========================================
+ Hits        64434    64648     +214     
- Misses      21735    21743       +8     
- Partials     1103     1111       +8     
Flag Coverage Δ
go 49.40% <100.00%> (+0.40%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
sdks/go/pkg/beam/options/jobopts/options.go 87.27% <100.00%> (ø)
sdks/go/pkg/beam/core/runtime/exec/plan.go 48.61% <0.00%> (-8.80%) ⬇️
sdks/go/pkg/beam/core/runtime/harness/harness.go 11.26% <0.00%> (-1.43%) ⬇️
sdks/go/pkg/beam/runners/direct/buffer.go 77.46% <0.00%> (ø)
sdks/go/pkg/beam/core/runtime/exec/pardo.go 50.45% <0.00%> (ø)
sdks/go/pkg/beam/core/graph/window/windows.go 82.60% <0.00%> (ø)
sdks/go/pkg/beam/core/graph/window/fn.go 53.84% <0.00%> (ø)
sdks/go/pkg/beam/core/graph/window/strategy.go 0.00% <0.00%> (ø)
sdks/go/pkg/beam/options/jobopts/stringSlice.go 71.42% <0.00%> (ø)
... and 6 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 06e7c20...69b7070. Read the comment docs.

Copy link
Contributor

@damccorm damccorm left a comment

Choose a reason for hiding this comment

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

This LGTM - not too much going on in this package

@damccorm
Copy link
Contributor

damccorm commented Mar 3, 2022

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control

I'm considering getting rid of that message - thoughts on the current experience? I could always add a label (something like pr-bot-disabled) instead. The advantage of keeping it is that it nudges people towards using the new experience.

Copy link
Contributor

@jrmccluskey jrmccluskey left a comment

Choose a reason for hiding this comment

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

LGTM, just left a nit

sdks/go/pkg/beam/options/jobopts/options_test.go Outdated Show resolved Hide resolved
@riteshghorse
Copy link
Contributor Author

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control

I'm considering getting rid of that message - thoughts on the current experience? I could always add a label (something like pr-bot-disabled) instead. The advantage of keeping it is that it nudges people towards using the new experience.

I don't mind getting that message. It makes folks aware that such bot exists (I wanted to try the bot but the habit of tagging reviewers kicked in earlier:P).

@riteshghorse
Copy link
Contributor Author

R: @youngoli

Copy link
Contributor

@youngoli youngoli left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@youngoli youngoli merged commit 6e196b2 into apache:master Mar 18, 2022
@riteshghorse riteshghorse deleted the beam13893 branch June 1, 2022 17:34
Sign up for free to 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.

None yet

4 participants