-
Notifications
You must be signed in to change notification settings - Fork 9
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
0.1.4 breaks CI: AttributeError: 'Function' object has no attribute 'execution_count' #42
Comments
#40 (well the release of it) caused the pipelines to fail. It looks like the import check does not work correctly. Home Assistant does not use the pytest-rerunfailures plugin (at least it's not defined in any requirement and is also not manually installed during GH Action execution. Maybe checking if execution_count exists on item is a better approach to handle this (and also saves the dirty pass of the ImportError). execution_count is set here: https://github.com/pytest-dev/pytest-rerunfailures/blob/master/pytest_rerunfailures.py#L487 Also, one could argue that its better to fix the flaky tests instead of rerunning them in CI - but I guess that's a philosophy question. |
You should be able to check for the entry point to detect the plugin, that's how PyTest discovers plugins. Worth checking, anyway. |
I've just released version 0.1.5 (reverted changes of 0.1.4). |
Ah sorry about this - I had manually tested this and it seemed to work, will look into a different method of detecting the plugin. |
Closing this issue because CI error was resolved by reverting changes. |
0.1.4 breaks our test suite on GitHub actions:
Ref: home-assistant/core#58351
The text was updated successfully, but these errors were encountered: