Sunday, 2021-02-28

*** tosky has quit IRC00:57
*** evrardjp has quit IRC05:33
*** evrardjp has joined #zuul05:33
*** sshnaidm|pto is now known as sshnaidm08:43
*** zbr0 has joined #zuul09:18
*** zbr has quit IRC09:21
*** zbr0 is now known as zbr09:21
*** zbr3 has joined #zuul09:27
*** zbr has quit IRC09:29
*** zbr3 is now known as zbr09:29
openstackgerritAlbin Vass proposed zuul/zuul master: Add messages to make the job setup more transparent  https://review.opendev.org/c/zuul/zuul/+/77788509:58
avasstobiash: how about that? ^09:58
*** zbr has quit IRC10:20
*** zbr has joined #zuul10:22
*** jangutter has quit IRC10:40
*** jangutter has joined #zuul10:41
*** zbr7 has joined #zuul10:41
*** zbr has quit IRC10:43
*** zbr7 is now known as zbr10:43
*** zbr4 has joined #zuul11:06
*** zbr has quit IRC11:08
*** zbr4 is now known as zbr11:08
avasscorvus: I'm starting to think that having non-overrideable variables would be nice, I know there's executor.variables but something like zuul-cache-s3 could potentially need different variables per tenant11:08
avassdo variables from secrets have higher precendece than anything else?11:13
*** tosky has joined #zuul11:53
*** bodgix has quit IRC13:30
*** jangutter has quit IRC13:33
*** jangutter has joined #zuul13:33
*** bodgix has joined #zuul13:34
openstackgerritAlbin Vass proposed zuul/zuul-jobs master: Zuul Cache role with s3 implementation.  https://review.opendev.org/c/zuul/zuul-jobs/+/76480813:41
openstackgerritAlbin Vass proposed zuul/zuul-jobs master: Zuul Cache role with s3 implementation.  https://review.opendev.org/c/zuul/zuul-jobs/+/76480813:44
openstackgerritAlbin Vass proposed zuul/zuul-jobs master: Zuul Cache role with s3 implementation.  https://review.opendev.org/c/zuul/zuul-jobs/+/76480813:52
*** jangutter has quit IRC13:54
*** jangutter has joined #zuul13:55
openstackgerritAlbin Vass proposed zuul/zuul-jobs master: Zuul Cache role with s3 implementation.  https://review.opendev.org/c/zuul/zuul-jobs/+/76480814:14
*** jangutter has quit IRC14:16
*** jangutter has joined #zuul14:16
openstackgerritAlbin Vass proposed zuul/zuul master: Reduce amount of 'Waiting on logger' messages sent  https://review.opendev.org/c/zuul/zuul/+/77788714:19
openstackgerritAlbin Vass proposed zuul/zuul-jobs master: Zuul Cache role with s3 implementation.  https://review.opendev.org/c/zuul/zuul-jobs/+/76480814:23
openstackgerritAlbin Vass proposed zuul/zuul-jobs master: Zuul Cache role with s3 implementation.  https://review.opendev.org/c/zuul/zuul-jobs/+/76480814:27
openstackgerritAlbin Vass proposed zuul/zuul-jobs master: Zuul Cache role with s3 implementation.  https://review.opendev.org/c/zuul/zuul-jobs/+/76480814:40
avassinteresting, ansible really wants to scrub the AWSAccessKeyId from those presigned urls so the urls break.15:08
corvusavass: close -- job extra vars can override secrets: https://zuul-ci.org/docs/zuul/reference/jobs.html#variables15:12
avasscorvus: ah, I was looking for that in the 'Configuration syntax' page :)15:35
avassadding something like a 'final-vars' that has a precedence between site-vars and extra-vars could in that case be useful to have15:36
sassynhi everyone16:30
avasssassyn: hey16:34
sassynHi avass17:00
sassynHow are you?17:00
sassynquick question - I have setup zuul and all is working as expected. I have a REPO X which is configured as untrusted project.17:00
sassynin REPO X there is a .zuul.yaml file in the master branch.17:01
sassynDoing a commit fire up the check and gate jobs and my ansible are running as expcted.17:01
sassynNow I have put in branch FOO a new .zuul.yaml file. this file is not the same as the .zuui.yaml in the MASTER. However when I fire change to the FOO BRANCH the CHECK AND GATE do nothing.17:02
sassynlooking in the log of the scheduler17:03
sassynI see the change bla bla bla did not merge because it did not have any jobs configured.17:04
sassynWhat do I miss?17:04
sassynany idea? thanks17:04
fungisassyn: did you include explicit branch matchers in the .zuui.yaml on the new branch?17:05
fungier, .zuul.yaml17:06
sassynno17:06
sassynhi fungi :-)17:06
sassynhow are you?17:06
fungidoing well!17:06
sassyngood to hear.... Here in israel we started to get vaccine for the covid.17:06
fungido the jobs you added on that branch have parents in another repository with explicit branch matchers? or parents in a branched repository which don't have a matching branch?17:07
sassynthe job in the FOO branch are all belongs to a REPO name ZuulJobs. all the ansible playbook are presented there. in the main branch of ZuulJobs.17:09
sassynso foo as a .zuul.yaml that looks like this : -project: gate: jobs: - my_job_from_zuul_jobs_repo_in_the_main_branch17:10
sassynfoo is a branch in the REPO X. the job runs OK in the MAIN branch of REPO X17:11
fungidoes the ZuulJobs repo have additional branches too, or just a default branch?17:17
sassynjust default branch17:18
fungidouble-check that zuul isn't complaining about any configuration errors. that's an easy way to cause it not to load configuration from a project/branch17:19
sassynso to do smart-reconfigure?17:20
fungisassyn: zuul-web will show a "bell" icon in the top-right corner if there are configuration errors for the tenant you've selected17:21
sassynthe gui doesn't point out for any configuration issue (the yellow mark on the gui doesn't have the bell17:21
fungisassyn: also there's this pipeline setting you can try, though i don't know if it will help if nothing is being reported: https://zuul-ci.org/docs/zuul/reference/project_def.html#attr-project.%3Cpipeline%3E.debug17:21
fungisassyn: and worst case, you can look in the scheduler's debug logs where it should explain every enqueuing decision it made about a particular event17:22
sassynI'm checking the debug17:26
sassynlog17:26
sassynfungi - can I share with u the job log?17:27
sassynin pastebin?17:28
fungisassyn: sure, you may want to work out the event [e: ...] for your commit push and filter by that first, since all the relevant lines should be tagged with it17:34
sassynpastebin.pl/view/f8606d8117:38
sassynhttps://pastebin.pl/view/f8606d8117:38
sassynmyrepo  is the name the of the repo17:38
sassynv0.13.0  is the branch17:39
sassyn58407/1 is my change in gerrit17:40
*** cloudnull has quit IRC17:48
*** cloudnull has joined #zuul17:48
sassynline 91  report the issue17:51
fungisassyn: and you expected zuul_myrepo_build to run for it, i suppose?18:00
sassynyes18:01
fungiit looks like it has variants for BranchMatcher:master and BranchMatcher:staging (the log also tells you which locations it found those variants defined at)18:02
sassynwhat does it mean?18:02
fungii expect the problem is that you have zuul_myrepo_build defined in a branched repository, and you're wanting to trigger it from another repository with different branch names than the repository in which that job was defined18:03
fungisince your Zuul repository where zuul_myrepo_build is defined has multiple branches (named master and staging) it's assumed those should only match events in other projects for branches with the same names18:04
sassynso Zuul repo should include also the branch for the REPO X.18:05
fungiso if myrepo had a staging branch and 58407 was proposed targeting that branch, then it would match the zuul_myrepo_build variant defined in the staging branch of Zuul18:05
fungior if the Zuul repo had a variant of that job in a v0.13.0 branch, yes18:05
fungiusually it's easiest when defining jobs you want used in other projects to either do that in a single-branch repository, or in a repository with branch names which match the banches for the repositories which want to run the job18:06
fungiif the Zuul repository had no staging branch, only a default master branch, then the definition of zuul_myrepo_build in it would be assumed to match any branch of other projects18:07
fungithere are workarounds however18:07
sassynso the ZUUL REPO which holds all the Zuul jobs and playbook should basically have a branch name Y,Z,M ..... so If a commit a code to REPO Y under branch Y, where the .zuul.yaml is using a Job myjob then it is expeted that  ZULL REPO will have brnach Y as well.18:08
fungifor example in myrepo you could specifically say what fallback branch you wanted to get job definitions from in other repositories18:08
sassyni can't delete the staging branch from Zuul repo18:09
fungisassyn: in the simple case, yes. as i said, there are ways for you to specify what branch you meant, so you could map myrepo:v0.13.0 to Zuul:master that way, for example18:09
fungisassyn: https://zuul-ci.org/docs/zuul/reference/job_def.html#attr-job.required-projects.override-checkout18:13
fungi"This value is also used to help select which variants of a job to run. If override-checkout is set, then Zuul will use this value instead of the branch of the item being tested when collecting any jobs to run which are defined in this project."18:13
sassynfungi thank u18:15
sassynI will check this out18:15
sassynadd one more beer to the bill :-)18:15
sassynand I remove the Zuul branch staging18:16
sassynlet's check it out first18:16
sassynnow it is single branch18:16
fungisassyn: also in this case, pipeline.debug would have reported those decisions in a comment on that change, so would have been an alternative to digging in the scheduler debug log18:23
*** jangutter has quit IRC19:03
*** jangutter has joined #zuul19:04
*** cloudnull7 has joined #zuul19:13
*** cloudnull has quit IRC19:13
*** cloudnull7 is now known as cloudnull19:13
*** cloudnull has quit IRC20:01
openstackgerritGuillaume Chauvel proposed zuul/zuul master: Gitlab: raise MergeFailure exception to retry a failing merge  https://review.opendev.org/c/zuul/zuul/+/77716923:08
*** ikhan has quit IRC23:50

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!