-
Notifications
You must be signed in to change notification settings - Fork 51
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
TestQueryOneToOneRelations flaky in CI #1702
Comments
It looks to be #1672 - only now flaky instead of consistently failing (and on a different, but similar test). The fact that it is now flaky is pulling me closer to believing this is something GC related within the badger code. |
Oddly, whilst this has been problematic in the CI today, I have no trouble running the change detector on my laptop atm (3 out of 3) (unlike #1672 which was failing pretty consistently locally) EDIT: 2 out of 3 runs failed locally this morning (same test as in desc). |
It fails every third run for me locally. Like clockwork |
I wonder if that is significant. How many times have you seen this set-of-three pattern? |
Pretty consistently. So at least 20 times thus far. Sometimes I get 3 or 4 successful runs but it's usually 2 good ones and the third fails. A couple subsequent failures too. |
## Relevant issue(s) Resolves #1702 ## Description This PR updates the Badger version to v4. It includes a temporary fix to our badger `os.Exit` issue that is costing us time when managing PRs. This should be reverted or properly fixed before releasing v0.7.
## Relevant issue(s) Resolves sourcenetwork#1702 ## Description This PR updates the Badger version to v4. It includes a temporary fix to our badger `os.Exit` issue that is costing us time when managing PRs. This should be reverted or properly fixed before releasing v0.7.
TestQueryOneToOneRelations
often fails on the change detector on the CI. It's not clear yet what is causing this.It looks to be #1672 - only now flaky instead of consistently failing (and on a different, but similar test).
Possibly significant is that both this and #1672 involved tests with one-one relations.
TestQueryOneToOneRelations
only does not resolve the issue (other tests do not appear to be a factor)Publishers
orAuthors
appears to remove the issueBook {name}
appears to resolve the issue - this is unlike AssertFail in badger file on db close #1672 which persisted on a simplified queryBook {name author {name}}
(removing the publisher join) also resolves the issueBook {name publisher {name}}
(removing the author join) does not resolve the issue. This interestingly is the one-one join (same as AssertFail in badger file on db close #1672)n.subtype.Spans()
does not resolve the issue (is a difference between the primary and secondary)valuesSecondary
appear to be generated, despite typeJoinOne silently discards errors inNext
#1711valuesSecondary
immediately aftern.subType.Init()
resolves the issue, this is beforen.subType.Next()
valuesSecondary
immediately aftern.subType.Next()
does not resolve the issue, suggestingNext
is the trigger (same as in AssertFail in badger file on db close #1672)n.subType.Init()
fromtypeJoinOne.Init()
does not resolve the issue (although it is a duplicate, pointless call I think)Removing the 'extra'It did for a while, and then broke following a git pushdf.kvResultsIter.Close()
call added to the fetcher in AssertFail in badger file on db close #1672 appears to resolve the issueThe text was updated successfully, but these errors were encountered: