Skip to content

Conversation

@lina-temporal
Copy link
Contributor

What changed?

  • Only add the Workflow root CHASM component if no root component already exists.
  • I think the overall feature should probably also be behind a feature flag.

Why?

  • CHASM Scheduler functional tests are broken without this fix (scheduler mutable states 'become' chasmworkflows)

@lina-temporal lina-temporal requested review from a team as code owners November 4, 2025 23:49
@lina-temporal lina-temporal requested a review from yycptt November 5, 2025 00:43
@lina-temporal lina-temporal enabled auto-merge (squash) November 5, 2025 00:43
Copy link
Member

@yycptt yycptt left a comment

Choose a reason for hiding this comment

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

+1 for adding a separate feature flag for workflow chasm node.


validationContext := chasm.NewContext(context.Background(), root)
_, err := root.Component(validationContext, chasm.ComponentRef{})
if common.IsNotFoundError(err) {
Copy link
Member

Choose a reason for hiding this comment

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

it returns NotFound due to which check? Initial versioned transition check?
I thought it kinda like a undefined behavior. But if it works I don't have a objection. we probably want a test to make sure this always work though.

@lina-temporal lina-temporal merged commit b58a196 into main Nov 6, 2025
57 checks passed
@lina-temporal lina-temporal deleted the ms-check-existing-component branch November 6, 2025 21:52
pdoerner pushed a commit that referenced this pull request Nov 25, 2025
…onent root (#8595)

# What changed?
- Only add the Workflow root CHASM component if no root component
already exists.
- I think the overall feature should probably also be behind a feature
flag.

## Why?
- CHASM Scheduler functional tests are broken without this fix
(scheduler mutable states 'become' chasmworkflows)
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.

3 participants