openstackgerrit | James E. Blair proposed openstack-infra/zuul feature/zuulv3: Add support for roles in zuul https://review.openstack.org/435179 | 00:48 |
---|---|---|
jeblair | mordred: ^ you'll want to give that one a gander, i reckon. tomorrow. :) | 00:49 |
jeblair | i hope we can land that before the ptg; it will make things much more interesting. :) | 00:49 |
mordred | meh. who needs tomorrow. we've got tonight | 00:49 |
jeblair | woo, drunk reviewing! | 00:50 |
mordred | jeblair: remind me again what "while" means? | 00:55 |
mordred | jeblair: also - I find that in zuul patches I almost always want to review code with the files in a different sort order than they sort alphabetically (since tests sorts before zuul and I like to read the code then the tests) | 00:57 |
jeblair | mordred: i'm not sure of the context of the 'while' question... | 01:09 |
jeblair | mordred: i think if you set diff.orderFile in your git-config for a given repo, you can specify the order in which files will show up in a git diff, and that will affect gertty. | 01:11 |
jeblair | https://git-scm.com/docs/git-config#git-config-difforderFile | 01:11 |
*** jamielennox is now known as jamielennox|away | 01:18 | |
openstackgerrit | Ian Wienand proposed openstack-infra/nodepool master: Add a HTML status page https://review.openstack.org/435185 | 01:23 |
*** jamielennox|away is now known as jamielennox | 01:25 | |
mordred | jeblair: oh neat! | 01:48 |
mordred | jeblair: the while question was a joke intended to be read as a response to "woo, drunk reviewing!" | 01:48 |
openstackgerrit | Ian Wienand proposed openstack-infra/nodepool master: Add image-list.json webapp target https://review.openstack.org/435201 | 02:53 |
openstackgerrit | Ian Wienand proposed openstack-infra/nodepool master: Add a HTML status page https://review.openstack.org/435185 | 03:00 |
*** deepbook5broo has joined #zuul | 03:58 | |
*** deepbook5broo has left #zuul | 03:58 | |
*** bhavik1 has joined #zuul | 06:21 | |
*** saneax-_-|AFK is now known as saneax | 06:22 | |
*** bhavik1 has quit IRC | 06:32 | |
*** Cibo_ has quit IRC | 07:30 | |
*** Cibo_ has joined #zuul | 07:32 | |
*** Cibo_ has quit IRC | 07:46 | |
*** Cibo_ has joined #zuul | 08:00 | |
*** bhavik1 has joined #zuul | 09:09 | |
openstackgerrit | Tobias Henkel proposed openstack-infra/zuul master: Enhance mutex to counting semaphore https://review.openstack.org/386520 | 09:30 |
*** bhavik1 has quit IRC | 10:24 | |
*** Cibo_ has quit IRC | 10:28 | |
*** Cibo_ has joined #zuul | 10:32 | |
*** yolanda has quit IRC | 11:36 | |
*** yolanda has joined #zuul | 11:39 | |
*** Cibo_ has quit IRC | 11:53 | |
*** Cibo_ has joined #zuul | 12:04 | |
*** hashar has joined #zuul | 12:44 | |
*** abregman has joined #zuul | 13:59 | |
*** abregman has quit IRC | 14:05 | |
Shrews | pabelanger: ugh, we're hitting that test_image_upload_fail race quite often | 14:32 |
pabelanger | Shrews: let me get a patch up now | 14:32 |
pabelanger | or we can disable | 14:32 |
*** Cibo_ has quit IRC | 14:37 | |
openstackgerrit | Paul Belanger proposed openstack-infra/nodepool feature/zuulv3: Disable test_image_upload_fail https://review.openstack.org/435477 | 14:45 |
pabelanger | Shrews: ^ disable for now, but I'll work on a patch today | 14:45 |
pabelanger | then recheck it a bunch of times | 14:45 |
Shrews | pabelanger: k | 14:46 |
openstackgerrit | David Shrewsbury proposed openstack-infra/nodepool feature/zuulv3: Fix possible race with node request handling https://review.openstack.org/435128 | 14:48 |
mordred | pabelanger: fwiw, if you need to skip tests again, testtools has a method "self.skipTest('some reason this is skipped')" - no need to import skip decorator from unittest - (I landed the patch, just thought I'd point it out if you didn't know it was there) | 15:03 |
openstackgerrit | Paul Belanger proposed openstack-infra/nodepool feature/zuulv3: Disable NodeCleanupWorker() for test_image_upload_fail https://review.openstack.org/435481 | 15:03 |
pabelanger | Shrews: what about something like ^ | 15:04 |
pabelanger | mordred: Ah, good to know | 15:04 |
openstackgerrit | Paul Belanger proposed openstack-infra/nodepool feature/zuulv3: Disable NodeCleanupWorker() for test_image_upload_fail https://review.openstack.org/435481 | 15:05 |
Shrews | pabelanger: umm, it's the builder's cleanup thread you'd need to disable :) | 15:10 |
*** Cibo_ has joined #zuul | 15:10 | |
*** Cibo_ has quit IRC | 15:15 | |
pabelanger | Oh, haha | 15:16 |
pabelanger | copy / paste error | 15:17 |
*** Cibo_ has joined #zuul | 15:17 | |
*** saneax is now known as saneax-_-|AFK | 15:24 | |
pabelanger | Oh, ya. I just did this wrong from the start | 15:25 |
openstackgerrit | Merged openstack-infra/nodepool feature/zuulv3: Disable test_image_upload_fail https://review.openstack.org/435477 | 15:28 |
openstackgerrit | Merged openstack-infra/nodepool feature/zuulv3: Fix possible race with node request handling https://review.openstack.org/435128 | 15:29 |
openstackgerrit | Paul Belanger proposed openstack-infra/nodepool feature/zuulv3: Disable CleanupWorker thread for test_image_upload_fail https://review.openstack.org/435481 | 15:48 |
openstackgerrit | Paul Belanger proposed openstack-infra/nodepool feature/zuulv3: Disable CleanupWorker thread for test_image_upload_fail https://review.openstack.org/435481 | 15:50 |
pabelanger | we should disable osic-cloud1 more often | 15:54 |
pabelanger | to expose more race conditions :) | 15:54 |
mordred | pabelanger: hah | 16:09 |
*** Cibo_ has quit IRC | 16:36 | |
openstackgerrit | James E. Blair proposed openstack-infra/zuul feature/zuulv3: Add support for roles in zuul https://review.openstack.org/435179 | 16:40 |
openstackgerrit | James E. Blair proposed openstack-infra/zuul feature/zuulv3: Add support for roles in zuul https://review.openstack.org/435179 | 16:53 |
jeblair | mordred: that update is a 3 line fix for the only test remaining that failed ^ | 16:53 |
pabelanger | jeblair: Shrews: let me know your thoughts on 435481, I'll keep rechecking for a failure | 16:54 |
mordred | jeblair: doh | 16:54 |
*** hashar has quit IRC | 17:30 | |
*** hashar has joined #zuul | 19:05 | |
jesusaur | jeblair: do you have some time for a few questions? i spent some time yesterday trying to figure out the job json data (both the data model and also the path it takes through the code), and I'm confused about the relationship between the Job object and the BuildSet object -- and by extension, what the purpose of the RepoFiles object is. | 19:11 |
pabelanger | https://review.openstack.org/#/c/435481/ looks to be stable now | 19:23 |
Shrews | jesusaur: did you see the datamodel.rst file? that may help | 19:32 |
*** herlo has quit IRC | 19:39 | |
jeblair | Shrews: ++; jesusaur: yes, i'm happy to help! | 19:42 |
jesusaur | Shrews: no, that doesn't help very much; I'm still not sure why per-project job config is stored in a BuildSet rather than a Job | 19:43 |
jeblair | jesusaur: thanks, i'm starting to see what's missing from that doc :) | 19:43 |
jeblair | jesusaur: a job is a representation of configuration state. it's what should be run. in essence, it's an abstract concept. | 19:44 |
jeblair | jesusaur: a build is a single execution of that job. it's concrete. | 19:44 |
jeblair | jesusaur: a buildset is a collection of builds (so, a set of concrete executions of multiple jobs) | 19:44 |
jeblair | jesusaur: in light of all that, the docstring for repofiles is terrible. i wrote it, i'll own that. :) | 19:45 |
jeblair | jesusaur: repofiles doesn't really have much to do with these ideas (but you'd never guess that from the docstring) | 19:46 |
jeblair | jesusaur: it's basically so that we can cache .zuul.yaml files for use with dynamic in-tree configuration | 19:47 |
*** herlo has joined #zuul | 19:48 | |
jeblair | jesusaur: if you think about how zuul stacks up changes together for testing -- you go through the pipeline and add each change's commits to its git repo, and you check out the result and that's what you run | 19:49 |
jeblair | jesusaur: we need to do the same thing for zuul's configuration | 19:49 |
jeblair | jesusaur: and just like at any point, a failing change would pull that change out of the series of changes tested together | 19:49 |
*** herlo has left #zuul | 19:49 | |
jeblair | jesusaur: a failing change that touches .zuul.yaml would need to pull that .zuul.yaml out of the configuration used to test those changes | 19:50 |
jeblair | jesusaur: so we have to keep the .zuul.yaml files for every item around, so that if any of them fail, we can recalculate zuul's config | 19:50 |
jeblair | jesusaur: we happen to store that on the buildset, since that's the part of the queue item that changes each time zuul shuffles the queue | 19:51 |
jeblair | jesusaur: all of that to say, this shouldn't really affect the thing you're working on | 19:52 |
jesusaur | jeblair: aha, so the RepoFiles object refers to the .zuul.yaml files and not to the files in the repo being tested | 19:52 |
jeblair | jesusaur: yep | 19:52 |
jeblair | jesusaur: you mostly want to attach project names to Job objects, then pass that through to the launcher; you can pretty much ignore builds and repofiles for that | 19:52 |
jesusaur | jeblair: so, at a high level, I already understood the basics of Jobs, Builds, and BuildSets; but then seeing the RepoFiles object made me question the details of how those objects interact | 19:53 |
jeblair | jesusaur: it's not too different in spirit to the roles change i just wrote: https://review.openstack.org/435179 | 19:53 |
jesusaur | jeblair: but I also didn't realize how complex building the .zuul.yaml config is | 19:53 |
jeblair | jesusaur: that had a bit of extra stuff in it, but seeing how the roles are plumbed through should be instructive | 19:53 |
jeblair | jesusaur: yeah, it's erm, not easy. :) | 19:53 |
jeblair | jesusaur: definitely falls into the "we would have done it before now if it were easy" category. :) | 19:54 |
jesusaur | jeblair: so I have a couple small changes to model.py and configloader.py to parse 'repos' from the job config; but how does that json data move through the launcher server and client? | 19:54 |
jeblair | jesusaur: that's the fun part -- just spit out some json into the gearman packet we send to the launcher: https://review.openstack.org/#/c/435179/3/zuul/launcher/client.py | 19:56 |
jeblair | jesusaur: i've been adding toDict methods to model objects that get serialized like that | 19:57 |
jeblair | jesusaur: then all the action happens over in the launcher, where we're going to want to do something similar to what i do to roles there -- | 19:57 |
jeblair | jesusaur: go over the 'items' which are included in the build and see if we've checked out one of the requested repos already. if so, we're done. if not, check them out into the git dir for the job | 19:59 |
jeblair | jesusaur: (eventually, we'll probably want to make sure the branch fallback logic from zuul cloner is in there too, but we can start with the naive implementation and add that) | 20:00 |
jesusaur | jeblair: awesome, thanks | 20:00 |
jeblair | jesusaur: np; i'll work on some doc updates :) | 20:01 |
jesusaur | jeblair: btw, in a couple hours I'm leaving for a long weekend, so if you really need the change for the PTG on Monday, feel free to write up your own change, otherwise I should have something on Tuesday :) | 20:01 |
jeblair | jesusaur: i think we'll have plenty to do without it, thanks! | 20:02 |
jeblair | jesusaur: (and if it shows up on tuesday, maybe we can play with it later in the week :) | 20:02 |
jesusaur | cool :) | 20:03 |
*** hashar has quit IRC | 21:59 | |
openstackgerrit | Merged openstack-infra/zuul feature/zuulv3: Correct playbook requirement logic https://review.openstack.org/434564 | 22:00 |
openstackgerrit | Merged openstack-infra/zuul feature/zuulv3: Reload tenant configuration on change merged https://review.openstack.org/426433 | 22:01 |
openstackgerrit | Merged openstack-infra/zuul feature/zuulv3: Add support for roles in zuul https://review.openstack.org/435179 | 22:01 |
dmsimard | jeblair: I wonder how relevant is https://review.openstack.org/#/c/435179/ considering end users can use roles from within playbooks in their project repos ? | 22:19 |
dmsimard | Trying to understand the use case | 22:19 |
dmsimard | i.e, https://docs.ansible.com/ansible/include_role_module.html | 22:20 |
dmsimard | that's at the task level, not a role directive | 22:20 |
pabelanger | Ya, that is going to be fun to use next week | 22:26 |
rbergeron | jeblair, mordred: do we know of these kind humans? http://zuul.opencontrail.org | 22:26 |
rbergeron | or is that third-party magic | 22:28 |
pabelanger | https://review.opencontrail.org looks to be a thing, which is setup to use zuul / jenkins | 22:31 |
pabelanger | doesn't look like they are using nodepool, so static jenkins slaves | 22:32 |
dmsimard | rbergeron: we do third party with RDO https://review.rdoproject.org/zuul/ :) | 22:33 |
rcarrillocruz | niiice | 22:42 |
rbergeron | dmsimard: oh, i totes know that :) | 22:58 |
rbergeron | pabelanger: almost looks like its just.... juniper | 23:00 |
rbergeron | though perhaps the larger community is also that, lol | 23:02 |
jeblair | dmsimard: it's so that users can use external roles that aren't in their project repos | 23:38 |
jeblair | dmsimard: eg, so that we can define some common roles (eg, "set up multinode network bridge") and any project can use those by declaring a dependency on the repo with that role | 23:39 |
jeblair | dmsimard: also, we'll build on that to install galaxy roles that people request too | 23:39 |
jeblair | dmsimard: there's more detail in the last part of this section of the spec: http://specs.openstack.org/openstack-infra/infra-specs/specs/zuulv3.html#ansible | 23:40 |
jeblair | dmsimard: (starting with "All of the content...") | 23:40 |
*** saneax-_-|AFK is now known as saneax | 23:51 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!