Hello,
We build packages on OpenSuSE Build Service. The successful builds end up in http://download.opensuse.org/repositories/home:/cmft/
But we want also to be able to selectively install previous versions of our packages (even if they just differ in the "Release" number, which we auto-change with "Release: 1%{?dist}" in the spec file), and unfortunately, the repodata of http://download.opensuse.org/repositories/home:/cmft/ only contains the latest release.
So we tried to create our own local mirror of http://download.opensuse.org/repositories/home:/cmft/ where we do not remove any file and we recreate the repodata info with "createrepo --update".
According to https://en.opensuse.org/openSUSE:Mirror_infrastructure , the OSB home directories can be rsynced publicly from:
rsync.opensuse.org::buildservice-repos/home:/
But if we try it, we find that the home dirs are not there:
~~~ rsync rsync.opensuse.org::buildservice-repos/home:/ (...) rsync: change_dir "/home:" (in buildservice-repos) failed: No such file or directory (2) ~~~
Note that the home dirs can be found here:
rsync ftp5.gwdg.de::pub/opensuse/repositories/home:/cmft/
BUT "ftp5.gwdg.de" mirror seems to update only once or a few times a day, and when it updates, it only fetches the latest build, so we end up missing builds if we sync against this mirror.
So my question is: is there any server where I can find all the successful builds of our packages?
Or... is there any other way to get all the successful builds?
Thanks a lot! Zibi
On Thu, Apr 14, Zbigniew Reszela wrote:
Or... is there any other way to get all the successful builds?
Run 'obs getbinaries --debug --sources' in a (not so thight) loop. Thats the only way to achive what you want.
Olaf
On jeudi, 14 avril 2016 08.50:27 h CEST Zbigniew Reszela wrote:
Hello,
We build packages on OpenSuSE Build Service. The successful builds end up in http://download.opensuse.org/repositories/home:/cmft/
But we want also to be able to selectively install previous versions of our packages (even if they just differ in the "Release" number, which we auto-change with "Release: 1%{?dist}" in the spec file), and unfortunately, the repodata of http://download.opensuse.org/repositories/home:/cmft/ only contains the latest release.
So we tried to create our own local mirror of http://download.opensuse.org/repositories/home:/cmft/ where we do not remove any file and we recreate the repodata info with "createrepo --update".
According to https://en.opensuse.org/openSUSE:Mirror_infrastructure , the OSB home directories can be rsynced publicly from:
rsync.opensuse.org::buildservice-repos/home:/
But if we try it, we find that the home dirs are not there:
rsync rsync.opensuse.org::buildservice-repos/home:/ (...) rsync: change_dir "/home:" (in buildservice-repos) failed: No such file or directory (2)
Note that the home dirs can be found here:
rsync ftp5.gwdg.de::pub/opensuse/repositories/home:/cmft/
BUT "ftp5.gwdg.de" mirror seems to update only once or a few times a day, and when it updates, it only fetches the latest build, so we end up missing builds if we sync against this mirror.
So my question is: is there any server where I can find all the successful builds of our packages?
Or... is there any other way to get all the successful builds?
Thanks a lot! Zibi
rsync.o.o is mostly the primary sources for others mirrors. some of them have :home
I think http://ftp5.gwdg.de/pub/opensuse/repositories/home:/ is also available with rsync
Thanks Olaf and Bruno for your answers. Below, some comments:
On Thu, 14 Apr 2016 Olaf Hering wrote:
Run 'obs getbinaries --debug --sources' in a (not so thight) loop.
Thanks. This helped. It is not as nice as if we could access the home via rsync.opensuse.org, but it is ok for us.
On Thu, 14 Apr 2016 Bruno Friedmann wrote:
rsync.o.o is mostly the primary sources for others mirrors.
yes, but... but since it does not export the home dirs, it is useless for our needs
some of them have :home I think http://ftp5.gwdg.de/pub/opensuse/repositories/home:/ is also available with rsync
Right, but as I mentioned in my email, we tried it and it is incomplete (it misses builds)... so it seems that we are out of luck.
Thanks again! Zibi
Hello,
Am Montag, 18. April 2016, 12:54:04 CEST schrieb Zbigniew Reszela:
Thanks Olaf and Bruno for your answers. Below, some comments:
On Thu, 14 Apr 2016 Olaf Hering wrote:
Run 'obs getbinaries --debug --sources' in a (not so thight) loop.
Thanks. This helped. It is not as nice as if we could access the home via rsync.opensuse.org, but it is ok for us.
Maybe you should first check if a new build was done using osc jobhistory -l1 openSUSE_Factory x86_64 and only run osc getbinaries if there are new ones. I'd guess that this saves some load on the buildservice.
Regards,
Christian Boltz
Christian Boltz opensuse@cboltz.de writes:
Maybe you should first check if a new build was done using osc jobhistory -l1 openSUSE_Factory x86_64
Or buildhist, as jobhist also lists failed builds.
Andreas.