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

Add job metrics per invocation #19048

Merged
merged 6 commits into from
Nov 6, 2024

Conversation

mvdbeek
Copy link
Member

@mvdbeek mvdbeek commented Oct 23, 2024

Allows quickly summarizing runtime, memory usage, cores etc. per invocation:

Screenshot 2024-11-05 at 10 30 19
Screenshot 2024-11-05 at 10 30 25

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

@mvdbeek mvdbeek force-pushed the invocation_metrics_api branch 2 times, most recently from e41e3cb to 42e56ff Compare October 28, 2024 16:48
@mvdbeek mvdbeek force-pushed the invocation_metrics_api branch from 42e56ff to 28975da Compare November 4, 2024 16:28
@mvdbeek mvdbeek force-pushed the invocation_metrics_api branch from 28975da to fad5ae5 Compare November 4, 2024 16:49
@mvdbeek mvdbeek force-pushed the invocation_metrics_api branch from fad5ae5 to 6b94267 Compare November 4, 2024 16:53
@bgruening
Copy link
Member

This is very cool!

@mvdbeek mvdbeek marked this pull request as ready for review November 5, 2024 09:27
@github-actions github-actions bot added this to the 24.2 milestone Nov 5, 2024
@mvdbeek mvdbeek force-pushed the invocation_metrics_api branch from 9916da2 to b1691c5 Compare November 5, 2024 16:20
Comment on lines +104 to +106
"vega": "^5.30.0",
"vega-embed": "^6.26.0",
"vega-lite": "^5.21.0",
Copy link
Member

Choose a reason for hiding this comment

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

Since this is only needed in a few places, and quite a large package, could we load this on demand?

Copy link
Member Author

Choose a reason for hiding this comment

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

I suppose if you ask then it is possible 😃 ? I don't know how to do that though.

Copy link
Member

Choose a reason for hiding this comment

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

I can push a commit if you like

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you!

Copy link
Member

Choose a reason for hiding this comment

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

To explain what's happening here, to anyone curious:

  • the vega libs were added to "modulesExcludedFromLibs" so it's not bundled into the libs bundle. This adds these libs to their own bundles.
  • type imports were changes from import { type ...} to import type { ... }. These are not equivalent. The second one let's typescript completely remove the import line, while the first keeps an empty import, in case of import side effects. This would break on demand loading
  • Finally the component is imported as const VegaWrapper = () => import("./VegaWrapper.vue");. This is a way to lazy load vue components and all it's related code (the vega library in this case). The component can be used like before

@bgruening
Copy link
Member

Thanks @mvdbeek and @ElectronicBlueberry ... great feature!

@bgruening bgruening merged commit 206b729 into galaxyproject:dev Nov 6, 2024
55 of 57 checks passed
Copy link

github-actions bot commented Nov 6, 2024

This PR was merged without a "kind/" label, please correct.

@nsoranzo nsoranzo deleted the invocation_metrics_api branch November 6, 2024 21:52
@jdavcs jdavcs added the highlight/admin Included in admin/dev release notes label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants