DevHeads.net

git push fails for new packages

$ fedpkg clone nuvola-app-mixcloud; cd nuvola-app-mixcloud
$ fedpkg import ~/rpmbuild/SRPMS/nuvola-app-mixcloud-3.2-3.fc26.src.rpm
$ git commit -m "Initial import (#1478067)."

$[martin@f26 nuvola-app-mixcloud]$ git push -v
Pushing to ssh:// ... at pkgs dot fedoraproject.org/rpms/nuvola-app-mixcloud
FATAL: W any rpms/nuvola-app-mixcloud martinkg DENIED by fallthru
(or you mis-spelled the reponame)
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Comments

Re: git push fails for new packages

By Pierre-Yves at 08/10/2017 - 08:35

On Thu, Aug 10, 2017 at 12:42:26PM -0000, Martin Gansser wrote:
It looks like there was a glitch and the gitolite configuration file had not
been updated after Ralph created the project.

I've updated the configuration and I'm re-compiling it so in a few minutes this
should start working.

Sorry for the inconvenience,
Pierre

Re: git push fails for new packages

By Pierre-Yves at 08/10/2017 - 08:45

On Thu, Aug 10, 2017 at 03:35:13PM +0200, Pierre-Yves Chibon wrote:
You should be good now :)

Pierre

Re: git push fails for new packages

By Martin Gansser at 08/10/2017 - 11:50

ok git push works now, but ... unknown branches.

[martin@f26 nuvola-app-mixcloud]$ git push
Everything up-to-date
[martin@f26 nuvola-app-mixcloud]$ fedpkg build --nowait
/usr/lib/python2.7/site-packages/fedora/client/bodhi.py:48: DeprecationWarning: fedora.client.bodhi has been deprecated. Please use bodhi.client.bindings instead.
DeprecationWarning)
Building nuvola-app-mixcloud-3.2-3.fc27 for rawhide
Created task: 21149744
Task info: <a href="https://koji.fedoraproject.org/koji/taskinfo?taskID=21149744" title="https://koji.fedoraproject.org/koji/taskinfo?taskID=21149744">https://koji.fedoraproject.org/koji/taskinfo?taskID=21149744</a>

Result on koji:
BuildError: package nuvola-app-mixcloud not in list for tag f27-pending

and fo f26:
[martin@f26 nuvola-app-mixcloud]$ fedpkg switch-branch f26; git merge master; fedpkg push; fedpkg build --nowait
/usr/lib/python2.7/site-packages/fedora/client/bodhi.py:48: DeprecationWarning: fedora.client.bodhi has been deprecated. Please use bodhi.client.bindings instead.
DeprecationWarning)
Could not execute switch_branch: Unknown remote branch origin/f26

and for f25:
[martin@f26 nuvola-app-mixcloud]$ fedpkg switch-branch f25; git merge master; fedpkg push; fedpkg build --nowait
/usr/lib/python2.7/site-packages/fedora/client/bodhi.py:48: DeprecationWarning: fedora.client.bodhi has been deprecated. Please use bodhi.client.bindings instead.
DeprecationWarning)
Could not execute switch_branch: Unknown remote branch origin/f25

Re: git push fails for new packages

By Lukas Berk at 08/10/2017 - 15:30

Hi,

"Martin Gansser" <martin. ... at gmail dot com> writes:
I'm seeing a similar error now for uom-se and it's initial build.

Cheers,

Lukas

Re: git push fails for new packages

By =?utf-8?q?Samue... at 08/11/2017 - 03:51

In addition to new package not building because of tag, by following the
<a href="https://fedoraproject.org/wiki/Join_the_package_collection_maintainers#Import.2C_commit.2C_and_build_your_package" title="https://fedoraproject.org/wiki/Join_the_package_collection_maintainers#Import.2C_commit.2C_and_build_your_package">https://fedoraproject.org/wiki/Join_the_package_collection_maintainers#I...</a>

On step:
fedpkg switch-branch BRANCH

Gives:
$ fedpkg switch-branch f26
/usr/lib/python2.7/site-packages/fedora/client/bodhi.py:48: DeprecationWarning: fedora.client.bodhi has been deprecated. Please use bodhi.client.bindings instead.
DeprecationWarning)
Could not execute switch_branch: Unknown remote branch origin/f26

Despise that branch have been approved, other branches seems that had been deleted somehow in the process.

Re: git push fails for new packages

By Martin Gansser at 08/11/2017 - 05:17

for f27: This is a known problem see: <a href="https://pagure.io/fedora-infrastructure/issue/6236" title="https://pagure.io/fedora-infrastructure/issue/6236">https://pagure.io/fedora-infrastructure/issue/6236</a>
They working on it right now.

f26 works for me now with:
$ git checkout -b f26; git push --set-upstream origin f26; fedpkg build --nowait

on f25 branch: I don't know what happens.

$ git push --set-upstream origin f25
Total 0 (delta 0), reused 0 (delta 0)
remote: FATAL: C refs/heads/f25 rpms/nuvola-app-mixcloud martinkg DENIED by refs/heads/f[0-9][0-9]
remote: error: hook declined to update refs/heads/f25
To ssh://pkgs.fedoraproject.org/rpms/nuvola-app-mixcloud
! [remote rejected] f25 -> f25 (hook declined)
error: failed to push some refs to 'ssh:// ... at pkgs dot fedoraproject.org/rpms/nuvola-app-mixcloud'

Re: git push fails for new packages

By =?utf-8?q?Samue... at 08/12/2017 - 06:07

Used your workaround, I can't build the package now in koji with a message:

BuildError: package hd-idle not in list for tag f26-updates-candidate

Same with other branches other then master.

Re: git push fails for new packages

By Pierre-Yves at 08/11/2017 - 09:57

On Fri, Aug 11, 2017 at 10:17:59AM -0000, Martin Gansser wrote:
Basically, in order to prevent people from creating an epel8 branches we only
apply the same restrictions as before (no fXX or elXX or epelXX or olpcXX
branches that are not whitelisted.
But the script that whitelist these branches but putting them into PDC doesn't
ask pagure to refresh its config, so PDC is up to date but not pagure, until
that project's config gets updated.

We're working on allowing the script run by the admin to trigger a refresh of
the config of a certain project so that right after creating the branch in pdc
it can ask pagure to refresh the corresponding config.
In the mean time admins have a way to manually ask that a projet be refreshed so
feel free to reach out if needed.

Sorry for the inconvenience,

Pierre

Re: git push fails for new packages

By Wart at 08/11/2017 - 15:52

On 08/11/2017 09:57 AM, Pierre-Yves Chibon wrote:
I'm getting a similar error when trying to create the epel7 branch for
tcl-tclnagios:

$ git push -v --set-upstream origin epel7
Pushing to ssh:// ... at pkgs dot fedoraproject.org/rpms/tcl-tclnagios
Total 0 (delta 0), reused 0 (delta 0)
remote: FATAL: C refs/heads/epel7 rpms/tcl-tclnagios wart DENIED by
refs/heads/epel[0-9]
remote: error: hook declined to update refs/heads/epel7
To ssh:// ... at pkgs dot fedoraproject.org/rpms/tcl-tclnagios
! [remote rejected] epel7 -> epel7 (hook declined)
error: failed to push some refs to
'ssh:// ... at pkgs dot fedoraproject.org/rpms/tcl-tclnagios'

Can I request a refresh?

--Wart

Re: git push fails for new packages

By Pierre-Yves at 08/13/2017 - 12:16

On Fri, Aug 11, 2017 at 03:52:59PM -0500, Wart wrote:
Refresh in progress, sorry for the delay.

Pierre

Re: git push fails for new packages

By Martin Gansser at 08/14/2017 - 12:48

how long will it take until I can push new packages again for f26 and f25 ?

[martin@f26 nuvola-app-8tracks]$ git checkout -b f26; git push --set-upstream origin f26
Switched to a new branch 'f26'
Total 0 (delta 0), reused 0 (delta 0)
remote: FATAL: C refs/heads/f26 rpms/nuvola-app-8tracks martinkg DENIED by refs/heads/f[0-9][0-9]
remote: error: hook declined to update refs/heads/f26
To ssh://pkgs.fedoraproject.org/rpms/nuvola-app-8tracks
! [remote rejected] f26 -> f26 (hook declined)
error: failed to push some refs to 'ssh:// ... at pkgs dot fedoraproject.org/rpms/nuvola-app-8tracks'

Re: git push fails for new packages

By Martin Gansser at 08/16/2017 - 13:18

i still get the message koji not in list errors, some works... some doesn't ...

BuildError: package nuvola-app-mixcloud not in list for tag f25-updates-candidate
BuildError: package nuvola-app-google-play-music not in list for tag f26-updates-candidate
BuildError: package nuvola-app-google-play-music not in list for tag f25-updates-candidate

Re: git push fails for new packages

By Kevin Fenzi at 08/16/2017 - 13:31

On 08/16/2017 11:18 AM, Martin Gansser wrote:
The script that syncs this got stuck this morning. :(

It's running again now... it takes about 30min or so to run, so things
should be all updated after that.

Additionally, we are replacing this script with one that listens to
fedmsgs and on new branches just adds those, so hopefully after today
they should get added right after the branch.

The slow script will still run once a day to make sure no requests were
dropped.

kevin

Re: git push fails for new packages

By Chenxiong Qi at 08/17/2017 - 02:18

On Wed, 2017-08-16 at 11:31 -0700, Kevin Fenzi wrote:
I just forked fedpkg minutes ago when writing this mail. I also can't
push to my forked repo.

I got these fetch and push urls.

mydev ssh://pkgs.fedoraproject.org/forks/cqi/rpms/fedpkg.git
(fetch)
mydev ssh://pkgs.fedoraproject.org/forks/cqi/rpms/fedpkg.git
(push)

and got similar error reported originally in this thread,

FATAL: W any forks/cqi/rpms/fedpkg cqi DENIED by fallthru
(or you mis-spelled the reponame)
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Re: git push fails for new packages

By Athos Ribeiro at 08/17/2017 - 10:10

On Thu, Aug 17, 2017 at 03:18:54PM +0800, Chenxiong Qi wrote:
I am getting the same error while trying to push to a repository created
this morning.

$ git push origin master
FATAL: W any rpms/golang-github-shogo82148-go-shuffle athoscr DENIED by fallthru
(or you mis-spelled the reponame)
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Re: git push fails for new packages

By Pierre-Yves at 08/17/2017 - 10:17

On Thu, Aug 17, 2017 at 12:10:04PM -0300, Athos Ribeiro wrote:
Fix running, it looks like the tool processing the requests is still missing one
API call :)

Pierre

Re: git push fails for new packages

By Chenxiong Qi at 08/17/2017 - 02:27

On Thu, 2017-08-17 at 15:18 +0800, Chenxiong Qi wrote:
It works now. Thanks.

Re: git push fails for new packages

By Christoph Junghans at 08/13/2017 - 13:23

2017-08-13 11:16 GMT-06:00 Pierre-Yves Chibon < ... at pingoured dot fr>:
Christoph