Skip to content

migrate Versioning3Suite#10144

Draft
stephanos wants to merge 2 commits intomainfrom
stephanos/parallel-versioning
Draft

migrate Versioning3Suite#10144
stephanos wants to merge 2 commits intomainfrom
stephanos/parallel-versioning

Conversation

@stephanos
Copy link
Copy Markdown
Contributor

@stephanos stephanos commented May 1, 2026

What changed?

Migrate Versioning3Suite to use parallelsuite.

Why?

main takes 862s, branch takes 90s.

@stephanos stephanos force-pushed the stephanos/parallel-versioning branch 4 times, most recently from be92a54 to 7bb6593 Compare May 1, 2026 14:52
farm.Fingerprint32([]byte(fullName)),
)
return strings.Replace(short, ".", "|", -1)
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

was unused

@stephanos stephanos force-pushed the stephanos/parallel-versioning branch 3 times, most recently from 872c197 to 2ef1d4b Compare May 1, 2026 15:05
@stephanos stephanos added the test-all-dbs Request PR checks to test all databases label May 1, 2026
@stephanos stephanos force-pushed the stephanos/parallel-versioning branch 14 times, most recently from 0fb6440 to 7da0418 Compare May 1, 2026 20:30
}

func (s *Versioning3Suite) TestSessionActivityResourceSpecificTaskQueueNotRegisteredInVersion() {
tv := testvars.New(s)

ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

one big change here is removing these contexts; they are all placed with simply env.Context() which has a default timeout.

@@ -72,124 +70,133 @@ const (
versionStatusRamping = versionStatus(3)
versionStatusDraining = versionStatus(4)
versionStatusDrained = versionStatus(5)

versioning3DeploymentWorkflowVersion = workerdeployment.VersionDataRevisionNumber
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

parallelsuite doesn't allow fields so this was moved here - it seems to be readonly anyway

@stephanos stephanos force-pushed the stephanos/parallel-versioning branch from 7da0418 to 4dc3841 Compare May 1, 2026 21:58
@@ -1411,7 +1393,7 @@ func (s *Versioning3Suite) testDoubleTransition(unversionedSrc bool, signal bool
// 8. Not that the transition is complete, the activity should be able to go to sourceV poller.
// 9. Set v2 as current again and ensure the wf can complete on it.

tv1 := testvars.New(s).WithBuildIDNumber(1)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

testvars are coming from env now

@stephanos stephanos force-pushed the stephanos/parallel-versioning branch 2 times, most recently from 1a58c19 to 4ac032b Compare May 1, 2026 22:02
// unique namespaces with overrides per namespace should be used for tests that require overrides.
defaultDynamicConfigOverrides = map[dynamicconfig.Key]any{
dynamicconfig.FrontendRPS.Key(): 3000,
dynamicconfig.FrontendNamespaceReplicationInducingAPIsRPS.Key(): 1000,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

moved here since it's a global config

@stephanos stephanos force-pushed the stephanos/parallel-versioning branch 6 times, most recently from 11ae0d3 to 22b4ddb Compare May 1, 2026 22:24
}

func (s *Versioning3Suite) updateUtils() updateutils.UpdateUtils {
return updateutils.New(s.T())
}

func (s *Versioning3Suite) TestPinnedTask_NoProperPoller() {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

"Hide Whitespace is required from here on

@stephanos stephanos force-pushed the stephanos/parallel-versioning branch from 22b4ddb to 659b754 Compare May 1, 2026 22:38
@stephanos stephanos force-pushed the stephanos/parallel-versioning branch from 659b754 to dc71a2b Compare May 1, 2026 22:42
@stephanos stephanos force-pushed the stephanos/parallel-versioning branch from dc71a2b to df0bd86 Compare May 1, 2026 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test-all-dbs Request PR checks to test all databases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant