-
Notifications
You must be signed in to change notification settings - Fork 6
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
In certain cases UI test hangs indefinitely instead of fails (OSOE-880) #387
Comments
Related/same? #228 (and Lombiq/Open-Source-Orchard-Core-Extensions#736). Did you try configuring |
The examples I mentioned happened on Ubuntu and restarting did not fix them, so I don't think #228 is related.
Thanks, I will try that. |
Despite the title of that issue, this happened many times under Ubuntu too (but first it seemed it's Windows-only). But yeah, that's about random hangs, not consistent ones. That look more like an app-specific issue. |
Adding |
This can fix the issue if control gets to this line: Because with this, if the tests complete but the process hangs, the run can succeed. However, the telltale message is not in the output, so this didn't run, and the previous run you linked wasn't hanging after the test run has completed (i.e. all tests produced their outputs) but somewhere before that. BTW there are a huge number of exceptions in the workflow output, I suggest checking these out, e.g.:
And a lot more, even Shouldly ones, so this should've really failed (though completed). |
I would never. All praises to the Omnissiah!!
Yes, that's why I said that the test hangs instead of fails. (btw on TDEAL it only hangs with the |
I see. Perhaps this is not actually a hang, then? But rather, it runs retries of a lot of tests, which is slow, and it just times out? With 6 hours in TDEAL that would be extreme, but not impossible (on the slow 2-core HDD default runner; OCC, as public repos, use 4-core SSD runners by default). |
I'm 100% certain it's actually a hang. With TDEAL I know that only the visual verification test failed. Just one test. The same run on buildjet only took 12.5 minutes. So if it took up to an hour with the standard runner I could stomach that, but 6 hours is not possible. |
Then I guess it can hang due to some threads deadlocking with just the two cores. We've seen issues like before, and an ASP.NET Core sync-over-async issue, still unfixed (somewhere linked in the other issue I linked), can cause this. |
Nothing else to do here then, though? |
As part of NEST-501 I also experience this: the DotNest UI tests didn't produce any output here and the workflow timed out after an hour. After adding |
So you also had problems with security scanning. In OCC as well, after filtering out the expected error testing, all other error logs were from the full security scan saying "InvalidOperationException System.InvalidOperationException: Two concurrent threads have been detected accessing the same ISession instance". I've removed the |
It's expected for the security scan to start concurrent requests, though the goal is not stress testing and I believe the rate can be adjusted if necessary. However, concurrent requests mustn't result in such a YesSql exception: that only happens if two threads use the same |
Under NEST-501 I discovered that security scanning maxing out the CPU (and maybe also RAM) of the runner can cause I still don't think there's a general issue here, maybe some documentation. |
And if there is a general issue, we should get back to #228. |
So, closing, since there's no new general issue. |
First I've experienced this on OCC during the OC 2.0 update, so I assumed it's related to OC 2.0 somehow. But now it happened with TDEAL as well. (I still don't know what hanged OCC, I know that for TDEAL it's just the same visual verification Chrome footer thing we had on OSOCE and elsewhere)
Jira issue
The text was updated successfully, but these errors were encountered: