When running scratch-build from fork centpkg always fails, unlike fedpkg/rhpkg. I tried to pass --release c9s , but that doesn't change anything. Source should be uploaded correctly to lookaside cache through "centpkg new-sources".
--release c9s
$ rpm -qa centpkg centpkg-0.6.3-1.fc33.noarch $ centpkg scratch-build --srpm error: Bad source: /home/ondrapohorelsky/centpkg/rpms/git-lfs/git-lfs-v2.13.3.tar.gz: No such file or directory Could not execute scratch_build: Failed to execute command. $ centpkg scratch-build Building git-lfs-2.13.3-1.el9 for c9s-candidate Created task: 248921 Task info: https://kojihub.stream.rdu2.redhat.com/koji/taskinfo?taskID=248921 Watching tasks (this may be safely interrupted)... 248921 build (c9s-candidate, /redhat/centos-stream/git@gitlab.com:opohorel/git-lfs:70591f7040f777cac2d6bb713395c45b2e31725c): free Later this task fails with: BuildError: gitlab.com:/redhat/centos-stream/git@gitlab.com:opohorel/git-lfs is not in the list of allowed SCMs
I digged a bit deeper and tried to make a few scratch builds in my git fork.
Scratch build from SCM works only when branch name is c9s or other that is compliant with branch name rules as @lrossett pointed out in #19.
With --srpm flag the builds work for git, no matter the branch name. This is not a case with git-lfs. To me this seems like a problem related to lookaside cache upload, because source tarball of git-lfs was uploaded with $centpkg --release c9s new-sources and not synced from F34 as git tarball was.
--srpm
$centpkg --release c9s new-sources
This also affects $centpkg build
$centpkg build
I've merged new update of git-lfs into c9s branch and submitted build. The build failed with:
error: Bad source: /builddir/build/SOURCES/git-lfs-v2.13.3.tar.gz: No such file or directory
https://kojihub.stream.rdu2.redhat.com/koji/taskinfo?taskID=252214
I figured that issue with $centpkg build and Bad source error message was caused by my mistake. I forgot to add 'v' into the tar name, which caused this issue. I apologize for a misleading comments.
At the same time issue with scratch-build ran from fork persists even after centpkg update, so this issue is still valid.
$rpm -qa centpkg centpkg-0.6.4-1.fc33.noarch $centpkg scratch-build Building git-lfs-2.13.3-2.el9 for c9s-candidate Created task: 260173 Task info: https://kojihub.stream.rdu2.redhat.com/koji/taskinfo?taskID=260173 Watching tasks (this may be safely interrupted)... 260173 build (c9s-candidate, /redhat/centos-stream/git@gitlab.com:opohorel/git-lfs:a0f15dae43945dff83902c999f92b7bec2678516): free 260173 build (c9s-candidate, /redhat/centos-stream/git@gitlab.com:opohorel/git-lfs:a0f15dae43945dff83902c999f92b7bec2678516): free -> FAILED: BuildError: gitlab.com:/redhat/centos-stream/git@gitlab.com:opohorel/git-lfs is not in the list of allowed SCMs 0 free 0 open 0 done 1 failed 260174 buildSRPMFromSCM (/redhat/centos-stream/git@gitlab.com:opohorel/git-lfs:a0f15dae43945dff83902c999f92b7bec2678516): FAILED: BuildError: gitlab.com:/redhat/centos-stream/git@gitlab.com:opohorel/git-lfs is not in the list of allowed SCMs
Metadata Update from @tdawson: - Issue tagged with: Bug
Log in to comment on this ticket.