-
-
Notifications
You must be signed in to change notification settings - Fork 22
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: Show test duration and limit to 15 failures. #137
Conversation
9f6af2c
to
aeac1c2
Compare
micropip/logging.py
Outdated
# need a default value because of __getattr__/__setattr__ | ||
logger: logging.Logger = None # type: ignore[assignment] | ||
|
||
def __init__(self, logger: logging.Logger): | ||
self.logger = logger | ||
# Bypassing __setattr__ by setting attributes directly in __dict__ | ||
self.__dict__["logger"] = logger |
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.
What's the point of this? I don't understand.
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.
self.logger = ...
call setattr, which itself, need self.logger
, (in getattr(self.logger, ...,...)
, though self.logger
is not defined so goes through getattr (infinite recursion). OTOH self.__dict__
exists, so all fine.
Basically #138 should be merged first, it fixes the failure on main, and then I'll rebased my own PRs on top of #138.
--durations=10 \ | ||
--dist-dir=./dist/ \ | ||
--maxfail=15 \ |
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.
Looks good thanks!
I don't think it is worth contiuing testing if there is more than 15 failures. Also show the 10 slowest test, I'm hopping that will give us insight into how to make testing faster.
Rebased to remove the commits of #138 now that it is merged. |
Thanks, @Carreau! |
I don't think it is worth contiuing testing if there is more than 15 failures.
Also show the 10 slowest test, I'm hopping that will give us insight into how to make testing faster.