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

Maint: Show test duration and limit to 15 failures. #137

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

Carreau
Copy link
Contributor

@Carreau Carreau commented Sep 18, 2024

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.

@Carreau Carreau force-pushed the pyspeed branch 3 times, most recently from 9f6af2c to aeac1c2 Compare September 18, 2024 12:16
Comment on lines 92 to 97
# 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
Copy link
Member

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.

Copy link
Contributor Author

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.

Comment on lines +55 to +57
--durations=10 \
--dist-dir=./dist/ \
--maxfail=15 \
Copy link
Member

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.
@Carreau
Copy link
Contributor Author

Carreau commented Sep 19, 2024

Rebased to remove the commits of #138 now that it is merged.

@agriyakhetarpal agriyakhetarpal merged commit 4a3984a into pyodide:main Sep 19, 2024
4 checks passed
@agriyakhetarpal
Copy link
Member

Thanks, @Carreau!

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.

3 participants