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
[MAINT] add script to check duration of test suite #4231
Conversation
👋 @Remi-Gau Thanks for creating a PR! Until this PR is ready for review, you can include the [WIP] tag in its title, or leave it as a github draft. Please make sure it is compliant with our contributing guidelines. In particular, be sure it checks the boxes listed below.
For new features:
For bug fixes:
We will review it as quick as possible, feel free to ping us with questions if needed. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4231 +/- ##
==========================================
+ Coverage 92.06% 92.57% +0.51%
==========================================
Files 144 144
Lines 16419 18145 +1726
Branches 3434 4025 +591
==========================================
+ Hits 15116 16798 +1682
- Misses 761 782 +21
- Partials 542 565 +23
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
does not have to go into this repo but handy to have around |
OK, you will then create the Github action, I guess ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could not spot any issue.
yeah to run on command and every month or so. |
will update graph and add this to CI to help automate it |
This is done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thx.
Happy to hear about other's opinion on this feature. |
As this is not urgent I will wait for a couple of weeks before merging. |
Unless I hear anything otherwise I will merge this next week. |
maint_tools/check_gha_workflow.py
Outdated
return next( | ||
( | ||
version | ||
for version in ["3.8", "3.9", "3.10", "3.11", "3.12"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way we could keep this in-sync with the Python versions we support, without having to remember to update it here ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cannot think of an easy way... Yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could not find an easy way to do this, so for now I at least extract this list into a constant at the top of the script that should make it easier to find and modify.
Co-authored-by: Elizabeth DuPre <emd222@cornell.edu>
This may require a github token to work | ||
(if you need to make a lot of call to the GitHub API). | ||
|
||
You can get a github token at: | ||
https://github.com/settings/tokens | ||
|
||
You can either: | ||
|
||
- save the github token in a file and modify the script | ||
(see the variable USERNAME and TOKEN_FILE below). | ||
This is can be useful if you want to run the script locally. | ||
|
||
- pass the token directly to the script as an argument. | ||
This is the way to do it when using this script in continuous integration. | ||
|
||
USAGE | ||
----- | ||
|
||
.. code-block:: bash | ||
|
||
python maint_tools/check_gha_workflow.py $GITHUB_TOKEN |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@emdupre
does this seem more clear?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, thanks !
* add script to check duration of test suite * add comment * comment and refactor * typo * improve paging * add workflow * Update maint_tools/requirements.txt * fail on bad request * upload artefacts * upload artefacts * remove running on PR * Apply suggestions from code review Co-authored-by: Elizabeth DuPre <emd222@cornell.edu> * update doc string * update doc string * refactor --------- Co-authored-by: Elizabeth DuPre <emd222@cornell.edu>
…ap with masker report images (#4308) * extract table folding and overlapping * update changelog * Update doc/changes/latest.rst Co-authored-by: bthirion <bertrand.thirion@inria.fr> * FIX] fixes several plotting details in glm reports (#4266) * fix several issues in glm reports * further fixes * change cmap for glass brain * fix remaining issues * [full doc] request full build * update changelog * [full doc] request full build * [FIX] force views in surface plotting to be pairs of `int` or `float` when not a `string` (#4297) * for views to be pairs of int or float when not a string * update changelog * [FIX] fix cut position in nifti maps maskers (#4304) * fix cut position in nifti maps maskers * update changelog * [FIX] remove conftest for externals (#4306) * remove conftest tempita * ignore tempita in pyproject.toml * [MAINT] add script to check duration of test suite (#4231) * add script to check duration of test suite * add comment * comment and refactor * typo * improve paging * add workflow * Update maint_tools/requirements.txt * fail on bad request * upload artefacts * upload artefacts * remove running on PR * Apply suggestions from code review Co-authored-by: Elizabeth DuPre <emd222@cornell.edu> * update doc string * update doc string * refactor --------- Co-authored-by: Elizabeth DuPre <emd222@cornell.edu> * [DOC] display all masker reports in the doc (#4295) * display masker reports in doc * update changelog * refactor * add notebooks * clear cells * [full doc] request full build * add link to examples * [full doc] request full build * fix doc build * [full doc] request full build * [full doc] request full build --------- Co-authored-by: bthirion <bertrand.thirion@inria.fr> Co-authored-by: Elizabeth DuPre <emd222@cornell.edu>
Changes proposed in this pull request: