-
Notifications
You must be signed in to change notification settings - Fork 41
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
GitError: cannot locate local branch 'unlisted' #7351
Comments
See also #6671 |
Sentry issue: OLYMPIA-PROD-31G |
I started to look into this error. This is an error coming from According to the In this case, this is a The The I believe the git error comes from a In https://sentry.prod.mozaws.net/share/issue/8ea46d4d182144cd8c972708a2ffd633/, the issue comes from the local lookup. It is possible that a newer version of Otherwise we should probably handle this FWIW, the Sentry project for -dev does not list this particular error. |
It would be interesting to see if |
The problem seems to occur very frequently with the |
How could we get access to the prod files? |
Nevermind, I was able to get files from our production server. I can reproduce the issue locally. The git repository is corrupted with an invalid If you use
We don't ignore this error in our code obviously but we can catch |
This is not feasible because the branch ref might have become broken over time, not necessarily when we tried to create it for the first time. (I found lost/unreachable commits in the production repos I examined). The new approach to fix this issue is to delete the repo and re-extract everything when we detect a broken branch ref. |
I am not sure I've mentioned this before: I don't think we can really find the root cause behind the broken ref. It could be caused by a libgit2/pygit2 update or a FS hiccup or anything else really. |
Once #7453 has landed, the plan is to have a
|
@willdurand This issue was tested on dev with this addon https://reviewers.addons-dev.allizom.org/en-US/reviewers/review/12roboform-12password-manager |
There are 90k events in sentry for this see https://sentry.prod.mozaws.net/share/issue/8ea46d4d182144cd8c972708a2ffd633/
/cc @EnTeQuAk
For QA: please reach out to the AMO team to test this issue. There is some work to do on the -dev servers to simulate this error. The idea would be to corrupt the git repository of a given add-on on the -dev server and have you (QA) re-upload a new version. In the end, all the versions of this add-on, including the new one, should be successfully extracted.
Also note that this is behind a waffle switch.
The text was updated successfully, but these errors were encountered: