[Discussion] How to proceed with failing pyqtgraph exit test#1163
[Discussion] How to proceed with failing pyqtgraph exit test#11632xB wants to merge 1 commit intopyqtgraph:developfrom
Conversation
|
I had completely forgotten I wrote this test (#956). I'm not really sure how well the test is designed, so I'm ok with skipping it. What's weird is Pipelines seems to be timing out at 15 seconds but the test shouldn't take that long to fail. |
|
Please review the solution in #1161. The None vs. 0 thing means that in some instances we are never polling. |
|
@cclauss Might you quickly elaborate how that change affects this test? |
|
@cclauss Also, it is possible for |
|
Sure. After you click thru the 7 links that Azure Pipelines makes you go thru to see why your test failed, you get:
|
|
@cclauss Please check the following documentation of
|
|
You are correct. I was wrong. However this fix still works because it forces the loop to run at least once. |
|
Given that this only occurs on the macOS/python3.6/qt5.9 pipeline, and nowhere else, there is no doubt there is some CI environment issues at play (just like previous versions of macOS really did not like some of the openGL tests). I'm good with modifying this test if it makes it a bit more robust, even if it is to address a CI environment issue. |
Ensure call_with_timeout() will call p.poll() as discussed in pyqtgraph#1163
|
That doesn't resolve the issue unfortunately - #1164 showed that the loop definitely runs, including on the MacOS-Py3.6-PyQt5.9 setup. This is an intermittent failure on a specific setup, so something tricky is going on. I mentioned it above, but something that sticks out to me is this line: https://dev.azure.com/pyqtgraph/pyqtgraph/_build/results?buildId=684&view=logs&j=90cc5e1f-49e9-5cbd-c0c1-00a1410b1772&t=47d78265-9244-5a5c-bb6c-e6ac800228fd&l=236 The |
|
I think my vote at this point is to create an issue to keep track of this, skip the test, and move on for now. |
|
@j9ac9k I would be happy about the linked commit by @cclauss to be merged! It makes @ixjlyons I've never used |
|
Can't believe it took me so long before attempting to replicate locally, which I am able to do. That said we're super close to killing off pyqt5.9 support i'm debating if we should just skip this test. |
|
So this is not a test environment-specific thing after all? Interesting! Well, for me the question remains what the current use case of |
|
....so it fails on a reproducible manner, running I have no strong opinions on just making |
|
Okay! The one missing part for me is why |
test_pg_exit fails inconsistently, as seen in #1159. It seems like PyQtGraph is not exiting in time, which would be fixed by increasing the timeout for that test, which is what this PR aims at.
This is just a quick suggestion and open for discussion! A counter-argument would be that we then no longer test whether PyQtGraph exits fast.
As @j9ac9k pointed out in #1159, this failure was also observed by @ixjlyons . Does someone have any input on this?
[Edit] Update: The pipelines indicate that this fix did not work.