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

Refactor/adding mutable state builder tests iv #5769

Conversation

davidporter-id-au
Copy link
Member

@davidporter-id-au davidporter-id-au commented Mar 11, 2024

What changed?

  • Grinds out some tests for a fiddly function assignEventIDToBufferedEvents who's function it is is to increment the various counters and ensure that all buffered decision tasks have assigned IDs.
  • Adds a few minor guards for the logging functions

Why?

How did you test it?

Potential risks

Release notes

Documentation Changes

Copy link

codecov bot commented Mar 11, 2024

Codecov Report

Merging #5769 (7eb07a2) into master (4d513c0) will increase coverage by 0.06%.
The diff coverage is 100.00%.

Additional details and impacted files
Files Coverage Δ
service/history/execution/mutable_state_builder.go 40.65% <100.00%> (+2.01%) ⬆️

... and 6 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 4d513c0...7eb07a2. Read the comment docs.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 018e2c5b-524c-4ca0-bf7a-1119f4e3b280

Details

  • 18 of 18 (100.0%) changed or added relevant lines in 1 file are covered.
  • 81 unchanged lines in 11 files lost coverage.
  • Overall coverage decreased (-0.005%) to 64.056%

Files with Coverage Reduction New Missed Lines %
common/peerprovider/ringpopprovider/config.go 2 81.58%
service/history/task/transfer_active_task_executor.go 2 72.38%
service/history/execution/mutable_state_util.go 2 78.48%
common/persistence/historyManager.go 2 66.67%
common/persistence/statsComputer.go 3 94.64%
service/frontend/wrappers/metered/metered.go 4 65.5%
common/task/fifo_task_scheduler.go 5 84.54%
service/history/task/fetcher.go 5 85.57%
service/history/task/cross_cluster_task_processor.go 8 80.79%
common/persistence/sql/workflow_state_maps.go 19 83.84%
Totals Coverage Status
Change from base Build 018e2a8f-ec9b-4f64-85d5-18430de8b3d4: -0.005%
Covered Lines: 93382
Relevant Lines: 145782

💛 - Coveralls

@davidporter-id-au davidporter-id-au enabled auto-merge (squash) March 11, 2024 08:13
tags = append(tags, tag.WorkflowRunID(e.executionInfo.RunID))
tags = append(tags, tag.WorkflowDomainID(e.executionInfo.DomainID))
e.logger.Info(msg, tags...)
if e != nil && e.executionInfo != nil {
Copy link
Member

Choose a reason for hiding this comment

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

do we need these nil checks? If so let's check for nilness and terminate early.

if e == nil || e.executionInfo == nil {
  return
}

// log with tags

Copy link
Member

Choose a reason for hiding this comment

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

ops approved with comment but didn't notice auto merge is enabled :)

Copy link
Member Author

Choose a reason for hiding this comment

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

ah, sorry about that, let me address in a follow up

Copy link
Member Author

Choose a reason for hiding this comment

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

@davidporter-id-au davidporter-id-au merged commit ce25878 into cadence-workflow:master Mar 11, 2024
20 checks passed
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