Skip to content

Migrate schedule tests to parallel suites#11102

Draft
stephanos wants to merge 21 commits into
mainfrom
stephanos/schedule-test-migration
Draft

Migrate schedule tests to parallel suites#11102
stephanos wants to merge 21 commits into
mainfrom
stephanos/schedule-test-migration

Conversation

@stephanos

@stephanos stephanos commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

WISOTT

@stephanos stephanos changed the title Use suite contexts in functional tests Migrate schedule tests to parallel suites Jul 15, 2026
@stephanos
stephanos changed the base branch from main to stephanos/drop-env-ctx July 15, 2026 23:52
Comment thread tests/schedule_test.go
env.Equal(enumspb.SCHEDULE_OVERLAP_POLICY_SKIP, describeResp.Schedule.Policies.OverlapPolicy) // set to default value
env.EqualValues(365*24*3600, describeResp.Schedule.Policies.CatchupWindow.AsDuration().Seconds()) // set to default value
env.Equal(enumspb.SCHEDULE_OVERLAP_POLICY_SKIP, describeResp.Schedule.Policies.OverlapPolicy) // set to default value
s.InDelta(365*24*3600, describeResp.Schedule.Policies.CatchupWindow.AsDuration().Seconds(), 0.001) // set to default value

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.

changed from testify linter

Comment thread tests/schedule_test.go
// memo while paused, so the listed status stays at RUNNING until unpause.
func testRecentActionsAdvanceWhilePaused(t *testing.T, newContext contextFactory) {
env := newScheduleEnv(t, scheduleCommonOpts(t)...)
func (s *ScheduleCHASMSuite) TestPausedBehavior() {

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.

Retaining the original nested test structure

Comment thread tests/schedule_test.go
@@ -4556,7 +4564,7 @@ type scheduleClosesCase struct {
}

// testScheduleClosesFromIdle runs the idle-close matrix as parallel subtests.
func testScheduleClosesFromIdle(t *testing.T, newContext contextFactory) {

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.

Made those methods on the CHASM suite now

Comment thread tests/schedule_test.go
@@ -293,115 +296,59 @@ func completeRunningWorkflows(ctx context.Context, t *testing.T, env *testcore.T
return len(running)
}

func TestScheduleCHASM(t *testing.T) {

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.

These are 3 suites now

@stephanos
stephanos changed the base branch from stephanos/drop-env-ctx to main July 16, 2026 03:04
@stephanos
stephanos marked this pull request as ready for review July 16, 2026 03:36
@stephanos
stephanos requested a review from a team as a code owner July 16, 2026 03:36
@stephanos
stephanos requested review from a team as code owners July 16, 2026 03:36
@stephanos
stephanos requested a review from chaptersix July 16, 2026 03:37
@stephanos
stephanos marked this pull request as draft July 16, 2026 19:21
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