-
Notifications
You must be signed in to change notification settings - Fork 50
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
Flaky test "rebase in a sub, was conflicted" #864
Comments
It looks like what's going on is that we're hitting this Pokémon exception handler: git-meta/node/lib/util/submodule_rebase_util.js Lines 183 to 187 in 9ed0aff
The exception being ignored is of the form
I don't understand why we'd get "object not found" in this case. It's the same as the thing being rewritten from. |
I get the same error bumping nodegit to 0.27, so it's not that. I dumped the submodule's "status" out of
It's odd that this is the reported current comit ( |
This is probably not a very fulfilling fix, but it addresses the issue that for at least one of the test cases involving a rebase, the commit that is recorded as the starting point of the rebase exists in the submodule's remote but not in the non-bare submodule. Since WriteRepoASTUtil is only used from either test code or test-oriented utilities (generate-repos and write-repo), it seems safe to skip the GC. Arguably, this points to a real bug somewhere if this commit is unrooted and therefore prone to being GC'd, but I think that bug is lives entirely within the repo AST stuff (in generating a repo that's in the middle of a rebase), so this probably does not paper over a problem that could impact real git-meta users.
Fix flaky test "rebase in a sub, was conflicted" (fixes #864)
This caused CI to fail on #863.
The text was updated successfully, but these errors were encountered: