Skip to content

Extract helpers from versioning3 suite#11062

Open
stephanos wants to merge 20 commits into
mainfrom
stephanos/parallelize-versioning3-suite
Open

Extract helpers from versioning3 suite#11062
stephanos wants to merge 20 commits into
mainfrom
stephanos/parallelize-versioning3-suite

Conversation

@stephanos

@stephanos stephanos commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

What changed?

Moved all versioning_3 helpers to temporal_ver3/tests/versioning_test_env.go.

Why?

Prepare for splitting suite.

@stephanos stephanos changed the title Parallelize versioning3 suite Extract helpers from versioning3 suite Jul 14, 2026

// Scope provides the context and test handles for a test or await attempt.
// It is useful for test helpers.
type Scope interface {

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.

Scope lets shared helpers accept either a suite or an await attempt without carrying context and test handles separately.

Comment thread common/testing/await/t.go
}

// Require returns assertions bound to the current attempt.
func (t *T) Require() *require.Assertions {

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.

await.T satisfies Scope structurally, so nested helper assertions remain scoped to the current retry attempt.

func (env *VersioningTestEnv) waitForTaskQueueVersioningInfo(
ctx context.Context,
tb testing.TB,
s parallelsuite.Scope,

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.

Versioning helpers now take one Scope instead of separate context and test-handle parameters.

@stephanos
stephanos marked this pull request as ready for review July 14, 2026 21:14
@stephanos
stephanos requested review from a team as code owners July 14, 2026 21:14
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.

1 participant