Skip to content

Fix should-be-ignored workflow options update #966

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Sushisource
Copy link
Member

No description provided.

@Sushisource Sushisource requested a review from a team as a code owner July 24, 2025 21:57
@@ -839,6 +839,12 @@ impl WorkflowMachines {
if event.is_final_wf_execution_event() {
self.have_seen_terminal_event = true;
}
// Currently nothing of interest to the SDK in this event
if event.event_type() == EventType::WorkflowExecutionOptionsUpdated
Copy link
Member

Choose a reason for hiding this comment

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

Why only this event? Should we keep a list of events we do process and be willing to ignore all others when this flag is set? I am worried if another event gets added and we regen protos this same thing will happen if we don't come and add to this conditional.

Copy link
Member Author

Choose a reason for hiding this comment

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

Well I kinda want to err on the side of being explicit. The reason it works the way it does now is if there is some event that Core knows about, we should explicitly be OK with ignoring it...

However what this problem revealed is we don't have a great way to learn about new events that fit into this category, and decide to ignore them. I could potentially add some kind of test that ensures all known events are explicitly categorized somehow

Copy link
Member

@cretz cretz Jul 25, 2025

Choose a reason for hiding this comment

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

Can you clarify what is meant by "event that Core knows about"? Is it any event that happens to appear in proto (requiring us to add it to a match clause I see in sdk-core-protos). I'd argue the presence of an event in protos and in that match clause isn't really the same as Core knowing about it meaningfully.

I could potentially add some kind of test that ensures all known events are explicitly categorized somehow

👍 Or somehow change that one big match clause that we must update on each event to also include whether it is currently ignored atm (may require restructuring since it is just for getting event type right now). At least that way each new event has to be clear whether it's handled or not.

Copy link
Member

@cretz cretz left a comment

Choose a reason for hiding this comment

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

Nothing blocking, though I suspect this will happen again if no general fix is performed

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