Thursday, 2017-08-03

openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Ensure ref-updated jobs run with their ref  https://review.openstack.org/48821600:01
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Fix null ref in github tests  https://review.openstack.org/49025700:01
pabelangerOh, I see the issue now00:01
jeblairjlk: can you take a look at 490257 and verify that's correct?00:01
pabelangerhttp://paste.openstack.org/show/617352/00:01
pabelangerjeblair: ^ do you know why that is? Is that because of shadow jobs?00:02
jeblairpabelanger: oh yeah, you can't inherit from later jobs00:02
pabelangerAh, darn00:02
jlkjeblair: looking00:02
pabelangerjeblair: guess we should revert for now and come up with a new plan00:03
jeblairthat's something i'd like to fix, but is not trivial.  ie, i doubt it'll happen pre-ptg.00:03
pabelangerk00:03
jeblairpabelanger: did zuul +1 the patch to add that?00:04
pabelangerlooking00:04
pabelangerjeblair: no, didn't leave anything00:04
pabelangerso, should see why that was00:05
jeblair++00:05
pabelangerremote:   https://review.openstack.org/490258 Revert "Create publish-openstack-python-tarball trusted job"00:05
pabelangeruntil we land that zuulv3.o.o is down :(00:05
pabelangerlooking at logs now00:05
pabelangerjeblair: looks like dynamic reload worked properly, and project-config isn't in check pipeline so no reason for zuul to +100:07
pabelangerguess we should conf error on that00:08
jeblairpabelanger: oh, well if we don't report on anything, that makes sense.  :)00:08
jeblairpabelanger: should probably add it to check00:08
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Fix github dependent pipeline with merge  https://review.openstack.org/48992500:11
pabelangerjeblair: k00:13
jlkmordred: Well good news, Ansible upstream (jimi) confirmed that Python urllib2 doesn't allow a redirect to file:/// like that.00:23
*** http_GK1wmSU has joined #zuul00:25
*** http_GK1wmSU has left #zuul00:27
jlkmordred: https://github.com/python/cpython/blob/master/Lib/urllib/request.py#L710-L71700:33
pabelangerokay, zuulv3.o.o working again01:22
pabelangernow EOD01:22
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Make timer tests less racy  https://review.openstack.org/49020805:30
*** robcresswell has quit IRC05:41
*** amoralej|off is now known as amoralej07:28
*** robcresswell has joined #zuul07:41
*** hashar has joined #zuul08:12
*** openstackgerrit has quit IRC08:18
*** electrofelix has joined #zuul08:45
tristanCpabelanger: jeblair: it's ok, worst case we just have to touch /etc/lsb-release08:58
tristanCthough tobiash suggested to improve the --ro-bind management by checking if the source file exist in the first place, like it's done L182 for nsswitch.conf08:59
*** hashar has quit IRC09:30
*** hashar has joined #zuul09:32
*** openstackgerrit has joined #zuul10:21
openstackgerritTobias Henkel proposed openstack-infra/zuul feature/zuulv3: Optionally limit github to protected branches  https://review.openstack.org/49013410:21
openstackgerritTobias Henkel proposed openstack-infra/zuul feature/zuulv3: Remove status handling from FakeGithubConnection  https://review.openstack.org/49041310:21
*** jkilpatr has quit IRC10:44
openstackgerritTobias Henkel proposed openstack-infra/zuul feature/zuulv3: Remove status handling from FakeGithubConnection  https://review.openstack.org/49041310:54
*** amoralej is now known as amoralej|lunch11:05
*** jkilpatr has joined #zuul11:17
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Add zuul:var directive and role  https://review.openstack.org/49024611:21
mordredjlk: oh good!12:03
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Prevent execution of locally overridden core modules  https://review.openstack.org/49021612:04
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Allow use of the uri module from localhost  https://review.openstack.org/49021512:04
tobiashmordred: what is rtfd?12:06
*** amoralej|lunch is now known as amoralej12:09
tobiashmordred: I've a comment/question on 49021512:11
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Add some lookup plugin tests  https://review.openstack.org/45439612:12
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Don't ignore inexistent jobs in config  https://review.openstack.org/48875812:13
*** dkranz_ has joined #zuul12:20
mordredtobiash: readthedocs.org - service that builds and hosts python documentation12:25
tobiashtobiash: ah12:25
mordredtobiash: we do this for some of our projects currently: http://git.openstack.org/cgit/openstack-infra/project-config/tree/jenkins/jobs/hooks.yaml12:25
mordredand so I kindof went down a rabbit hole yesterday thinking that we can translate that into a job that doesn't need a node :)12:26
tobiashyay12:26
mordredoh - good point in that comment12:26
mordredI'm working on getting a test written - I'll do that in the next rev12:27
Shrewsfungi: you have made me feel old today, displaying my membership ID among the others in your email from yesterday13:49
Shrewsat least mordred seems a bit older based on that number  :-P13:49
Shrewsooh, and jeblair13:50
tobiashlooks like I can feel pretty young...14:14
fungiShrews: it's a ranking of how imporant everyone is. hence tons of people ahead of me14:20
pabelangermordred: jeblair: so, I am at a lose how to move forward with the publish-openstack-python-tarball now. If we cannot parent to zuul-jobs, we have no way currently for a config-project to access any existing jobs.14:29
jeblairpabelanger: i have two thoughts about that: 1) if we need to be able to forward-parent, i think i may be able to do that with a few days work.  however....14:33
jeblairpabelanger: 2) i'm not sure we actually want to parent popt onto tox-tarball.  i think that may actually be backwards.14:33
jeblairpabelanger: https://etherpad.openstack.org/p/0BO00tBBUi14:34
pabelangerjeblair: there is tox-tarball-post, which handles the sync to executor14:39
* mordred looking14:41
jeblairpabelanger: okay, the current contents of that etherpad are the job hierarchy -- job names in bold, and the roles in italics14:42
jeblairi simplified some things, but you should get the idea14:42
jeblairand it shows the nesting structure14:42
jeblairthe main point is -- by having the publish-openstack-python-tarball (which i'm going to call popt now) last means that we copy the artifacts to tarballs.o.o *before* we fetch them from the host, which obviously won't work.14:43
pabelangerjeblair: ya, that is the rough idea of the job14:43
pabelangerHmm, let me think. because you are missing tox-tarball-post ATM14:44
jeblairpabelanger: no that's represented by "fetch artifacts"14:44
jeblairthat's from tox/tarball-post14:44
jeblair"Collect tarball artifacts." is actually the task name14:44
pabelangerah, did I mess up the order of the post-run14:45
jeblairpabelanger: no, you can't change that because it's inherited14:45
jeblairso what i'm saying is this is not the best inheritance structure for this sort of thing14:45
pabelangerRight, I was assuming the parent post-run would run before openstack-python-tarball post-run14:46
jeblairpublishing an artifact is *more fundamental* than building it, so it should be earlier in the hierarchy (if one were to use inheritance)14:46
jeblairpabelanger: no, they nest14:46
jeblairit's possible we're overusing inheritance a bit here14:46
jeblairand instead we should just make a new job that invokes the same roles14:47
pabelangerYa, then the job isn't designed properly14:47
mordredyah - I was just starting to have the same thought14:47
mordredI keep getting in this hole myself...14:47
mordredI want to make _everytihng_ about jobs14:47
mordredbut roles are actualy the basic unit of reuse14:47
mordredit's worth noting as well, even though we have not yet done it in any of ours - that roles can declare dependencies on each other too14:48
jeblairya.  so i'll mock up 2 more things in the etherpad now.  first -- this structure but with a different inheritance hierarchy14:48
jeblairand then a third option which is just a new job with roles14:48
jeblairthe alternate hierarchy one is impractical because of course we can't parent unittests to publish-openstack-tarball.14:50
jeblairer, i'm going to mock up 3 things :)14:54
jeblairso there's a 'new job' option where we just do everything with roles14:55
jeblairand a 'hybrid' option which has a generic tarball publishing job as the parent of the python tarball publishing job.14:55
jeblairthe difference between the two, i think, is whether we want to tell folks, "if you need to upload something to tarballs.o.o" do we say "use this job as the parent"  or "use this role in a post playbook"14:56
jeblairi think i just answered the question myself14:56
pabelangerOkay, the part I am still trying to loop my brain around, is with all 3 examples, do not use the playbooks in zuul_jobs/tox/pre, run, post, correct?14:57
mordredjeblair: (btw, I'm taking over your lookup plugin test patch)14:58
jeblairactually no, i haven't.  i honestly think either might work almost as well for folks writing the sorts of jobs which publish to tarballs.14:58
jeblairmordred: ack, thanks.  i didn't get a chance to look at current failures yesterday.  lemme know if you have questions.14:58
jeblairpabelanger: that's a good question.14:59
mordredI got it - I'm going to push up a not-quite-finished stack - I reparented my patches on your patch, have fixed the issue (I think) in your patch - and will actually add a test here in just a sec14:59
mordredjeblair: I also nerd-sniped myself into writing a sphinx domain ...14:59
jeblairpabelanger: my inclination would be to try to avoid reusing those playbooks, because roles provide a cleaner API14:59
jeblairpabelanger: so some of those playbooks may need to be made into roles if we want to do that15:00
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Prevent execution of locally overridden core modules  https://review.openstack.org/49021615:00
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Add some ansible plugin tests  https://review.openstack.org/45439615:00
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Allow and document use of the uri module from localhost  https://review.openstack.org/49021515:00
jeblairpabelanger: though, it's certainly true we can just list a bunch of playbooks from "other jobs".15:00
jeblairmordred: what do you think ^?15:00
mordredyes, I agree - for now our playbooks contain next to no actual logic - even though it's a slightly higher amount of boilerplate files, I think we shouldn't shy away from multiple playbooks15:02
mordredand in this case, it's likely much better15:02
jeblairmordred: so, avoid using playbooks from "other jobs" and use roles instead?15:02
mordredyah15:02
jeblairk15:02
jeblairmordred: what's the sphinx domain?15:02
mordredlet's do that until we can't15:02
mordredjeblair: it's in https://review.openstack.org/490215 - I added one for being able to link to an upstream ansible module15:03
pabelangerYa, that means we shoulding be building up jobs from zuul-jobs, instead creating new jobs from the same roles15:03
pabelangershouldn't*15:03
pabelangerand new jobs that new parent to zuul-jobs, should only be setting up variables?15:04
mordredpabelanger: right. well - except for things where we actually want the inheritance properties - like inherting from base or unittests15:04
pabelangerokay, so for example: openstack-doc-build would be how we process15:05
pabelangerproceed*15:05
pabelangerit has roles: from zuul-jobs15:05
pabelangerbut its own playbooks15:05
pabelangerhowever, parents to tox-docs15:05
pabelangerHmm15:06
jeblairindeed, i think another thing pointing us in the direction of inheritance being wrong for this case is that we can actually drop some of the roles we are doing for unittests jobs (eg -- fetch testr output, and maybe test_setup.sh)15:06
pabelangertox-docs is in zuul-jobs15:06
mordredjeblair: yah15:06
pabelangerjeblair: right, I didn't think about that part yet15:06
pabelangerhowever, we could control that logic using variables15:07
pabelangerokay, let me see about writing a new playbook using the roles15:07
jeblairpabelanger: that sounds good -- but do we need to talk about openstack-doc-build?  i'm not sure the question you asked above15:07
mordredjeblair, pabelanger: fwiw, this is about the level of complexity I was imagining we were going to hit when working on these tox jobs - so I'm glad we've hit it15:07
jeblairmordred: :)15:08
mordredmy hunch is that these will wind p being the most difficult and complex jobs in the entire system15:08
jeblairmordred: agreed.  i actually think devstack will be simpler :)15:09
pabelangerjeblair: sure, just your comment avoid reusing playbooks and to use roles15:09
pabelangeropenstack-doc-build today parents to tox-docs, which works in that context because we don't need to add any post-run logic15:09
pabelangerso, there are places where parent to a zuul-jobs still makes sense15:09
pabelangerhowever, if openstack-doc-build was trusted, I don't think it would work, right?15:10
pabelangersince tox-docs loads after project-config15:10
jeblairpabelanger: i think openstack-doc-build parents tox-docs mostly to override the run playbook since "our" docs build command is different.  that seems like a pretty good use of inheritance15:11
jeblairpabelanger: so yeah, it's not trying to do any fussy post playbook stuff :)15:11
pabelangerya, so post-runs are pussy, because they run before the parent15:12
pabelangerfussy*15:12
pabelangerwow, such a typo15:12
pabelangersorry about that15:13
*** hashar has quit IRC15:34
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Add some ansible plugin tests  https://review.openstack.org/45439615:50
jeblairmordred: i like that ansible sphinx role -- i've been thinking we may want something similar to link to job docs in zuul-jobs15:58
jeblairmordred: (from other repos)15:58
pabelangerremote:   https://review.openstack.org/490576 WIP: Create openstack-python-tarball job16:00
pabelangermordred: jeblair: ^ before I start refactoring, do you mind looking at the flow of the new job?^ Most of that code is copypaste of zuul-jobs playbooks16:00
pabelangerthat we likely need to refactor into roles16:01
jeblairfungi, Shrews: wow, my foundation membership number is only one off from my lwn account number.16:01
jeblairfungi: any chance we can bump #82?  :)16:01
pabelangermordred: something like configure-mirrors, should that move into our base job?16:04
jeblairpabelanger: configure-mirrors in base sounds good to me16:05
jeblairpabelanger: and i think we have site-local vars now, so you can do that TODO in the process16:06
fungijeblair: we might be able to switch you to 82... that profile is a 404 page in the member directory now ;)16:08
jeblairpabelanger: and yeah, i think that flow looks correct -- those are the things we should refactor into roles.  most of those look like they should be 1:1 playbook:role16:09
jeblairfungi: lol, most important task!  what could go wrong?!16:09
pabelangerjeblair: ya, I almost wonder if we could parent to unittests. But the issues are does test-setup run and, do we intall bindep with test profile16:09
pabelangerbut, that would be part of the forward -parent stuff you mentioned before16:10
pabelangerbecause that playbook in unittest, is just roles16:10
jeblairyeah, i don't think we need test setup or testr output, both of which are unittest.16:11
jeblairand later on, if mordred has his way with the pti, we won't need bindep either16:11
Shrewsjeblair: what is the purpose of the :value: sphinx markup used in the docs? That seems to be impossible to google16:15
Shrewsjeblair: wondering if there was a reason :ref: wasn't used instead16:15
jeblairShrews: i made it up16:15
Shrewsoh. how does that work?16:16
jeblairShrews: it's a role to cross-reference zuul "value" directives16:16
jeblairShrews: there are a few (up to 3 now) things in the documentation that i made custom directives for so i can control how they are displayed, and ensure they have targets for cross referencing16:16
jeblairShrews: i don't think they automatically end up in anything that would normally get picked up by a :ref: role  (but i could be wrong about that, and it's sphinx, so even if i'm right, we probably could still make it happen)16:18
pabelangerjeblair: do you happen to have some reading material on our local-site variables? Looking to see how we did that16:18
jeblairShrews: so i also made role equivalents, so if you want to reference a zuul:value or zuul:attr definition, you can use the corresponding :zuul:value: or :zuul:attr: role, and it will look it up based on the full "pathname" of the thing.16:19
jeblairShrews: having our own roles for that also lets us customize how they are represented as well (for instance, i think we may want to change the :zuul:value: role to only display the 'short' name of the value, based on how it's actually getting used in the text)16:19
jeblairShrews: i was thinking it might be time for a 'docs' page in the developer guide :)16:20
Shrewsjeblair: ok. i'm going through the most recent docs and have a few small tweaks to put up. One is add a reference link at the first mention of the independent pipeline (similar to the dependent pipeline), but i noticed the use of :value: for that one. Not sure which to use16:20
jeblairpabelanger: https://docs.openstack.org/infra/zuul/feature/zuulv3/admin/components.html#id7  search for 'variables'  (sorry i haven't gotten to that page yet to add link targets)16:20
jeblairShrews: cool; it may be easier to look at that after you push it up16:22
Shrewsjeblair: ok16:22
jeblairShrews: *hopefully* :value: is appropriate for that one too16:22
pabelangerjeblair: great, thanks16:25
*** electrofelix has quit IRC16:26
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Don't request empty nodesets  https://review.openstack.org/48724316:46
jeblairpabelanger, mordred, fungi: our pkcs secret can hold 3760 bits or 470 bytes.16:58
jeblairi'll work on the usenet solution now.  :)16:58
fungijeblair: there's our "chunk size" now!16:58
fungiwe just need grouping and ordering and we're set16:58
Shrewshah, usenet. can we call the solution alt.zuul.secrets?17:11
jeblairShrews: lol17:12
fungiShrews: indeed, uuencoded and split binary posting to newsgroups was the first thing that design brought to my mind as well17:22
fungii have some fond memories of following instructions to write a very simple uudecoder in edlin so i could uudecode the uudecode utility ;)17:23
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Prevent execution of locally overridden core modules  https://review.openstack.org/49021617:32
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Allow and document use of the uri module from localhost  https://review.openstack.org/49021517:32
jeblairfungi: the pkcs1-oaep overhead length is 42 bytes (4096-3760 bits == 42 bytes).  :)17:34
* fungi can't disagree with that math17:34
dmsimardoi, I just tagged and released ARA 0.14.0, nothing should explode.. but just in case, letting you know. It usually takes a bit for the pypi mirrors to pick it up.17:54
pabelangerjeblair: mordred: should we introduce zuul_site as a prefix for local-site varaibles to be used in zuul-jobs?17:56
jeblairpabelanger: sounds reasonable17:56
pabelangerremote:   https://review.openstack.org/490586 Move configure-mirror role into base-test/pre17:57
pabelangeris an example^17:58
pabelangerguess it could be a dict too17:58
jeblairyeah.  i kind of like deep structures.18:01
jeblairbut don't have strong feelings on this.18:02
*** amoralej is now known as amoralej|off18:04
pabelangersame18:07
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Support longer pkcs1-oaep secrets  https://review.openstack.org/49062018:22
jeblairfungi, pabelanger, mordred, SpamapS: ^18:23
pabelangerjeblair: nice18:26
fungijeblair: i suppose that does also mean that an attacker could guess at the approximate size of our signing keyring, modulo 3760 bits. not especially risky for this case anyway18:27
jeblairfungi: easier for them to read the docs, i'd wager ;)18:28
fungiindeed18:28
jeblair(then again, maybe not!  it's so hard to convince people to read docs!  why should attackers be any different!)18:29
fungii certainly get a nonzero number of excited "security researchers" who want to make sure i know that we have <random web service x> running on the internet for all to see18:30
fungior that we have web servers accidentally configured to display system logs (oh my!)18:30
jeblair"that's why they call it Internet"18:30
fungi"look, i found that someone has accidentally exposed your logserver to the internet, and it's full of all sorts of sensitive syslog data: https://logs.openstack.org/..."18:32
fungithat's always a fun one to try to explain to people who sometimes haven't even heard of free software and never imagined that there are communities of people who write and run software by coordinating over the open internet18:33
fungithen again, it's also an opportunity for me to practice my sales pitch ;)18:34
mordredjeblair, pabelanger: I also like deep structurs/dicts - but also don't have strong preferences18:37
openstackgerritPaul Belanger proposed openstack-infra/zuul-jobs master: Remove mirror_domain from configure-mirror  https://review.openstack.org/49062518:50
jlktobiash: so question on your protected branch PR, why is it y'all went with branch+pr within the same repo instead of the traditional fork+pr method? (I'm genuinely curious)18:52
openstackgerritPaul Belanger proposed openstack-infra/zuul-jobs master: Rename mirror_host to mirror_fqdn in configure-mirrors  https://review.openstack.org/49062818:55
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Remove getProjectBranches from FakeGithubConnection  https://review.openstack.org/49004318:56
tobiashjlk: I'm new to github and we'll get one soon. So I'm currently in progress of investigating how to work effectively with github19:06
tobiashjlk: currently we're on gerrit with a 50+ tightly coupled (c++, compiled together in a single workspace)19:07
tobiashjlk: so currently most people think that managing such a beast would be easier with the shared repo model under a organization19:08
jlksingle repo, lots of sub folders?19:09
tobiashjlk: I'm not sure about this, but I want to be open and don't want to force the projects into the fork+pull model because the CI system I'm running doesn't support shared repos19:09
jlkor lots of repos, but no forks of those repos?19:09
tobiashjlk: sure, that would be my preference, but there are modules in there which have different visibilities for employees and also externals work directly on the codebase...19:10
tobiashjlk: so more political stuff inhibits throwing everything just into one repo19:11
tobiashjlk: so currently we have lots of repos managed with git-repo19:12
jlkProtected branches makes (no forks) more manageable. Before that it was really messy since everybody would need write access to the repo. I'm curious how well it will work out for you to do it all within the same canonical repo(s) instead of forks.19:12
tobiashit will be fun telling the people that git-repo won't work with github...19:12
jlkI agree that we (zuul) should support that work model. It's just not one I'm all that familiar with.19:12
tobiashjlk: I personally think that this will get messy with the branches19:13
jlkI do too19:13
jlkYou'd probably want to namespace them somehow19:13
jlkbut that doesn't help as much as one would like19:13
tobiashjlk: but I'm not in the position to decide that, but just give (hopefully) good advices19:13
jlkone advantage is that people can "fix up" somebody else's pull request. Doing that is much harder in the fork+pr model.19:14
jlkdunno if your team uses that at all19:14
tobiashwe probably have to modularize the codebase more with stable interfaces between (that's my advice, answer is that's difficult/impossible)19:14
tobiashbut this is the process of learning19:15
jlkI wish google wasn't still single-repo. People wind up pointing at them and saying "But it works for google!"19:15
tobiashsingle company repo would probably also not work with git19:15
tobiashgoogle probably has its own proprietary stuff there19:16
jlknah, it's git+gerrit19:16
tobiashwith a single repo?19:16
tobiashTB sized repo?19:16
jlkyeah I don't know how big it is off hand.19:17
jlkhttps://cacm.acm.org/magazines/2016/7/204032-why-google-stores-billions-of-lines-of-code-in-a-single-repository/fulltext19:17
jlkhrm, that's not git. I'm confused now19:18
openstackgerritMerged openstack-infra/zuul-jobs master: Remove mirror_domain from configure-mirror  https://review.openstack.org/49062519:19
openstackgerritMerged openstack-infra/zuul-jobs master: Rename mirror_host to mirror_fqdn in configure-mirrors  https://review.openstack.org/49062819:20
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Optionally limit github to protected branches  https://review.openstack.org/49013419:22
openstackgerritTobias Henkel proposed openstack-infra/zuul feature/zuulv3: Remove status handling from FakeGithubConnection  https://review.openstack.org/49041319:23
Shrewsjeblair: So, while reading the v3 User guide, I keep finding myself over and over wishing I had a complete example up front so that the pieces of the guide fit together better.19:23
Shrewsfor example, we current have this sentence: "The actual tasks that are run by the job appear in the playbook for that job while the attributes that appear in the Zuul configuration specify information about when, where, and how the job should be run."19:24
Shrewsand i'm thinking, "yeah, that's great, but it doesn't make much sense without an example"19:25
ShrewsI mean, I personally understand it, but even I had to go look at current examples to get a better picture of what it meant19:26
jeblairShrews: yeah, i agree.  i think there's lots of room for more examples.  i have a couple of questions (which may just take trying things out to answer):  should we add examples to an appendix and cross-reference them a lot?  that lets us have lots of examples ranging in complexity together which can be helpful.  should we put simpler examples at the starts of sections (some sections do this already)?  should we do both?  should the zuul-jobs repo serve as ...19:28
jeblair... external examples?  or should we only occasionally mention zuul-jobs (ie, it's an *additional* resource)?19:28
ShrewsSo my thinking was that if we conjured up the simplest example for a fake project, then broke it down piecemeal later (even if it doesn't make sense up front), it would help with seeing how the pieces fit as they are discussed19:28
jeblairShrews: i think that's a great idea, let's try it19:29
pabelangerShrews: ++19:29
jlkI concur19:30
Shrewsjeblair: if the example could initially leave out reference zuul-jobs and such (but we can introduce it later in a more complicated example), i think that would be better19:30
jeblairShrews: agreed19:30
jeblairmy *guess* as to what we'll end up with is maybe what Shrews suggests in the main narrative, then an appendix with lots more examples (here's how to override a branch, etc), and carefully selected references to zuul jobs19:31
jeblairbut i'm really open :)19:31
Shrewsjeblair: i think that sounds wonderful19:31
jeblaircool19:31
jeblairShrews: i'm basically done with my syntax updates in the user guide, so go crazy19:32
jeblairShrews: the updates i have left to do are mostly in the admin guide19:32
jeblair(i mention this in relation to likely merge conflicts)19:33
* jeblair forages for food now19:33
Shrewsjeblair: ok. one of the reasons i'm reading the docs now is because I sorely lag behind in understanding how the config stuff works. I can try to come up with the simplest example, but I'll likely need guidance on it.19:33
Shrewsi can poke and prod pabelanger for most of that, maybe  :)19:34
jeblairShrews: cool, i think that's great and we're at the place where we need that.  i will be happy to help, both to expand the number of people who grok this, and i may answer some questions in the form of a doc patch.  :)19:35
tobiashand some possibly in a bugfix ;)19:36
pabelangerShrews: for sure19:37
jlkjeblair: re PTG, the plan is to do the cut over on Saturday evening? Should we plan to be there in person, or remotely and then fly in Sunday? Just trying to get a feel of what / where / when I could be the most useful.19:42
Shrewspabelanger: we allow use of the ansible command module, yeah? If so, we could start the simple example with running "command: tox -e pep8" directly, then later use that to introduce the zuul-jobs tox-pep8 role19:45
Shrewserr, job rather19:47
jlkWe allow command module when using a remote node19:48
pabelangerShrews: Yup, you could have the untrusted playbook run that, but not on localhost. We limit that.19:48
pabelangerso your playbook could be hosts: ubuntu-xenail to make that clear19:49
pabelangerwith a ubuntu-xenial nodeset19:49
Shrewsyeah19:49
pabelangerI would avoid using all for the moment19:49
pabelangerand be specific19:50
openstackgerritDavid Shrewsbury proposed openstack-infra/zuul feature/zuulv3: Doc improvements on user guide  https://review.openstack.org/49064019:56
Shrewsgetting some minor things out of the way first ^^^19:56
*** harlowja has quit IRC19:57
jeblairjlk: plan is to do trial cutovers sat and sunday evenings, then final cutover monday morning.  that's to accomodate various travel/meeting schedules.  so traveling saturday or sunday should be fine (people are doing both)20:21
jeblairjlk: there will be online coordination for at least the sat/sunday trials, so location less important20:22
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Doc improvements on user guide  https://review.openstack.org/49064020:22
pabelangerjlk: I plan to be in denver on Saturday20:23
pabelangerand working from hotel bar :)20:23
jeblairor under hotel bar20:23
SpamapSjeblair: oh neat! longer secrets!20:29
openstackgerritPaul Belanger proposed openstack-infra/zuul-jobs master: Create fetch-tox-output role  https://review.openstack.org/49064320:38
pabelangerjeblair: mordred: where did we end up on namespacing of roles?  so^ create fetch-tox-output, but thinking we might want to refer to it as zuul-jobs.fetch-tox-output in project config, to better indicate which project the role is in.20:42
pabelangerproject config playbook*20:42
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Remove status handling from FakeGithubConnection  https://review.openstack.org/49041320:44
*** jkilpatr has quit IRC20:48
jeblairpabelanger: i don't recall us deciding to do anything about namespacing roles.20:54
*** dkranz_ has quit IRC20:55
*** harlowja has joined #zuul21:15
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Docs: add initial documentation style guide  https://review.openstack.org/49065421:20
jlkOkay, I'll plan for Saturday -> Thursday.21:29
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Prevent execution of locally overridden core modules  https://review.openstack.org/49021621:32
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Prevent execution of locally overridden core modules  https://review.openstack.org/49021621:42
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Add some ansible plugin tests  https://review.openstack.org/45439621:42
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Allow and document use of the uri module from localhost  https://review.openstack.org/49021521:42
mordredjeblair: ^^ I'm getting closer on that I thnk :)21:44
mordredjeblair: also - I have now learned that the default delimiter for csvfile lookup plugin is ...21:44
mordredwait for it21:44
mordredTAB21:44
clarkbmordred: thats because c is for char not comma21:46
clarkbit makes no sense to me either21:46
mordredclarkb: it's ... I mean ...21:46
jeblairmordred: did you try "import csv as tsv"  ?  ;)21:46
mordredjeblair: ;)21:47
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Docs: convert some component config to zuul directives  https://review.openstack.org/49066221:48
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Add some ansible plugin tests  https://review.openstack.org/45439622:01
mordredjeblair: if the debug things I just added don't help - I may need your help to figure out how to get the ansible logging output22:01
mordredbecause "2017-08-03 21:51:28,933 zuul.AnsibleJob                  DEBUG    [build: 1f13838b572f487caf5d83590fdf50e0] Ansible complete, result RESULT_NORMAL code 2" isn't super helpful ;)22:02
jeblairmordred: in a pinch, i've set KEEP_TEMPDIRS=1 ttrun ...  and then i cd into the jobdir and look at the output there.  i think having the test automatically fetch that before the jobdir is destroyed and making a subunit attachment would be cool though.22:03
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Docs: reformat merger and executor config docs  https://review.openstack.org/49066522:09
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Docs: reformat web section  https://review.openstack.org/49066622:12
jeblairokay my tab finger is wearing out; time for a break :)22:12
mordredjeblair: yah - that was what I was just starting to try to do ... if I do self.getJobFromHistory() ...22:12
mordredjeblair: I'll have a Job and I also have self.test_root in the test case already ... I'm not 100% sure how to get from that Job to the job-output.txt file22:13
mordredoh22:13
mordrednevermind22:13
jeblairok22:14
mordredI have ound the thing I need22:14
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Ensure ref-updated jobs run with their ref  https://review.openstack.org/48821622:16
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Fix null ref in github tests  https://review.openstack.org/49025722:17
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Add some ansible plugin tests  https://review.openstack.org/45439622:17
mordredk. let's see how that goes22:17
mordredjeblair: with self.jobLog was the thing I believe I needed in this case22:20
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Add project related type hints to gerritconnection  https://review.openstack.org/48859322:21
jeblairmordred: omg i wrote that and forgot about it.22:23
jeblairmordred: sorry!22:25
mordredjeblair: no worries - I'm glad you wrote it!22:30
mordredjeblair: (I believe the test is failing because our use of csvfile is not good - which I think is a result of attempting to reference a path and getting the relative location incorrect)22:31
mordredjeblair: so - basically - it's not failing any of the things it wants to test - so as soon as we can figure out the right path incantation we should be good22:31
jeblairmordred: you mean the test with "file=test.csv"  ?22:44
jeblair(and yeah, i think i assumed those would be related to the work root, but i think i now understand that most modules running locally end up running from the playbook dir)22:45
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Docs: add initial documentation style guide  https://review.openstack.org/49065422:50
jeblairmordred: another spurious post_failure (where nothing apparently failed):  http://paste.openstack.org/show/617477/  http://logs.openstack.org/65/490665/1/check/tox-docs/bb863fb/22:52
jeblairmordred: i think we're seeing those often enough we're going to have to dig into it before the ptg; it will be very noticable at production-scale22:52
jeblairAnsible output: b'ERROR! A worker was found in a dead state'22:52
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Docs: update format in connections.rst  https://review.openstack.org/49067222:55
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Docs: convert some component config to zuul directives  https://review.openstack.org/49066223:00
mordredjeblair: zomg. found it23:09
mordredjeblair: csvfile lookup plugin in ansible does not work in python3 :)23:09
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Add some ansible plugin tests  https://review.openstack.org/45439623:11
* mordred is going to be optimistic and think the first patch is going to pass...23:12
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Prevent execution of locally overridden core modules  https://review.openstack.org/49021623:12
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Allow and document use of the uri module from localhost  https://review.openstack.org/49021523:12
jeblairmordred, SpamapS: do you think the 'ERROR! A worker was found in a dead state' error could be related to ssh controlmaster being killed between playbook runs?  like maybe it's racing in a way that there's still a socket from the previous playbook at the time the next playbook starts, but is deleted before it's actually used?23:29
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Docs: reformat gerrit driver docs  https://review.openstack.org/49068123:37
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Docs: update format in connections.rst  https://review.openstack.org/49067223:47
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Docs: reformat web section  https://review.openstack.org/49066623:47
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Docs: reformat merger and executor config docs  https://review.openstack.org/49066523:47
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Docs: reformat gerrit driver docs  https://review.openstack.org/49068123:47
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Remove state_dir requirement from merger  https://review.openstack.org/49068223:48
jeblairjlk: thanks! ^ :)23:48
jlkhah23:49

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