Skip to content

Conversation

machichima
Copy link
Member

@machichima machichima commented Jun 8, 2025

Tracking issue

Part of flyteorg/flyte#6490

Why are the changes needed?

Getting error ValueError: Missing node from mapping: fn0 when using remote.wait on an execution that has FailureNode specified and the execution fails

What changes were proposed in this pull request?

Adding failure node to node_mapping

How was this patch tested?

Setup process

Screenshots

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

Docs link

Summary by Bito

This pull request fixes a bug in workflow handling by improving the node mapping logic to include failure nodes during execution. It also introduces new tests to validate this functionality, enhancing robustness in failure scenarios.

@flyte-bot
Copy link
Contributor

Bito Automatic Review Skipped - Draft PR

Bito didn't auto-review because this pull request is in draft status.
No action is needed if you didn't intend for the agent to review it. Otherwise, to manually trigger a review, type /review in a comment and save.
You can change draft PR review settings here, or contact your Bito workspace admin at [email protected].

@machichima machichima force-pushed the 6490-sync-node-exec-fail branch from 62a2003 to f0897be Compare June 8, 2025 05:25
@flyte-bot
Copy link
Contributor

Bito Automatic Review Skipped - Draft PR

Bito didn't auto-review because this pull request is in draft status.
No action is needed if you didn't intend for the agent to review it. Otherwise, to manually trigger a review, type /review in a comment and save.
You can change draft PR review settings here, or contact your Bito workspace admin at [email protected].

1 similar comment
@flyte-bot
Copy link
Contributor

Bito Automatic Review Skipped - Draft PR

Bito didn't auto-review because this pull request is in draft status.
No action is needed if you didn't intend for the agent to review it. Otherwise, to manually trigger a review, type /review in a comment and save.
You can change draft PR review settings here, or contact your Bito workspace admin at [email protected].

)
mock_client = MagicMock()
mock_client.get_execution.return_value = admin_workflow_execution
mock_client.get_workflow.return_value.closure.compiled_workflow.primary.template.failure_node = None
Copy link
Member Author

@machichima machichima Jun 8, 2025

Choose a reason for hiding this comment

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

Add this to ensure the failure node is None, otherwise it will be MagicMock

@machichima machichima force-pushed the 6490-sync-node-exec-fail branch from eb657ee to d87a800 Compare July 17, 2025 02:24
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