Skip to content

Comments

[Scheduler] Refactor CHASM scheduler tests to remove testify suite#9199

Merged
lina-temporal merged 8 commits intomainfrom
scheduler-test-refactor
Feb 18, 2026
Merged

[Scheduler] Refactor CHASM scheduler tests to remove testify suite#9199
lina-temporal merged 8 commits intomainfrom
scheduler-test-refactor

Conversation

@lina-temporal
Copy link
Contributor

What changed?

  • Refactored CHASM scheduler tests to remove the testify suite pattern
  • Removed the mockSpecProcessor in favor of using the real one
  • Added new helpers, as needed, to replace suite functionality

Why?

  • Simpler tests, more consistent with other CHASM tests.

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

SpecProcessor is now used without a mock throughout.
@lina-temporal lina-temporal requested review from a team as code owners February 2, 2026 21:49
@awln-temporal awln-temporal self-requested a review February 6, 2026 22:18
ValidateInvoker: func(t *testing.T, invoker *scheduler.Invoker) {
for _, start := range invoker.GetBufferedStarts() {
s.Equal(request.OverlapPolicy, start.OverlapPolicy)
require.Equal(t, request.OverlapPolicy, start.OverlapPolicy)
Copy link
Contributor

Choose a reason for hiding this comment

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

are the stack traces easy enough to follow when this assertion fails?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

in terms of them being in a for loop or because it's in an anonymous function? Either way, I find the traces readable enough, I really just need to see what test is failing and on what assertion to start debugging.

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, anonymous function and nested in runBackfillTestCase . Good with me

@lina-temporal lina-temporal merged commit c09c2b6 into main Feb 18, 2026
46 checks passed
@lina-temporal lina-temporal deleted the scheduler-test-refactor branch February 18, 2026 21:33
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