[yast-devel] Yast CI jobs switched to webhooks
Hi all, I have switched all yast-*-master jobs at https://ci.opensuse.org to use github webhooks instead of active polling. Advantages: 1) Faster build start - the polling had 5 minutes interval, it could take up to 5 minutes to start the build after a change at the Github repository. Now it should start (almost) immediately. 2) Less network traffic and decreased load for the Github servers (5 minutes polling interval sounds good, but with about a hundred YaST repositories we did a ping to Github roughly every 3 seconds and in vast majority cases is no change in the repo.) It should work without any problem, I have already used that is some repositories for some time. But if you find a problem with the new setup just ping me. -- Ladislav Slezák Appliance department / YaST Developer Lihovarská 1060/12 190 00 Prague 9 / Czech Republic tel: +420 284 028 960 lslezak@suse.com SUSE -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
Dne 7.3.2016 v 10:00 Ladislav Slezak napsal(a):
Hi all,
I have switched all yast-*-master jobs at https://ci.opensuse.org to use github webhooks instead of active polling.
BTW if you are interested in scripting GitHub and Jenkins access check the script [1] which I used for adding webhooks at GitHub and reconfiguring the Jenkins jobs. It uses "octokit" Rubygem for accessing GitHub API and "jenkins_api_client" gem for Jenkins. And for parsing/modifying the job config in XML format it uses REXML. BTW could we create a separate "yast" Git repo for such scripts? IMHO (ab)using yast2-devtools is not a good idea... [1] https://github.com/lslezak/scripts/blob/master/github/create_hooks.rb -- Ladislav Slezák Appliance department / YaST Developer Lihovarská 1060/12 190 00 Prague 9 / Czech Republic tel: +420 284 028 960 lslezak@suse.com SUSE -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
On Mon, 7 Mar 2016 10:13:55 +0100 Ladislav Slezak <lslezak@suse.cz> wrote:
Dne 7.3.2016 v 10:00 Ladislav Slezak napsal(a):
Hi all,
I have switched all yast-*-master jobs at https://ci.opensuse.org to use github webhooks instead of active polling.
BTW if you are interested in scripting GitHub and Jenkins access check the script [1] which I used for adding webhooks at GitHub and reconfiguring the Jenkins jobs.
It uses "octokit" Rubygem for accessing GitHub API and "jenkins_api_client" gem for Jenkins. And for parsing/modifying the job config in XML format it uses REXML.
Nice, pull request reminder use pure json api without help, so step forward and for jenkins access I also use REXML, so maybe sense.
BTW could we create a separate "yast" Git repo for such scripts? IMHO (ab)using yast2-devtools is not a good idea...
yast2-devtools have part jenkins tools that are not distributed and I think fit this use case. I try to keep all useful tools in one place, otherwise people have problem to find it. Josef
[1] https://github.com/lslezak/scripts/blob/master/github/create_hooks.rb
--
Ladislav Slezák Appliance department / YaST Developer Lihovarská 1060/12 190 00 Prague 9 / Czech Republic tel: +420 284 028 960 lslezak@suse.com SUSE
-- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
Dne 7.3.2016 v 10:30 Josef Reidinger napsal(a): [...]
BTW could we create a separate "yast" Git repo for such scripts? IMHO (ab)using yast2-devtools is not a good idea...
yast2-devtools have part jenkins tools that are not distributed and I think fit this use case.
Um, the scripts are still part of the source tarball... But that's not a problem, the problem is that any change in these scripts triggers complete rebuild in YaST:Head OBS repo.
I try to keep all useful tools in one place, otherwise people have problem to find it.
We can add a link to README.md. I still think that a separate repo is a better place. We can discuss it at the daily call... -- Ladislav Slezák Appliance department / YaST Developer Lihovarská 1060/12 190 00 Prague 9 / Czech Republic tel: +420 284 028 960 lslezak@suse.com SUSE -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
participants (2)
-
Josef Reidinger
-
Ladislav Slezak