Skip to content

Conversation

@yycptt
Copy link
Member

@yycptt yycptt commented Jan 20, 2026

What changed?

  • Use plain go struct inside migration workflow activity input output
  • Customize the json encoding/decoding for migration execution info and make it backward compatible.
  • This will temporary break cloud and the fix is in Fix migration workflow break change for cloud #9097
  • This PR needs to be part of oss v1.30 release.

Why?

  • Backward compatibility and less confusion over how the encoding will be done.

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)

@yycptt yycptt requested a review from yux0 January 20, 2026 18:36
return json.Unmarshal(data, &e.executionInfoNewJSON)
}

// For forward compatibility, support both workflow_id and business_id here
Copy link
Member Author

Choose a reason for hiding this comment

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

This gives us forward compatibility in oss and in next oss release (1.31), we can always encoded to business_id.

@yycptt yycptt marked this pull request as ready for review January 21, 2026 08:23
@yycptt yycptt requested review from a team as code owners January 21, 2026 08:23
@yycptt yycptt changed the title Fix migration workflow breaking change Fix migration workflow breaking change for OSS Jan 21, 2026
@yycptt
Copy link
Member Author

yycptt commented Jan 21, 2026

The change for cloud is in #9097

@yycptt yycptt merged commit 8728c4b into temporalio:main Jan 26, 2026
68 checks passed
@yycptt yycptt deleted the fix-migration-breaking-change branch January 26, 2026 23:52
simvlad pushed a commit that referenced this pull request Jan 27, 2026
## What changed?
- Use plain go struct inside migration workflow activity input output
- Customize the json encoding/decoding for migration execution info and
make it backward & forward compatible.
- This will temporary break cloud and the fix is in
#9097
- This PR needs to be part of oss v1.30 release.

## Why?
- Backward compatibility and less confusion over how the encoding will
be done.

## How did you test it?
- [ ] built
- [ ] run locally and tested manually
- [ ] covered by existing tests
- [x] added new unit test(s)
- [ ] added new functional test(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants