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

feat: runtime metrics UI #747

Merged
merged 28 commits into from
May 10, 2023
Merged

feat: runtime metrics UI #747

merged 28 commits into from
May 10, 2023

Conversation

4nalog
Copy link
Member

@4nalog 4nalog commented Apr 19, 2023

TL;DR

This PR adds logic for allowing runtime task metrics to me displayed in the timeline chart component

To run:

  • setup the project by cloning
  • run yarn install and yarn start
  • navigate to a specific workflow and check out the timeline view

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

This feature:

  • add logic to fetch task level runtime metrics in the timeline view using the new workflow execution metrics api
  • destructures the data returned from the workflow execution metrics api to get values from the corresponding phases in detail based on the operation id
  • displays those as a chart on the timeline

Tracking Issue

fixes

@codecov
Copy link

codecov bot commented Apr 19, 2023

Codecov Report

Merging #747 (49f906d) into master (e28a142) will decrease coverage by 0.19%.
The diff coverage is 49.62%.

❗ Current head 49f906d differs from pull request most recent head 3bc01f9. Consider uploading reports for the commit 3bc01f9 to get more accurate results

@@            Coverage Diff             @@
##           master     #747      +/-   ##
==========================================
- Coverage   66.09%   65.90%   -0.19%     
==========================================
  Files         488      489       +1     
  Lines       11806    11914     +108     
  Branches     2171     2195      +24     
==========================================
+ Hits         7803     7852      +49     
- Misses       4003     4062      +59     
Impacted Files Coverage Δ
...cutionDetails/Timeline/TimelineChart/barOptions.ts 0.00% <0.00%> (ø)
.../ExecutionDetails/Timeline/TimelineChart/index.tsx 0.00% <0.00%> (ø)
...ole/src/components/Workflow/useWorkflowInfoItem.ts 51.16% <0.00%> (-2.50%) ⬇️
...ges/console/src/components/common/DetailsPanel.tsx 92.30% <ø> (ø)
packages/console/src/models/Common/constants.ts 100.00% <ø> (ø)
packages/console/src/models/Execution/api.ts 46.77% <50.00%> (+0.10%) ⬆️
packages/console/src/models/Execution/utils.ts 75.00% <50.00%> (-2.78%) ⬇️
...sole/src/components/Entities/EntityDescription.tsx 79.62% <57.14%> (-1.51%) ⬇️
...s/ExecutionDetails/Timeline/TimelineChart/utils.ts 78.26% <65.21%> (-13.58%) ⬇️
...ges/console/src/components/hooks/useDescription.ts 66.66% <75.00%> (-3.34%) ⬇️
... and 6 more

@tsheiner
Copy link

@4nalog here I am

@tsheiner
Copy link

@4nalog I can run this, but I don't see any partitioning of the timeline graph. Also I'm seeing the height issue you reported earlier.
Screenshot 2023-04-25 at 10 45 10 AM

@4nalog 4nalog changed the title [WIP] feat: runtime metrics UI feat: runtime metrics UI Apr 26, 2023
@4nalog 4nalog marked this pull request as ready for review April 26, 2023 21:44
@4nalog 4nalog requested a review from jsonporter April 26, 2023 21:45
@tsheiner
Copy link

@4nalog I can run this but when I look at any timeline view, I do not see the the chart lines partitioned, do not get a detail pop up.

What am I missing?
Screenshot 2023-04-27 at 7 57 47 AM

@jsonporter
Copy link
Contributor

Bugs per our sync with @hamersaw:

  • Diff on seconds first
  • append nanos (if present) to result of seconds diff.

@tsheiner
Copy link

tsheiner commented May 2, 2023

@4nalog I see two issues:

  • the way the tooltip animates is not OK; it kind of flys in from somewhere. Please just fade it up in .5ms at mouse position.
  • I think we are still drawing the lines partitioning the bar; please suppress.

@ursucarina ursucarina force-pushed the feat/runtime-metrics branch 2 times, most recently from a461b4b to 50a16b5 Compare May 10, 2023 20:56
4nalog and others added 6 commits May 10, 2023 13:57
Signed-off-by: Jason Porter <jason@union.ai>
Signed-off-by: Jason Porter <jason@union.ai>
Signed-off-by: Carina Ursu <carina@union.ai>
@ursucarina ursucarina requested review from a team, ursucarina, olga-union and james-union and removed request for a team May 10, 2023 21:15
Signed-off-by: Soham <4nalog@protonmail.com>
@jsonporter jsonporter merged commit 29babaa into master May 10, 2023
@jsonporter jsonporter deleted the feat/runtime-metrics branch May 10, 2023 21:39
@flyte-bot
Copy link
Collaborator

🎉 This PR is included in version 1.7.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants