Skip to content

Reproduce migrated zero catchup compatibility gap - #3

Closed
davidporter-id-au wants to merge 0 commit into
schedule-v2-replay-fidelityfrom
test/schedule-v1-zero-catchup-compat
Closed

davidporter-id-au wants to merge 0 commit into
schedule-v2-replay-fidelityfrom
test/schedule-v1-zero-catchup-compat

Conversation

@davidporter-id-au

Copy link
Copy Markdown
Owner

Summary

  • characterize V1 resolution of an explicit zero catchup window to the 10-second minimum
  • prove migration currently preserves the explicit zero value
  • pair these tests with existing CHASM coverage where zero resolves to the one-year default

Finding

This is a genuine migration compatibility difference. In the representative history, all 15 CHASM-only actions were decided 10 to 112 seconds after nominal time. V1 dropped them under its 10-second window while CHASM retained them under its default window.

This draft intentionally does not choose a fix. A migration-only compatibility rule may be appropriate; globally changing V2 would alter its intended zero-means-unset behavior.

Test plan

  • go test -tags test_dep ./service/worker/scheduler -run ^TestWorkflow/TestZeroCatchupWindowUsesMinimum$ -count=1
  • go test -tags test_dep ./chasm/lib/scheduler/migration -run ^TestLegacyToCreateFromMigrationStateRequest_PreservesZeroCatchupWindow$ -count=1
  • existing CHASM non-positive catchup tests
  • representative three-history production replay

@davidporter-id-au
davidporter-id-au force-pushed the test/schedule-v1-zero-catchup-compat branch from 76780e5 to f23dc58 Compare August 13, 2026 06:13
@davidporter-id-au

Copy link
Copy Markdown
Owner Author

Superseded by a draft PR against temporalio/temporal:main.

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