Skip to content
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

GetDynamicNodeWorkflow endpoint #4689

Merged
merged 9 commits into from
Jan 24, 2024
Merged

Conversation

iaroslav-ciupin
Copy link
Contributor

@iaroslav-ciupin iaroslav-ciupin commented Jan 8, 2024

Tracking issue

https://github.com/flyteorg/flyte/issues/

Why are the changes needed?

This new endpoint will be called by Flyte console on execution page. When workflow contains dynamic nodes, for each dynamic node, console will call this endpoint with corresponding node execution id and backend will respond with dynamic workflow closure. Its a replacement API for GetNodeExecutionData which can only be called when use clicks on task execution tab to see task Inputs/Outputs.

What changes were proposed in this pull request?

How was this patch tested?

Unit & integration tests, tested end-to-end by deploying this branch on real admin deployment.

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

Copy link

codecov bot commented Jan 8, 2024

Codecov Report

Attention: 21 lines in your changes are missing coverage. Please review.

Comparison is base (73b1d40) 58.21% compared to head (c3f0685) 58.22%.
Report is 3 commits behind head on master.

Files Patch % Lines
flyteadmin/pkg/rpc/adminservice/node_execution.go 0.00% 15 Missing ⚠️
...teadmin/pkg/manager/impl/node_execution_manager.go 83.78% 4 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4689      +/-   ##
==========================================
+ Coverage   58.21%   58.22%   +0.01%     
==========================================
  Files         626      626              
  Lines       53855    53932      +77     
==========================================
+ Hits        31349    31401      +52     
- Misses      19996    20021      +25     
  Partials     2510     2510              
Flag Coverage Δ
unittests 58.22% <65.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@iaroslav-ciupin iaroslav-ciupin force-pushed the get-dynamic-workflow-endpoint branch 2 times, most recently from 429da8f to 52f6a76 Compare January 8, 2024 19:43
Signed-off-by: Iaroslav Ciupin <[email protected]>
@iaroslav-ciupin iaroslav-ciupin force-pushed the get-dynamic-workflow-endpoint branch from 52f6a76 to e45bd5a Compare January 10, 2024 19:54
Signed-off-by: Iaroslav Ciupin <[email protected]>
@iaroslav-ciupin iaroslav-ciupin marked this pull request as ready for review January 10, 2024 20:03
@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. enhancement New feature or request labels Jan 10, 2024
@iaroslav-ciupin iaroslav-ciupin changed the title GetDynamicNodeWorkflow endpoint wip GetDynamicNodeWorkflow endpoint Jan 10, 2024
Signed-off-by: Iaroslav Ciupin <[email protected]>
Signed-off-by: Iaroslav Ciupin <[email protected]>
@iaroslav-ciupin iaroslav-ciupin force-pushed the get-dynamic-workflow-endpoint branch 2 times, most recently from 45225f6 to 4f86c5f Compare January 20, 2024 19:18
Signed-off-by: Iaroslav Ciupin <[email protected]>
@iaroslav-ciupin iaroslav-ciupin force-pushed the get-dynamic-workflow-endpoint branch from 4f86c5f to d1a05b2 Compare January 20, 2024 19:30
Copy link
Contributor

@hamersaw hamersaw left a comment

Choose a reason for hiding this comment

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

Only top-level comment is this seems kind of odd to expose through the workflow_manager. I do not see a node_manager in flyteadmin and I'm not sure that this small update merits adding one.

@iaroslav-ciupin
Copy link
Contributor Author

@hamersaw I was thinking between node_executions_manager(since dynamic workflow is stored inside a node execuction) and workflow_manager(since it's still a workflow even if its a dynamic one). Do you want to introduce a new manager just for this? do we even have a node entity in Flyte API? I see that each manager corresponds to a Flyte entity.

@hamersaw
Copy link
Contributor

@hamersaw I was thinking between node_executions_manager(since dynamic workflow is stored inside a node execuction) and workflow_manager(since it's still a workflow even if its a dynamic one). Do you want to introduce a new manager just for this? do we even have a node entity in Flyte API? I see that each manager corresponds to a Flyte entity.

To me, it makes more sense to put this in the node_execution_manager. Lets not worry about adding anything new here. @katrogan do you have any concerns with this route?

@katrogan
Copy link
Contributor

+1 to node execution manager, this is execution data produced by the node at runtime and isn't a workflow in the traditional sense (we can't launch invocations of it, it's never formally registered, etc)

Signed-off-by: Iaroslav Ciupin <[email protected]>
Signed-off-by: Iaroslav Ciupin <[email protected]>
@iaroslav-ciupin iaroslav-ciupin force-pushed the get-dynamic-workflow-endpoint branch from fab5a50 to 38f5b9e Compare January 23, 2024 19:13
hamersaw
hamersaw previously approved these changes Jan 23, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 23, 2024
Signed-off-by: Iaroslav Ciupin <[email protected]>
@iaroslav-ciupin iaroslav-ciupin merged commit 5e23add into master Jan 24, 2024
45 checks passed
@iaroslav-ciupin iaroslav-ciupin deleted the get-dynamic-workflow-endpoint branch January 24, 2024 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lgtm This PR has been approved by a maintainer size:XXL This PR changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants