#9670 Unable to merge PR in dist-git for rpm repo that belongs to me
Closed: Fixed 3 years ago by merlinm. Opened 3 years ago by merlinm.

Describe what you would like us to do:


I need assistance figuring out why I am unable to merge a PR (https://src.fedoraproject.org/rpms/python-aexpect/pull-request/5) for a RPM repo for which I am the main admin.

When I attempt to merge via the web UI, an error panel pops up that contains:

:information_source: Your task failed: Remote hook declined the push: 2021-02-16 14:00:37,828 [INFO] pagure.lib.git_auth: Looking for backend: distgit 2021-02-16 14:00:37,828 [INFO] pagure.lib.git_auth: Looking for backend: distgit 2021-02-16 14:00:37,835 [DEBUG] pagure.lib.git_auth: Found the following installed helpers {'test_auth': EntryPoint.parse('test_auth = pagure.lib.git_auth:GitAuthTestHelper'), 'gitolite2': EntryPoint.parse('gitolite2 = pagure.lib.git_auth:Gitolite2Auth'), 'gitolite3': EntryPoint.parse('gitolite3 = pagure.lib.git_auth:Gitolite3Auth'), 'pagure': EntryPoint.parse('pagure = pagure.lib.git_auth:PagureGitAuth'), 'pagure_authorized_keys': EntryPoint.parse('pagure_authorized_keys = pagure.lib.git_auth:PagureGitAuth'), 'distgit': EntryPoint.parse('distgit = dist_git_auth:DistGitAuth')} 2021-02-16 14:00:37,835 [DEBUG] pagure.lib.git_auth: Found the following installed helpers {'test_auth': EntryPoint.parse('test_auth = pagure.lib.git_auth:GitAuthTestHelper'), 'gitolite2': EntryPoint.parse('gitolite2 = pagure.lib.git_auth:Gitolite2Auth'), 'gitolite3': EntryPoint.parse('gitolite3 = pagure.lib.git_auth:Gitolite3Auth'), 'pagure': EntryPoint.parse('pagure = pagure.lib.git_auth:PagureGitAuth'), 'pagure_authorized_keys': EntryPoint.parse('pagure_authorized_keys = pagure.lib.git_auth:PagureGitAuth'), 'distgit': EntryPoint.parse('distgit = dist_git_auth:DistGitAuth')} 2021-02-16 14:00:37,902 [DEBUG] pagure.lib.git_auth: Returning helper <class 'dist_git_auth.DistGitAuth'> from backend key 'distgit' 2021-02-16 14:00:37,902 [DEBUG] pagure.lib.git_auth: Returning helper <class 'dist_git_auth.DistGitAuth'> from backend key 'distgit' 2021-02-16 14:00:37,918 [DEBUG] pagure.utils: User is a committer 2021-02-16 14:00:37,918 [DEBUG] pagure.utils: User is a committer 2021-02-16 14:00:37,984 [INFO] pagure_auth: Branch refs/heads/latest is unsupported Branch refs/heads/latest is unsupported Denied push for ref 'refs/heads/latest' for user 'merlinm' All changes have been rejected

Attempting to push the PR changes via the git command line using HTTPS protocol gives me pretty much the same error:

Total 0 (delta 0), reused 0 (delta 0)
remote: 2021-02-16 13:53:14,726 [INFO] pagure.lib.git_auth: Looking for backend: distgit
remote: 2021-02-16 13:53:14,726 [INFO] pagure.lib.git_auth: Looking for backend: distgit
remote: 2021-02-16 13:53:14,734 [DEBUG] pagure.lib.git_auth: Found the following installed helpers {'test_auth': EntryPoint.parse('test_auth = pagure.lib.git_auth:GitAuthTestHelper'), 'gitolite2': EntryPoint.parse('gitolite2 = pagure.lib.git_auth:Gitolite2Auth'), 'gitolite3': EntryPoint.parse('gitolite3 = pagure.lib.git_auth:Gitolite3Auth'), 'pagure': EntryPoint.parse('pagure = pagure.lib.git_auth:PagureGitAuth'), 'pagure_authorized_keys': EntryPoint.parse('pagure_authorized_keys = pagure.lib.git_auth:PagureGitAuth'), 'distgit': EntryPoint.parse('distgit = dist_git_auth:DistGitAuth')}
remote: 2021-02-16 13:53:14,734 [DEBUG] pagure.lib.git_auth: Found the following installed helpers {'test_auth': EntryPoint.parse('test_auth = pagure.lib.git_auth:GitAuthTestHelper'), 'gitolite2': EntryPoint.parse('gitolite2 = pagure.lib.git_auth:Gitolite2Auth'), 'gitolite3': EntryPoint.parse('gitolite3 = pagure.lib.git_auth:Gitolite3Auth'), 'pagure': EntryPoint.parse('pagure = pagure.lib.git_auth:PagureGitAuth'), 'pagure_authorized_keys': EntryPoint.parse('pagure_authorized_keys = pagure.lib.git_auth:PagureGitAuth'), 'distgit': EntryPoint.parse('distgit = dist_git_auth:DistGitAuth')}
remote: 2021-02-16 13:53:14,802 [DEBUG] pagure.lib.git_auth: Returning helper <class 'dist_git_auth.DistGitAuth'> from backend key 'distgit'
remote: 2021-02-16 13:53:14,802 [DEBUG] pagure.lib.git_auth: Returning helper <class 'dist_git_auth.DistGitAuth'> from backend key 'distgit'
remote: 2021-02-16 13:53:14,817 [DEBUG] pagure.utils: User is a committer
remote: 2021-02-16 13:53:14,817 [DEBUG] pagure.utils: User is a committer
remote: 2021-02-16 13:53:14,862 [INFO] pagure_auth: Branch refs/heads/latest is unsupported
remote: Branch refs/heads/latest is unsupported
remote: Denied push for ref 'refs/heads/latest' for user 'merlinm'
remote: All changes have been rejected
To https://src.fedoraproject.org/rpms/python-aexpect.git
 ! [remote rejected] latest -> latest (pre-receive hook declined)
error: failed to push some refs to 'https://src.fedoraproject.org/rpms/python-aexpect.git'

Attempting to push the changes via the command line using SSH protocol still results in an error:

Total 0 (delta 0), reused 0 (delta 0)
remote: Branch refs/heads/latest is unsupported
remote: Denied push for ref 'refs/heads/latest' for user 'merlinm'
remote: All changes have been rejected
To ssh://pkgs.fedoraproject.org/rpms/python-aexpect.git
 ! [remote rejected] latest -> latest (pre-receive hook declined)
error: failed to push some refs to 'ssh://merlinm@pkgs.fedoraproject.org/rpms/python-aexpect.git'

Do I have something misconfigured or am I simply doing something wrong, or is there a problem on the back end? Please help.

When do you need this to be done by? (YYYY/MM/DD)


2021/02/19


It looks like this branch reached its EOL on December 1st last year: https://pdc.fedoraproject.org/rest_api/v1/component-branches/?global_component=python-aexpect&type=rpm&name=latest

You may want to open a releng ticket to ask them to update that EOL.

So that's what Branch refs/heads/latest is unsupported means! It's exactly explaining the problem, but it's such a generic sounding message that I didn't comprehend it.

Thanks, @pingou. I opened https://pagure.io/releng/issue/10018

Metadata Update from @merlinm:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata