[opensuse-buildservice] Merge request to add support for git_pull source service.
Hello, I have created a git_pull source service to download latest code from git repository to obs server, and tar them if updated. With git_pull service, when you create a package whose code is hosted in git repository, for example, http://gitorious.org/libzip/libzip. You need not create/upload a tar or patch file each time you make a code change. What you just need to do is ? After you creating a package on obs, run -- 1. osc add http://git.gitorious.org/libzip/libzip.git 2. osc ci After you making a code change and a successful git push 3. osc remoteservice <obs_project> libzip Code change for this feature -- 1. osc client support for git_pull http://gitorious.org/opensuse/brookhongs-osc/commit/f344ff882572db6b7b9e2451... 2. git_pull source service http://gitorious.org/opensuse/brookhongs-osc/commit/3e8872b925ef168af1e28080... What is the drawback of this solution? It will create a local git repository on obs server for each package that activates the git_pull service, and this will increase usage of storage on obs server. ---------------- Best Regards, Brook Hong -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi, On 2010-09-20 05:49:15 +0200, brook.hong@nokia.com wrote: > I have created a git_pull source service to download latest code from git repository to obs server, and tar them if updated. > > With git_pull service, when you create a package whose code is hosted in git repository, for example, http://gitorious.org/libzip/libzip. > > You need not create/upload a tar or patch file each time you make a code change. > > What you just need to do is ? > > After you creating a package on obs, run -- > 1. osc add http://git.gitorious.org/libzip/libzip.git > 2. osc ci > After you making a code change and a successful git push > 3. osc remoteservice <obs_project> libzip > > > Code change for this feature -- > 1. osc client support for git_pull > http://gitorious.org/opensuse/brookhongs-osc/commit/f344ff882572db6b7b9e245170d6c80b8cc15b23?diffmode=sidebyside I just had a quick glance at your patch but it looks good so far. Some small remark: - please remove the "do_remoteservice" method from commandline.py (the same functionality is provided by "osc service remoterun") and thus "remote_run_source_services" in core.py isn't needed too Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi, Thanks for review. I'll remove do_remoteservice and remote_run_source_services, and push into. Since git_pull service is another package different from osc, and there is no repository on gitorious for such service plugins like download_url and verify_services, shall we create one for them though they just contain a shell script? ---------------- Best Regards, Brook Hong >-----Original Message----- >From: ext Marcus Hüwe [mailto:suse-tux@gmx.de] >Sent: Monday, September 20, 2010 3:51 PM >To: opensuse-buildservice@opensuse.org >Subject: Re: [opensuse-buildservice] Merge request to add support for >git_pull source service. > >Hi, > >On 2010-09-20 05:49:15 +0200, brook.hong@nokia.com wrote: >> I have created a git_pull source service to download latest code from >git repository to obs server, and tar them if updated. >> >> With git_pull service, when you create a package whose code is hosted >in git repository, for example, http://gitorious.org/libzip/libzip. >> >> You need not create/upload a tar or patch file each time you make a >code change. >> >> What you just need to do is ? >> >> After you creating a package on obs, run -- >> 1. osc add http://git.gitorious.org/libzip/libzip.git >> 2. osc ci >> After you making a code change and a successful git push >> 3. osc remoteservice <obs_project> libzip >> >> >> Code change for this feature -- >> 1. osc client support for git_pull >> http://gitorious.org/opensuse/brookhongs- >osc/commit/f344ff882572db6b7b9e245170d6c80b8cc15b23?diffmode=sidebyside >I just had a quick glance at your patch but it looks good so far. >Some small remark: >- please remove the "do_remoteservice" method from commandline.py > (the same functionality is provided by "osc service remoterun") > and thus "remote_run_source_services" in core.py isn't needed too > > >Marcus >-- >To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org >For additional commands, e-mail: opensuse-buildservice+help@opensuse.org -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Am Montag, 20. September 2010, 10:31:25 schrieb brook.hong@nokia.com:
Hi,
Thanks for review.
I'll remove do_remoteservice and remote_run_source_services, and push into.
Since git_pull service is another package different from osc, and there is no repository on gitorious for such service plugins like download_url and verify_services, shall we create one for them though they just contain a shell script?
Since services are usually just a package they get currently maintained direct in OBS. Have a look in openSUSE:Tools and openSUSE:Tools:Unstable. (see my other mail) There was no need yet for me to have a git for them. bye adrian -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Am Montag, 20. September 2010, 05:49:15 schrieb brook.hong@nokia.com:
Hello,
I have created a git_pull source service to download latest code from git repository to obs server, and tar them if updated.
There is already a bit more generic obs-service-tar_scm for git and svn: https://build.opensuse.org/package/show?package=obs-service-tar_scm&project=openSUSE:Tools:Unstable Sorry, I missed to blog/report/video that one. Further new services are -recompress for (re)compress files, like the tar files generated by tar_scm -set_version for adapting the .spec and .dsc files to new version -extract_file for example to use a .spec file out of the tar You can see here an example, where they are in action: https://build.opensuse.org/package/show?package=build&project=openSUSE%3ATools%3AUnstable This means a "osc service remoterun" is enough to update the package to current version. sorry for not reporting about this before. I still plan to post a video about this. (Just want to fix one bug before). bye adrian -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (3)
-
Adrian Schröter
-
brook.hong@nokia.com
-
Marcus Hüwe