Wednesday, 2018-08-22

*** harlowja has quit IRC00:23
*** dmellado has quit IRC01:22
*** gouthamr has quit IRC01:23
*** rlandy has quit IRC02:25
*** gouthamr has joined #zuul02:36
*** dmellado has joined #zuul02:38
openstackgerritAndreas Jaeger proposed openstack-infra/zuul-jobs master: Use doc bindep for tox-docs  https://review.openstack.org/59479204:12
openstackgerritAndreas Jaeger proposed openstack-infra/zuul master: Update docs build job  https://review.openstack.org/59451004:12
openstackgerritAndreas Jaeger proposed openstack-infra/zuul-jobs master: Update tox-docs to follow build-sphinx better  https://review.openstack.org/59479204:48
openstackgerritAndreas Jaeger proposed openstack-infra/zuul-jobs master: Update tox-docs to follow build-sphinx better  https://review.openstack.org/59479204:57
*** sdake has quit IRC05:13
*** sdake has joined #zuul05:13
openstackgerritAndreas Jaeger proposed openstack-infra/zuul-jobs master: Update tox-docs to follow build-sphinx better  https://review.openstack.org/59480205:20
openstackgerritAndreas Jaeger proposed openstack-infra/zuul master: Update docs build job  https://review.openstack.org/59451005:27
openstackgerritAndreas Jaeger proposed openstack-infra/zuul-jobs master: Update tox-docs to follow build-sphinx better  https://review.openstack.org/59480205:34
*** sdake has quit IRC05:50
*** sdake has joined #zuul05:51
openstackgerritAndreas Jaeger proposed openstack-infra/zuul-jobs master: Update tox-docs to follow build-sphinx better  https://review.openstack.org/59480205:55
*** sdake has quit IRC06:02
*** sdake has joined #zuul06:04
*** pcaruana has joined #zuul06:41
*** dmellado has quit IRC07:04
*** dmellado has joined #zuul07:06
*** dmellado has quit IRC07:12
*** sshnaidm|afk is now known as sshnaidm07:17
*** dmellado has joined #zuul07:19
*** hashar has joined #zuul07:23
*** jpena|off is now known as jpena07:47
*** DangerousDaren has joined #zuul08:01
*** electrofelix has joined #zuul08:16
*** pcaruana has quit IRC08:28
*** pcaruana has joined #zuul08:30
*** jimi|ansible has quit IRC08:58
*** ttx has joined #zuul09:17
*** neilsun has joined #zuul09:18
openstackgerritTristan Cacqueray proposed openstack-infra/zuul master: web: enable build query by log_url  https://review.openstack.org/59492009:57
*** jesusaur has quit IRC10:38
*** jesusaur has joined #zuul10:42
*** pbrobinson has left #zuul10:53
*** jpena is now known as jpena|lunch11:20
openstackgerritMerged openstack-infra/zuul-sphinx master: Update docs build job  https://review.openstack.org/59451811:32
openstackgerritMerged openstack-infra/zuul-base-jobs master: Update docs build job  https://review.openstack.org/59452111:34
openstackgerritMerged openstack-infra/zuul-jobs master: Update tox-docs to follow build-sphinx better  https://review.openstack.org/59480211:37
openstackgerritMerged openstack-infra/nodepool master: Update docs build job  https://review.openstack.org/59451711:41
openstackgerritMerged openstack-infra/zuul-jobs master: Update docs build job  https://review.openstack.org/59452211:48
AJaegerzuul team, I pushed https://review.openstack.org/594936 to redirect some docs.openstack.org/infra/zuul-* repos to zuul-ci.org, could you sanity check that, please?11:59
*** ssbarnea|ruck has quit IRC12:13
*** jpena|lunch is now known as jpena12:20
*** rlandy has joined #zuul12:32
*** jimi|ansible has joined #zuul13:05
*** chmouel has joined #zuul13:28
openstackgerritMerged openstack-infra/zuul master: Update docs build job  https://review.openstack.org/59451013:40
*** samccann has joined #zuul13:49
openstackgerritFilippo Inzaghi proposed openstack-infra/zuul-jobs master: TEST  https://review.openstack.org/59501113:55
*** gouthamr has quit IRC14:00
*** dmellado has quit IRC14:01
*** chmouel has quit IRC14:09
*** jiapei has joined #zuul14:16
*** chmouel has joined #zuul14:16
openstackgerritPaul Belanger proposed openstack-infra/zuul-jobs master: Create tox_revoke_sudo variable for tox job.  https://review.openstack.org/59456914:42
pabelangerAJaeger: tristanC: jhesketh: corvus: mordred: updated ^ for new tox_revoke_sudp option, if you don't mind looking again. To compare, https://review.openstack.org/593150/ is another approach, which would result in using with-sudo in job name.14:43
mnaserpabelanger: i totally needed that yesterday lol14:43
pabelangertox_revoke_sudo will result in less zuul jobs14:44
pabelangermnaser: yah, please look then14:44
mnaseryeah i had to make my own thing to have the play without revoke-sudo14:44
mnaseri like the variable approach more14:45
pabelangeryah, I think tox_revoke_sudo will be the easier thing to use, but could mean jobs in PTI have the ability to use sudo now.14:45
tristanCpabelanger: can't the tox pti jobs force the revoke_sudo to true in the run playbook?14:48
openstackgerritPaul Belanger proposed openstack-infra/zuul master: DNM - testing docs  https://review.openstack.org/59507014:48
pabelangertristanC: I don't think it can, without modifying the playbook. Then we need a new job14:48
pabelangerbut haven't tested14:49
*** gouthamr has joined #zuul14:50
corvusthe reason revoke-sudo is baked into there is that it's a really really bad idea to have a unit test job that uses sudo.  people in openstack have done it before not realizing that means that other developers may be unwittingly destroying their workstations.  the whole idea of using tox for unit tests is that it's easy for a developer to run before pushing up a change, but if it's not safe to do that, it14:53
corvusdefeats the purpose.14:53
corvusit's fine to have a zuul job that uses sudo, but it shouldn't be easy to do that for a standard unit test job.14:53
corvusso openstack is going to specify in its PTI that projects use a job for unit tests which does not allow sudo, even if that means that openstack has to use a custom job for unit tests.14:54
*** chmouel has quit IRC14:55
*** mmedvede is now known as mmedvede_14:55
*** mmedvede_ is now known as mmedvede14:55
corvusbut to the extent that zuul-jobs is trying to incorporate best practice, we may want to consider keeping the standard tox-pyXX jobs forcing revoke sudo, and adding alternate jobs which allow it.14:55
pabelangerin that case, that's what tox-with-sudo does: https://review.openstack.org/593150/ leaves the existing tox job alone and starts a new one for other jobs to parent too15:00
*** chmouel has joined #zuul15:01
pabelangerand if we need py36 with sudo, per tristanC comment. We could add tox-py36-with-sudo job into zuul-jobs.15:01
corvuspabelanger: we could, but that sounds like a bad idea.  i think the use of sudo should be constrained to special jobs, not regular unit tests.15:02
mnasercorvus: in that case, how do you feel about things like doing functional testing of something like an ansible role15:03
corvusmnaser: i think it's great!15:03
mnaserbut we're using something like tox -efunctional to do that, so then is there an alternate way (i'm open)15:03
corvusi want to be really clear here, so i'll repeat myself -- using sudo is FINE!  lots of jobs should do it!  just not unit test jobs.15:03
mnaseroh yes i agree15:03
mnaserwe run linters without sudo, but functionals with.. but i dunno, it doesnt feel so nice :<15:04
corvusmnaser: 'tox -e functional' sounds great to me, is there a downside?15:04
mnasercorvus: one job needs sudo and another doesn't, though i dont think functional tests of ansible roles are possible without sudo unfortunately15:04
corvusi'm still not seeing the problem :(15:05
* rcarrillocruz TIL about PTI pages...15:07
*** pcaruana has quit IRC15:10
pabelangertox -efunctional is also a fine job name15:14
*** openstackgerrit has quit IRC15:31
*** chmouel has quit IRC15:32
*** dmellado has joined #zuul15:45
SpamapS{name: tox-efunctional, parent: tox-with-sudo, vars: { environment: functional }}15:49
*** pcaruana has joined #zuul15:49
SpamapSi done wrote a job15:50
*** gouthamr has quit IRC16:05
*** jpena is now known as jpena|off16:09
SpamapStristanC: FYI, the latest aws nodepool driver patch is 'sploding for me16:21
SpamapShttp://paste.openstack.org/show/728615/16:21
SpamapSKinda looks like maybe the tests aren't actually exercising aws16:22
* SpamapS is looking into it now16:22
SpamapS(pretty sur ethe fix is easy tho)16:23
AJaegerSpamapS: http://git.openstack.org/cgit/openstack-infra/openstack-zuul-jobs/tree/zuul.d/jobs.yaml#n43016:24
*** hashar has quit IRC16:34
*** jiapei has quit IRC16:35
*** gouthamr has joined #zuul16:46
*** neilsun has quit IRC17:05
*** hashar has joined #zuul17:09
*** elyezer has quit IRC17:10
*** elyezer has joined #zuul17:11
*** electrofelix has quit IRC17:25
*** mmedvede has quit IRC17:25
*** jpena|off has quit IRC17:25
*** panda|off has quit IRC17:25
*** EmilienM has quit IRC17:25
*** jlvillal has quit IRC17:25
*** Diabelko has quit IRC17:25
*** corvus has quit IRC17:25
*** jlvillal has joined #zuul17:27
*** hashar has quit IRC17:27
*** gouthamr has quit IRC17:29
*** jeblair has joined #zuul17:30
*** EmilienM has joined #zuul17:30
*** jpena has joined #zuul17:36
*** jeblair is now known as corvus17:41
*** elyezer has quit IRC17:43
SpamapSAJaeger: ^^ mnaser17:47
SpamapSAJaeger: rather, thanks.. ^^ was for mnaser17:47
SpamapSmmm just made 3 new executors live.17:48
* SpamapS pets zuul... good service.17:48
*** DangerousDaren has quit IRC17:48
ShrewsSpamapS: careful... it bites17:49
jlkI might actually get to do some Zuul hacking this weekend, while on a houseboat with my dad and family.17:51
jlkWorking on github3.py app auth support and checks API17:51
SpamapSneat17:57
*** mmedvede has joined #zuul18:00
corvusjlk: that's great!  i added line comment support in the gerrit driver, hopefully we can do the same with the checks api18:03
jlkcorvus: that's the plan!18:03
jlkhttps://github.com/sigmavirus24/github3.py/pull/888 is the open PR for adding the library interface to support these APIs18:03
jlkwhich will make doing it in Zuul quite easier.18:04
corvusslick18:04
mnaserSpamapS: heh, nice18:06
mnaseri was wondering if we should drop our local zuul-jobs and consume 'zuul-jobs' directly18:06
*** ChanServ has quit IRC18:16
mnaser(is that something that's okay in general ^)18:22
*** ChanServ has joined #zuul18:22
*** barjavel.freenode.net sets mode: +o ChanServ18:22
*** dmellado has quit IRC18:22
*** elyezer has joined #zuul18:34
AJaegercorvus: should we link on zuul-ci to zuul-sphinx? Please see https://review.openstack.org/59128218:58
corvusAJaeger: lgtm.  we're wildly inconsistent with our trailing slashes!19:08
corvusof course, now we need a 6th piece of documentation to balance out the page again19:09
AJaeger;)19:09
dmsimardThere's no mention of "User authorization callback URL" in the docs for GitHub setup: https://zuul-ci.org/docs/zuul/admin/github_setup.html19:09
dmsimardBut it's a required field when creating a GitHub app.. does anyone know what it should be ?19:10
AJaegercorvus: https://review.openstack.org/#/c/592292/ merged, so now docs.openstack.org/infra/zuul-sphinx redirects to zuul-ci.org/docs/zuul-sphinx19:10
AJaegeroops, did not publish yet19:10
AJaegeryeah, too large backlog...19:10
*** openstackgerrit has joined #zuul19:10
openstackgerritMerged openstack-infra/zuul-website master: Link to Zuul Sphinx extension  https://review.openstack.org/59128219:10
dmsimardhttps://i.imgur.com/IOM6gcn.png19:11
corvusAJaeger: https://zuul-ci.org/docs/zuul-sphinx/ exists19:12
corvusAJaeger: oh, you mean the redirect isn't in place yet.  gotcha19:12
AJaegercorvus: exactly, 4h backlog of post queue. Let's check tomorrow for the redirect. Content is available in both right now and we don't want anybody to find outdated docs on docs.o.o/infra/...19:12
jlkdmsimard: hrm. One sec19:17
SpamapShm19:18
SpamapSanyone know why I might be seeing this: http://paste.openstack.org/show/728629/19:18
SpamapSset up some new executors and they don't seem to be able to merge19:19
SpamapSValueError: SHA b'2d5c655650e86201e0636f8a9105d2992c36340c' could not be resolved, git returned: b'2d5c655650e86201e0636f8a9105d2992c36340c missing'19:19
jlk"In "User authorization callback URL", type the full URL to redirect to after a user authorizes an installation. This URL is used if your app needs to identify and authorize user-to-server requests."19:19
jlkdmsimard: I don't believe Zuul does any user-to-server things, so this could just point to the Zuul install's home page19:20
dmsimardjlk: should we add that to the docs to remove the ambiguity ?19:20
jlkYeah if it's a confusing thing, which it seems to be19:20
jlkhttps://developer.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/19:21
jlkthat's what it's talking about19:21
SpamapSseems like the initial jobs that ran on this executor cloned the repos, but now they're not fetching19:22
corvusSpamapS: it looks like there may be some ref that's on a merger (or executor) that isn't on that executor.  what's the line before that one?19:24
corvusSpamapS: (in the debug log if you have it)19:24
SpamapShttp://paste.openstack.org/show/728630/19:25
SpamapSthere's a bunch more lines before19:25
SpamapSnow, I'd expect that at some point it needs to go fetch that ref from github19:26
SpamapS(I do not have any dedicated mergers)19:26
corvusSpamapS: the 'Updating repository' line should have done that, it calls this: https://git.openstack.org/cgit/openstack-infra/zuul/tree/zuul/merger/merger.py#n36819:29
corvusSpamapS: well, that should have fetched the tags from the executor's cache.  previously, the executor should have updated its cache from its upstream (presumably github) in the same way.19:30
corvusSpamapS: but this line, which precedes the error, is the ref / commit that the error is about: 2018-08-22 12:24:32,484 DEBUG zuul.AnsibleJob: [build: ea977a3d26a3447bb3bcc79b9a510be4] Create reference refs/tags/deploy0 at 2d5c655650e86201e0636f8a9105d2992c36340c in /tmp/tmplohxe_ka/ea977a3d26a3447bb3bcc79b9a510be4/work/src/github.secureserver.net/cloudplatform/hoist19:31
corvusSpamapS: is there, by any chance, a possibily that refs/tags/deploy0 was deleted from upstream?19:31
SpamapScorvus: not that I know of19:32
SpamapSactually I don't see that tag19:33
SpamapSnot even sure where it's getting that tag from19:33
corvusSpamapS: if it existed on the merger node (in your case, some random executor) at the time the initial merge was performed (shortly after the item was enqueued) and then removed between then and the time the job started, i would expect to see that error19:34
SpamapSI can't find that tag anywhere19:35
SpamapSor even that string19:35
SpamapSin any configs or anything19:35
SpamapSbut I think I see what may be breaking stuff19:36
SpamapSthat build was started on an executor which I stopped19:36
* SpamapS tries restarting the old one19:36
corvusi have to grab lunch; biab19:37
SpamapScorvus: ty for looking19:38
*** pcaruana has quit IRC19:47
*** weshay has joined #zuul19:47
weshayany thoughts on how to checkout out an upstream change and automatically pull any chain of deps from a depends-on?19:48
weshaylocally outside of the upstream ci system19:48
*** rfolco has joined #zuul19:48
weshaymordred, ^19:51
*** panda has joined #zuul19:55
*** harlowja has joined #zuul20:42
SpamapSweshay: that wouldn't be a super hard entry-point to write into zuul20:43
SpamapSlike zuul-checkout <connectionname> <project> <change-#> <job-name>20:43
weshayrlandy, ^20:43
SpamapSand have it assemble the required-projects from that job with that change the same way the executor does20:43
SpamapSthe only sort of wonky thing would be configuring the connections on your local machine20:44
SpamapSbut yeah, I think you could write that as an addition to zuul fairly easily20:44
SpamapS(to be clear, zuul-checkout doesn't exist ;)20:44
SpamapSit used to20:44
SpamapSbut things are different now20:45
rlandyoff hand, do you know where we would look for the code where the executor figures this (zuul_changes) out? to comapre20:46
weshaySpamapS, ya.. I thought that's what zuul-cloner was supposed to do, but that project died20:46
SpamapSzuul-cloner relies on ZUUL_REF20:49
SpamapSwhich isn't a thing when the mergers don't expose refs anymore.20:49
SpamapSI was just looking .. I think it's going to be mostly in zuul.merger20:51
weshaythanks SpamapS20:56
*** jpena is now known as jpena|off20:57
SpamapSyeah looks like if you can just instantiate a Repo object that gets you pretty far, and then you might be able to refactor some of the stuff in zuul.manager to be consumable for assembling the dependencies21:01
SpamapS(I've said a few times that I'd really love to have a localized CLI zuul-executor so keep me posted if you get some traction)21:02
*** samccann has quit IRC21:07
corvusthere are some stories in storyboard which describe the problem and solution21:08
*** gouthamr has joined #zuul21:12
openstackgerritJarek Lukow proposed openstack-infra/zuul master: Add missing parentheses to title invocation  https://review.openstack.org/59536121:21
mnaseri asked this earlier but might have been missed21:25
mnasershould we use upstream openstack-infra/zuul-jobs or maintain a local identical clone21:25
corvusmnaser: we aim to support zuul-jobs continuously; the policies around new features and deprecation are designed to support that.  it should be fine if you upgrade zuul relatively soon after each release (or, obviously, CD it).  but if you don't want to commit to that or just want the extra safetly of pulling on your schedule, of course that's fine21:34
mnasercorvus: i see, well, we're involved enough to get a grasp on whats going on but i guess the important thing here is it's not a movable target that can get super fundamental changes overnight21:35
corvusmnaser: right.  super-fundamental changes take at least a few weeks.  :)  https://zuul-ci.org/docs/zuul-jobs/deprecation.html21:37
corvusdoes anyone happen to have a role that writes out a near-copy of the zuul inventory as a plain ansible inventory?  specifically, i just need the hosts and ip addresses, but not the zuul user, etc.21:37
corvusodyssey4me, SpamapS: ^ perhaps?21:37
SpamapScorvus: we still have it written as a yaml file21:38
corvusSpamapS: oh yeah that's fine21:38
corvusSpamapS: i basically just need to strip out all the extra stuff21:38
SpamapSWhatever mine does, it happens via zuul-jobs roles.21:39
corvusSpamapS: hrm, i didn't see a zuul-jobs role to do this21:39
* SpamapS digs through21:44
dmsimardSpamapS, tristanC: btw I added comments on the nodepool AWS driver patch https://review.openstack.org/#/c/535558/ I'm working on a poc and I have a test environment readily available for... testing22:30
*** ChanServ has quit IRC22:49
SpamapScorvus: sorry I'm having trouble finding where we actually write it out22:50
corvusSpamapS: ok, thanks.  i'm writing a nifty new role22:51
SpamapScorvus: excellent. :)22:54
openstackgerritJames E. Blair proposed openstack-infra/zuul-jobs master: Add write-inventory role  https://review.openstack.org/59537823:03
*** ChanServ has joined #zuul23:03
*** barjavel.freenode.net sets mode: +o ChanServ23:03
openstackgerritJames E. Blair proposed openstack-infra/zuul-jobs master: Add write-inventory role  https://review.openstack.org/59537823:32
*** rlandy has quit IRC23:39
*** gouthamr has quit IRC23:48

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