openSUSE / obs-build

OBS build script, can be used with OBS or stand alone
GNU General Public License v2.0
132 stars 183 forks source link

Remote assets and scm bridge not working in IBS #866

Closed jfehlig closed 1 year ago

jfehlig commented 2 years ago

I'm using scm bridge and remote assets with the following project

https://build.suse.de/package/show/home:jfehlig:gitlab-ci/libvirt

<scmsync>https://gitlab.suse.de/jfehlig/libvirt-rpm.git#v8.0.0-sle15sp4</scmsync>

The spec file in libvirt-rpm.git contains

#!RemoteAssetUrl: git+https://gitlab.suse.de/virtualization/libvirt.git#v8.0.0-sle15sp4

Triggering a remote run of the service eventually fails

osc service rr home:jfehlig:gitlab-ci/libvirt ok osc service wait home:jfehlig:gitlab-ci/libvirt Server returned an error: HTTP Error 400: Bad Request The service for project 'home:jfehlig:gitlab-ci' package 'libvirt' failed git clone failed: No such file or directory

I have a similar test project in OBS that works fine (ignore the build failure, that's my problem)

https://build.opensuse.org/package/show/home:jfehlig:gitlab-ci/libvirt

jfehlig commented 1 year ago

Turns out I had a reference to a submodule in the main libvirt.git repo that could not be retrieved by scm bridge. The submodule was an artifact of previous experiments and once removed, the service completed successfully. Thanks coolo, Adrian, and Rudi for pointing to the source of my self-inflicted pain.