-
Notifications
You must be signed in to change notification settings - Fork 40
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
Fixed: Random failures in CommentInterfaceTest - Link with label 1 new comment not found. #5189
Comments
As usual, I'm not able to reproduce the problem locally. It looks like a race condition (wild guessing, though...). Maybe stuffing in a It appears as if the first and second GET request are so close to each other and the database in the test box so busy, that the db record isn't written yet, when the second request is sent? Link to failing test code |
Based on my assumptions (previous comment), I created a PR - seems to work so far, but only time can proof it. At least, it doesn't make things worse. (And obviously PathPatternBulkUpdateTestCase and BatchProcessingTestCase should be the next candidates in our ongoing random failures task.) |
This issue seems very similar to the batch API processing issue in #5205. The root cause I think is the same: Node module uses a shutdown function to update the This is the relevant code in
This switching to use a shutdown function was added in #2926. In #5205, I removed the shutdown function to solve the problem. I think @indigoxela's PR is the better approach for this issue, simply giving the background processing a second to update the |
I merged backdrop/backdrop#3727 into 1.x and 1.19.x. I expanded on the code comments slightly. Thanks @indigoxela! |
Description of the bug
Part of #1478
In core/modules/comment/tests/comment.test, a random failure with GHA.
Not to get confused with #2601, which was about the opposite (expected link not found). But very similar.
Steps To Reproduce
Still evaluating - possibly caused by the order of tests as they run.
Test run output
The text was updated successfully, but these errors were encountered: