Damned-lies blocked from committing translations

When I am trying to submit the Bulgarian translation of gnome-builder I am getting the following error:

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’)

This seems similar to L10n.gnome.org: unable to submit user guide translation to repository due to unknown git error . Can someone look into it?


I am getting the same for: Module Translation: Manuals

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’)

2 Likes

Should be fixed by now, thanks!

1 Like

Thank you very much for the quick fix @averi!

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?

Kind regards

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!

GTK is blocked: Module Translation: gtk

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.

Also seen for modules gnome-remote-desktop (main), gtk (main), glib (main) when submitting Kazakh translations.

Also some issues with solanum in gnome-circle. Translation was submitted (and seen in repo) but DL ui not updated

Looks like Failed to generate a new POT file for the user interface of “solanum” (domain: “po”) (#68) · Issues · World / Solanum · GitLab

@averi:

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.

That is not an infrastructure related problem, you should get in touch with the GTK maintainers.

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.

@averi, @gbernard:

I just tried resubmitting the translation. I got:

504 Gateway Time-out

The server didn’t respond in time.

However when I check GTK I see:

GTK branch: update-translation-bg-from-main so I guess it worked. Do I need to do anything else now the branch is created. Should I create merge request (and how)?

Thanx for the quick reaction:

al_shopov

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.

@gbernard Thanx. I understand that you want to de-risk the current situation during the ramp up to Gnome 50.

Do I have to do anything to get the updated translation upstream?

Today I refreshed the translation in Damned Lies and tried resubmitting. I got this error:

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.

Just be patient please, it’s not necessary to try again and again.

Give me time (when I will have time) to investigate.

I will ping you.

@averi , @sstendahl , @cmkohnen

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.

Kind regards

As DL still does not work for me, I created 2 merge requests:

һttps://gitlab.gnome.org/World/Graphs/-/merge_requests/1191

I’m sorry but that’s not fair. By doing so, you put pressure on people that would help and you do not help fixing the issue.

1 Like

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).

1 Like

There was a new change in GTK so I updated and tried to submit the translation. The error I get this time is different and I believe it is on GTK side so I filed this ticket to them: It seems the gtk repo and build are misconfigured to properly accepte translations from Damned Lies (#8083) · Issues · GNOME / gtk · GitLab