-
Notifications
You must be signed in to change notification settings - Fork 1
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
cmd/cueckoo: track original commit we import #33
Comments
myitcv
added a commit
that referenced
this issue
Mar 16, 2023
When we import a PR from GitHub we immediately lose track of the original commit sha because of necessary commit message rewriting. Currently this means we have no easy way of anyone tracking exactly what was imported. Per a suggestion from @mvdan, we can simply add this to the "Closes" message for now, and later consider writing a message back to the PR from which we are importing with more information. For #33.
myitcv
added a commit
that referenced
this issue
Mar 16, 2023
When we import a PR from GitHub we immediately lose track of the original commit sha because of necessary commit message rewriting. Currently this means we have no easy way of anyone tracking exactly what was imported. Per a suggestion from @mvdan, we can simply add this to the "Closes" message for now, and later consider writing a message back to the PR from which we are importing with more information. For #33.
mvdan
pushed a commit
that referenced
this issue
Mar 16, 2023
When we import a PR from GitHub we immediately lose track of the original commit sha because of necessary commit message rewriting. Currently this means we have no easy way of anyone tracking exactly what was imported. Per a suggestion from @mvdan, we can simply add this to the "Closes" message for now, and later consider writing a message back to the PR from which we are importing with more information. For #33.
fa87e85 adds the short commit hash to "Closes" for |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right now, an import performs a couple of commit rewrites (altering the commit message only) which by definition means we find ourselves with a different commit hash in Gerrit to that sitting in GitHub. We cannot avoid this. However, we should track somewhere the original commit hash for reference, but also to help debug situations where there is a race condition on someone force pushing a commit to a PR at around the time the import is being performed (this has happened).
One additional/alternative measure here would be to have
cmd/cueckoo importpr
write a message to the PR at the time the PR is imported, including the commit hash that was imported as well as the resulting change ID. This does not totally prevent a race condition, but would greatly help the debugging.cc @mvdan FYI.
The text was updated successfully, but these errors were encountered: