cadence icon indicating copy to clipboard operation
cadence copied to clipboard

Refactor matching and split the files into subpackages

Open Shaddoll opened this issue 1 year ago • 2 comments

What changed? Refactor matching and split the files into subpackages

Why? To improve the quality of the codebase

How did you test it? existing unit tests

Potential risks The risk is a bit high because it changes almost everything inside matching packages by splitting the files into subpackages. We need at 2 pairs of eyes for reviewing this PR.

Release notes

Documentation Changes

Shaddoll avatar May 09 '24 20:05 Shaddoll

Codecov Report

Attention: Patch coverage is 78.45745% with 81 lines in your changes are missing coverage. Please review.

Project coverage is 66.05%. Comparing base (2fef3c3) to head (4dda545).

Additional details and impacted files
Files Coverage Δ
service/matching/handler/context.go 9.61% <100.00%> (ø)
service/matching/handler/handler.go 0.00% <ø> (ø)
service/matching/liveness/liveness.go 94.59% <100.00%> (ø)
service/matching/tasklist/db.go 72.41% <ø> (ø)
service/matching/tasklist/forwarder.go 95.30% <100.00%> (ø)
service/matching/tasklist/identifier.go 100.00% <100.00%> (ø)
service/matching/tasklist/task_gc.go 86.66% <100.00%> (ø)
service/matching/tasklist/task_writer.go 77.77% <ø> (ø)
service/matching/wrappers/thrift/thrift_handler.go 62.50% <100.00%> (ø)
service/matching/tasklist/matcher.go 79.91% <85.00%> (ø)
... and 4 more

... and 9 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 2fef3c3...4dda545. Read the comment docs.

codecov[bot] avatar May 09 '24 22:05 codecov[bot]

Pull Request Test Coverage Report for Build 018f5f66-582f-4a02-8ecc-259a2c7f45b8

Details

  • 508 of 648 (78.4%) changed or added relevant lines in 16 files are covered.
  • 30 unchanged lines in 7 files lost coverage.
  • Overall coverage decreased (-0.05%) to 68.762%

Changes Missing Coverage Covered Lines Changed/Added Lines %
service/matching/tasklist/task_reader.go 4 6 66.67%
host/taskpoller.go 0 3 0.0%
service/matching/tasklist/matcher.go 17 20 85.0%
service/matching/tasklist/task.go 25 28 89.29%
service/matching/poller/history.go 7 11 63.64%
service/matching/tasklist/task_list_manager.go 142 158 89.87%
service/matching/handler/engine.go 114 131 87.02%
service/matching/tasklist/testing.go 143 235 60.85%
<!-- Total: 508 648
Files with Coverage Reduction New Missed Lines %
common/task/weighted_round_robin_task_scheduler.go 1 89.05%
service/history/task/fetcher.go 2 85.57%
common/task/fifo_task_scheduler.go 3 84.54%
common/persistence/statsComputer.go 3 96.07%
service/frontend/api/handler.go 4 62.2%
service/history/task/cross_cluster_task_processor.go 8 80.79%
service/history/engine/engineimpl/poll_mutable_state.go 9 74.16%
<!-- Total: 30
Totals Coverage Status
Change from base Build 018f5e8f-a247-406e-9920-f997ba145d18: -0.05%
Covered Lines: 101217
Relevant Lines: 147199

💛 - Coveralls

coveralls avatar May 09 '24 22:05 coveralls