Skip to content

Conversation

gazi-yestemirova
Copy link

What changed?
Introducing new FailoverDomain endpoint which will handle failover operations for domains.

Why?
Extracting failover operations for domain updates, as it is a separate logic from UpdateDomain. In addition, UpdateDomain endpoint requires admin permissions to perform the operation, while failing over the domain should be done by anyone who has write permissions over the domain.

How did you test it?
Tested locally and unit tests.

Potential risks
As it is a new endpoint, no potential risks

Copy link

codecov bot commented Oct 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.13%. Comparing base (39bceaf) to head (8b11e74).
⚠️ Report is 1 commits behind head on master.

❌ Your project check has failed because the head coverage (83.13%) is below the target coverage (85.00%). You can increase the head coverage or adjust the target coverage.

Files with missing lines Coverage Δ
internal/common/auth/service_wrapper.go 93.94% <100.00%> (+0.13%) ⬆️
internal/common/isolationgroup/service_wrapper.go 92.02% <100.00%> (+0.17%) ⬆️
internal/common/metrics/service_wrapper.go 98.43% <100.00%> (+0.03%) ⬆️

... and 2 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 39bceaf...8b11e74. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@c-warren c-warren left a comment

Choose a reason for hiding this comment

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

LGTM

ExcludedFields: []string{
"NewTasksPerSecond", // [BUG] NewTasksPerSecond is not mapped
"IsolationGroupMetrics", // [BUG] IsolationGroupMetrics is not mapped
"Empty", // Empty field is not mapped
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd recommend adding the reason why it isn't mapped here, otherwise in future it won't be obvious to someone changing the code. e.g 'Empty is only used in matching<>matching communication, and doesn't need to be mapped'

Comment on lines +2460 to +2475
func(attr *apiv1.WorkflowExecutionContinuedAsNewEventAttributes, c fuzz.Continue) {
c.Fuzz(&attr.NewExecutionRunId)
c.Fuzz(&attr.WorkflowType)
c.Fuzz(&attr.TaskList)
c.Fuzz(&attr.Input)
c.Fuzz(&attr.ExecutionStartToCloseTimeout)
c.Fuzz(&attr.TaskStartToCloseTimeout)
c.Fuzz(&attr.DecisionTaskCompletedEventId)
c.Fuzz(&attr.BackoffStartInterval)
c.Fuzz(&attr.Initiator)
c.Fuzz(&attr.Failure)
c.Fuzz(&attr.LastCompletionResult)
c.Fuzz(&attr.Header)
c.Fuzz(&attr.Memo)
c.Fuzz(&attr.SearchAttributes)
},
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it should be possible to just ignore the ActiveClusterSelectionPolicy field (or have a custom func for that) and then leave the rest as defaults. e.g

func(e apiv1.ActiveClusterSelectionPolicy, c fuzz.Continue) {
  // do nothing/create a default field
},

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.

2 participants