An error occurred while pushing the commit for module gnome-builder in branch main: An error occurred while pushing the references to the remote for module gnome-builder in branch main: Git repository gnome-builder could not be pushed because of an unknown error: Command ‘git push origin main’ returned non-zero exit status 1. (Warning: Permanently added ‘ssh.gitlab.gnome.org’ (ED25519) to the list of known hosts. remote: GL-HOOK-ERR translations user cannot create or update branches except for add-translation-{locale}-from-{branch} or update-translation-{locale}-from-{branch} pattern To gitlab.gnome.org:GNOME/gnome-builder.git ! [remote rejected] main → main (pre-receive hook declined) error: failed to push some refs to ‘gitlab.gnome.org:GNOME/gnome-builder.git’)
An error occurred while pushing the commit for module Manuals in branch main: An error occurred while pushing the references to the remote for module Manuals in branch main: Git repository Manuals could not be pushed because of an unknown error: Command ‘git push origin main’ returned non-zero exit status 1. (Warning: Permanently added ‘ssh.gitlab.gnome.org’ (ED25519) to the list of known hosts. remote: GL-HOOK-ERR translations user cannot create or update branches except for add-translation-{locale}-from-{branch} or update-translation-{locale}-from-{branch} pattern To gitlab.gnome.org:GNOME/manuals.git ! [remote rejected] main → main (pre-receive hook declined) error: failed to push some refs to ‘gitlab.gnome.org:GNOME/manuals.git’)
I can confirm it is working and I submitted the two translations. In case this happens again - I will ping in this thread rather than opening a new. Do you want to tell what is happening so other people can fix that?
Please do so, yes, there was a change needed on one of the pre-receive hooks that is installed in gitaly. These hooks can only be modified by the infrastructure team so if you see anything that is not working as expected and resembles what you reported above, please mention it in this thread, thanks!
An error occurred while pushing the commit for module gtk in branch main: An error occurred while pushing the references to the remote for module gtk in branch main: Git repository gtk could not be pushed: Command ‘git push origin main’ returned non-zero exit status 1. (Warning: Permanently added ‘ssh.gitlab.gnome.org’ (ED25519) to the list of known hosts. remote: GitLab: You are not allowed to push code to protected branches on this project. To gitlab.gnome.org:GNOME/gtk.git ! [remote rejected] main → main (pre-receive hook declined) error: failed to push some refs to ‘gitlab.gnome.org:GNOME/gtk.git’). The branch seems protected and Damned Lies is unable to push references to the repository. Ask the project maintainers to update the protection for branches to allow Damned Lies to push commits.
I am still experiencing problems with submitting gtk. When I tried to submit the new Bulgarian translation I am getting:
An error occurred while pushing the commit for module gtk in branch main: An error occurred while pushing the references to the remote for module gtk in branch main: Git repository gtk could not be pushed: Command ‘git push origin main’ returned non-zero exit status 1. (Warning: Permanently added ‘ssh.gitlab.gnome.org’ (ED25519) to the list of known hosts. remote: GitLab: You are not allowed to push code to protected branches on this project. To gitlab.gnome.org:GNOME/gtk.git ! [remote rejected] main → main (pre-receive hook declined) error: failed to push some refs to ‘gitlab.gnome.org:GNOME/gtk.git’). The branch seems protected and Damned Lies is unable to push references to the repository. Ask the project maintainers to update the protection for branches to allow Damned Lies to push commits.
I updated the gtk configuration so that a push will open a merge request. It looks like this parameter has been changed, because I already updated it a few days/weeks ago.
The process has been killed before the code created the message with the link in it. I will lock the translation on old branches, focusing on the last version of GTK because git checkout last too long. I’m working on a fix based on git worktrees, but I don’t want to change the behavior of Damned Lies during the freeze.
An error occurred while pushing the commit for module gtk in branch main: An error occurred while pushing the references to the remote for module gtk in branch main: Git repository gtk could not create a merge request: Command ‘git push -u -o merge_request.create -o merge_request.target=main -o merge_request.auto_merge -o merge_request.title=Update Bulgarian translation -o merge_request.description=Update translation in Bulgarian from Damned Lies: Module Translation: gtk . Maintainers, the translation has gone through the Damned Lies review process and is ready to be included in the main repository. It has been reviewed by the language team. origin update-translation-bg-from-main’ returned non-zero exit status 1. (Warning: Permanently added ‘ssh.gitlab.gnome.org’ (ED25519) to the list of known hosts. remote: GL-HOOK-ERR translations user cannot modify ‘.gitlab-ci.yml’ To gitlab.gnome.org:GNOME/gtk.git ! [remote rejected] update-translation-bg-from-main → update-translation-bg-from-main (pre-receive hook declined) error: failed to push some refs to ‘gitlab.gnome.org:GNOME/gtk.git’)
If needed I can create (and keep an up to date) pull request for this. I am just not clear what I should do to ease the merging of the Bulgarian translation - I do not see the update-translation-bg-from-main gtk branch to have been updated after my DL submission.
@gbernard Thanx for the fast ping on DL. I tried submitting the translation again. On the first attempt I got:
504 Gateway Time-out
The server didn’t respond in time.
On the 2nd, 3rd, 4th and so on I got:
An error occurred while pushing the commit for module gtk in branch main: An error occurred while pushing the references to the remote for module gtk in branch main: Git repository gtk could not create a merge request: Command ‘git push -u -o merge_request.create -o merge_request.target=main -o merge_request.auto_merge -o merge_request.title=Update Bulgarian translation -o merge_request.description=Update translation in Bulgarian from Damned Lies: Module Translation: gtk. Maintainers, the translation has gone through the Damned Lies review process and is ready to be included in the main repository. It has been reviewed by the language team. origin update-translation-bg-from-main’ returned non-zero exit status 1. (Warning: Permanently added ‘ssh.gitlab.gnome.org’ (ED25519) to the list of known hosts. remote: GL-HOOK-ERR translations user cannot modify ‘.gitlab-ci.yml’ To gitlab.gnome.org:GNOME/gtk.git ! [remote rejected] update-translation-bg-from-main → update-translation-bg-from-main (pre-receive hook declined) error: failed to push some refs to ‘gitlab.gnome.org:GNOME/gtk.git’)
Should I wait a bit more? Or still create the pull request?
I also checked the GTK git at GNOME / gtk · GitLab - but I see no updates, neither in main, nor in update-translation-bg-from-main.
Reporting a separate problem - still unable to submit a translation but a different module. Pasting here to not multiply these topics.
The problem is with submitting the Bulgarian translation of Graphs
On pressing Submit, Damned Lies returns the following error:
An error occurred while pushing the commit for module Graphs in branch main: An error occurred while pushing the references to the remote for module Graphs in branch main: Git repository Graphs could not be pushed: Command ‘git push origin main’ returned non-zero exit status 1. (Warning: Permanently added ‘ssh.gitlab.gnome.org’ (ED25519) to the list of known hosts. remote: GitLab: You are not allowed to push code to protected branches on this project. To gitlab.gnome.org:World/Graphs.git ! [remote rejected] main → main (pre-receive hook declined) error: failed to push some refs to ‘gitlab.gnome.org:World/Graphs.git’). The branch seems protected and Damned Lies is unable to push references to the repository. Ask the project maintainers to update the protection for branches to allow Damned Lies to push commits.
I am really sorry if my actions seemed out of place.
I do not want to put pressure on you or anybody.
I realize people are volunteering their time but so am I. As a translation coordinator I try to make earnest effort to keep translators happy - they want to see their translations published. In case the problem cannot be fixed in time - I am trying to derisk the situations.
For example - I already received feedback from the Graphs developers that they have changed configs and I should try DL again. I fully intend to do that and will close the merge request.
Otherwise - is there any other way I can help with this? I am somewhat competent Python developer. I can volunteer some hours. You can use me as a rubber duck to bounce the ideas onto (at the very least).