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 month suffix M to asv --date-period argument #34

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

zacharyburnett
Copy link

@zacharyburnett zacharyburnett commented Nov 10, 2023

in asv --date-period, there is no option for months or quarters; this might be useful for running benchmarks for projects with a quarterly or monthly release schedule

Also, where would I add documentation for these suffixes? I couldn't find it on the RTD page, and accidentally used m for month, not knowing it was minutes, and was confused when there were way more commits than I expected

asv_runner/util.py Outdated Show resolved Hide resolved
Copy link
Member

@HaoZeke HaoZeke left a comment

Choose a reason for hiding this comment

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

Also, could you add a section to the documentation (over at the main asv repo)? Thanks for this!!

Comment on lines +110 to +111
("M", int(60 * 60 * 24 * 7 * 52 / 12)),
("q", int(60 * 60 * 24 * 7 * 52 / 4)),
Copy link
Member

Choose a reason for hiding this comment

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

Just as a stylistic nit, are the conversions for the other suffixes done elsewhere? It would be nice to be consistent perhaps.

Copy link
Author

Choose a reason for hiding this comment

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

I don't think so, the place it's being used in the asv flow is here:
https://github.com/airspeed-velocity/asv/blob/b8cbf81ccb808158102692a6fc42b8a9b2f2861e/asv/util.py#L187
and there's not type guard there. Should there be?

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

Successfully merging this pull request may close these issues.

2 participants