Saturday, 2018-06-23

pabelangerquestion about periodic pipeline in zuulv3, when a timer trigger happens, does ever branch of ever project get enqueued into the pipeline for zuul to look for configuration? I just notice 3100 jobs created in rdoproject, and trying to understand what is happening00:12
pabelangerI admit, I haven't look at zuul.openstack.org to see what happens00:13
clarkbI think its completely branchless00:13
pabelangeryah, I am struggling to figure out what is happening at https://review.rdoproject.org/zuul3/status.html00:13
clarkbyou basically can an up to date repo wtih every branch at current HEAD but you don't get an event for every branch, instead its on event that then triggers the jobs youhave listed under periodic00:14
pabelangerbut, I don't have access to zuul debug.ogs00:14
pabelangerlogs*00:14
clarkbis it possible you have 3100 periodic jobs defined?00:14
pabelangerno, I don't think we have any defined right now00:15
pabelangerwe'll have some next week, once we migrate the remaining jobs, but can't see any projects with it configured00:15
pabelangerI'll have to work with tristanC next week to see what is happening00:16
pabelangerokay, we do have some periodic jobs00:18
pabelangerlet me look at configuration00:18
pabelangeryah, I'll need to poke at logs, because a project (openstack/octavia) was enqueued 6 times for some reason00:21
pabelangerrunning the same jobs00:21
pabelangerwhich is the same amount of branches that project has: https://review.rdoproject.org/r/#/admin/projects/openstack/octavia,branches00:22
clarkbpabelanger: where can I look at that repo?00:23
pabelangerclarkb: you mean https://review.rdoproject.org/r/gitweb?p=openstack%2Foctavia.git;a=shortlog;h=HEAD00:24
pabelangeror for zuul configuration00:25
clarkbpabelanger: the zuul config00:27
pabelangerclarkb: https://review.rdoproject.org/r/gitweb?p=config.git;a=blob;f=zuul.d/projects.yaml;h=40495a491ad30dc20dadab0703a7e31bdf9f463a;hb=HEAD00:27
pabelangerand https://review.rdoproject.org/r/gitweb?p=rdo-jobs.git;a=tree;f=zuul.d;h=ab48e50dd2935c222cd87d6f650df9042a008987;hb=HEAD is where untrusted config is00:28
pabelangerso legacy jobs / legacy project-templates00:29
clarkbI don't see where the job is defined00:32
pabelangerhttps://review.rdoproject.org/r/gitweb?p=config.git;a=blob;f=zuul.d/projects.yaml;h=40495a491ad30dc20dadab0703a7e31bdf9f463a;hb=HEAD#l347900:32
pabelangeris the job that is running in periodic now00:32
clarkbthat is where the job is in the pipeline but where is that job00:33
pabelangerhttps://review.rdoproject.org/r/gitweb?p=rdo-jobs.git;a=blob;f=zuul.d/zuul-legacy-jobs.yaml;h=280c18797af258945b6f1aef0128434bafc02714;hb=HEAD#l21400:33
pabelangerI'm stumped00:34
clarkbya that all looks fine00:34
pabelangerbut also brain is fried00:34
pabelangerI know SF is patching zuul for some additional things, wonder if this is a result, otherwise, I'm going to see about looking at zuul.o.o and see what happens there00:35
pabelangerbut hopefully tristanC will be able to see in debug logs what is happening00:35
*** tranzemc has quit IRC00:57
tristanCpabelanger: it seems like a standard zuul behavior, it adds a fake timer event to every project01:00
*** tranzemc has joined #zuul01:03
tristanCthough there is a missing "skip merger:cat job" for project using "include: []" configuraiton01:07
*** yolanda_ has joined #zuul01:07
*** yolanda has quit IRC01:08
tristanCclarkb: http://git.zuul-ci.org/cgit/zuul/tree/zuul/driver/timer/__init__.py#n82 does "foreach project; foreach branch; addEvent()"01:18
tristanCand for some reason, this does a merger:cat job, even for project explicitely configured to not include any in repo object01:19
clarkbhrm it must do that so that each branches pipeline config will be considered01:20
clarkbhowever that shouldn't result in 3100 jobs if you don't have jobs configured01:20
tristanCit doesn't, but while the merger:cat job are running, items appears in the status page01:21
tristanCand since we only have one merger, it takes some time to flush01:21
clarkbah01:21
clarkbthen ya I think the fix for that is either have it not consider config if it is told to not load config or increase number of merges if you need to load the config01:21
tristanCclarkb: most project are using "include: []" to skip merger:cat job when scheduler restart or reload01:22
tristanCclarkb: but i think the scheduler handle event needs an extra "if project.include" before doing the merger:cat call for timer event01:23
clarkbthat will prevent any config from being loaded by the projects though01:23
tristanCwhich we want for most projects: https://softwarefactory-project.io/cgit/config/tree/zuul/rdo.yaml#n16601:26
tristanCpabelanger: anyway, pretty sure there is a missing merger:cat job skip somewhere, but as clarkb said, we should also add more merger to speed things up01:28
pabelangergreat, sounds like a plan for next week then! And agree, was going to bring up increasing zuul-merger / zuul-executor next week. Thanks for looking tristanC / clarkb01:33
*** yolanda_ has quit IRC02:46
*** yolanda_ has joined #zuul02:47
*** mhu has joined #zuul03:57
*** _ari_ has joined #zuul03:57
*** pabelanger_ has joined #zuul03:57
*** weshay_ has joined #zuul03:57
*** weshay has quit IRC03:59
*** _ari__ has quit IRC04:00
*** mhu` has quit IRC04:00
*** myoung|off has quit IRC04:00
*** pabelanger has quit IRC04:01
*** myoung has joined #zuul04:02
tobiashI also noticed that it issues a cat job for every branch in every project05:20
tobiashBut I think we may not need them at all because we're doing tenant reconfigs on branch updates anyway so we should have an up to date version of the config at any time05:22
tobiashI noticrd that because one of our projects created a periodic pipeline that triggers every minute...05:23
*** pabelanger_ is now known as pabelanger18:19

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!