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

[code-coverage] Generate code for matching client timeout wrapper #5771

Merged

Conversation

ketsiambaku
Copy link
Contributor

What changed?
Update timeout template to Generate code in client/matching/client.go with gowrap

Why?
To reduce manual work when adding APIs
Improve code coverage

How did you test it?
unit tests

Potential risks

Release notes

Documentation Changes

Copy link

codecov bot commented Mar 11, 2024

Codecov Report

Merging #5771 (8ee92f7) into master (227e27f) will increase coverage by 0.02%.
The diff coverage is 0.00%.

❗ Current head 8ee92f7 differs from pull request most recent head 50da7fc. Consider uploading reports for the commit 50da7fc to get more accurate results

Additional details and impacted files
Files Coverage Δ
client/history/client.go 0.00% <ø> (ø)
client/wrappers/timeout/timeout.go 100.00% <ø> (ø)
client/matching/client.go 0.00% <0.00%> (ø)

... and 4 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

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

@coveralls
Copy link

coveralls commented Mar 11, 2024

Pull Request Test Coverage Report for Build 018e386e-4182-46f8-8d17-ce0c00d33dac

Details

  • 6 of 6 (100.0%) changed or added relevant lines in 2 files are covered.
  • 8 unchanged lines in 3 files lost coverage.
  • Overall coverage increased (+0.03%) to 64.857%

Files with Coverage Reduction New Missed Lines %
service/matching/taskListManager.go 2 80.2%
service/history/queue/timer_gate.go 3 95.83%
common/persistence/statsComputer.go 3 94.64%
Totals Coverage Status
Change from base Build 018e3638-cb8a-4a67-a257-018409c002ad: 0.03%
Covered Lines: 94536
Relevant Lines: 145760

💛 - Coveralls

@@ -70,3 +118,54 @@ func (c * {{$decorator}}) {{$method.Declaration}} {
{{$method.Pass ("c.client.") }}
}
{{end}}
{{end}}

{{/* ↓↓↓ Special Case APIs ↓↓↓ */}}
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest moving special case APIs out of generated code.

Copy link
Contributor Author

@ketsiambaku ketsiambaku Mar 12, 2024

Choose a reason for hiding this comment

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

Done. I left it in the current file and only took out the timeout logic

@ketsiambaku ketsiambaku enabled auto-merge (squash) March 13, 2024 13:41
@ketsiambaku ketsiambaku merged commit 56175e1 into cadence-workflow:master Mar 13, 2024
18 checks passed
@ketsiambaku ketsiambaku deleted the gowrap-timeout-client branch March 13, 2024 16:03
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