aesara-devs / aesara

Aesara is a Python library for defining, optimizing, and efficiently evaluating mathematical expressions involving multi-dimensional arrays.
https://aesara.readthedocs.io
Other
1.18k stars 155 forks source link

[WIP] Add Pytest Profiling and Monitoring workflow #1460

Closed purna135 closed 1 year ago

purna135 commented 1 year ago

This pull request adds a new workflow for Pytest Profiling and Monitoring. It includes two jobs, "profiling" and "monitoring", which are run sequentially.

The "profiling" job installs necessary dependencies, runs Pytest with profiling options to generate a report of CPU and memory usage, and saves the report as an artifact. The "monitoring" job monitors CPU and memory usage, and posts a warning comment on the pull request if either exceeds 90%.

Here are a few important guidelines and requirements to check before your PR can be merged:

codecov[bot] commented 1 year ago

Codecov Report

Merging #1460 (4c9808c) into main (984ee55) will decrease coverage by 0.15%. The diff coverage is n/a.

:exclamation: Current head 4c9808c differs from pull request most recent head 62bb4d1. Consider uploading reports for the commit 62bb4d1 to get more accurate results

Additional details and impacted files [![Impacted file tree graph](https://codecov.io/gh/aesara-devs/aesara/pull/1460/graphs/tree.svg?width=650&height=150&src=pr&token=2HNzVWyxrA&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aesara-devs)](https://codecov.io/gh/aesara-devs/aesara/pull/1460?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aesara-devs) ```diff @@ Coverage Diff @@ ## main #1460 +/- ## ========================================== - Coverage 75.02% 74.87% -0.15% ========================================== Files 194 194 Lines 50099 50123 +24 Branches 12096 12098 +2 ========================================== - Hits 37586 37530 -56 - Misses 10189 10266 +77 - Partials 2324 2327 +3 ``` [see 17 files with indirect coverage changes](https://codecov.io/gh/aesara-devs/aesara/pull/1460/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aesara-devs)