Friday, 2018-03-09

*** JasonCL has joined #zuul00:03
*** JasonCL has quit IRC00:04
*** JasonCL has joined #zuul00:05
*** dtruong has quit IRC00:05
*** dtruong has joined #zuul00:06
*** JasonCL has quit IRC00:06
*** dtruong has quit IRC00:12
*** dtruong has joined #zuul00:12
mnaserso ill dig into this now00:14
mordredmnaser: tools/install-js-tools.sh is a script thatwill install node and yarn - although if you have a recent node and not yarn you can just lift the yarn lines out00:14
mnasermordred: im almost tempted just to angular-ify that little box too but i think that'll probably not be as easy as i think it is00:14
mordredmnaser: npm run start will spawn the status page via webpack-dev-server with it configured to use the live zuul status.json00:15
mnaserim not sure how jquery+angular might sit well together00:15
mordredthe live openstack status.json that is00:15
mordredmnaser: yah - part of me is thinking just getting the status refactor done would get us in a better place - but I have a hunch that'll be slightly more work :)00:15
* mnaser is in npm install waiting room00:17
mnasernpm ERR! package.json Non-registry package missing package.json: graphitejs@https://github.com/prestontimmons/graphitejs/archive/master.tar.gz.00:19
mnasercome onnnn00:19
*** dkranz has quit IRC00:19
mnasermordred: any workarounds for that?00:20
*** dkranz has joined #zuul00:20
mnaseri cant `npm install` because of that00:21
mnaserok, it works somehow now magically00:22
mnaserill stop the noise00:22
mordredmnaser: oh - yah - we're set up to use yarn instead of npm for install ...00:23
mordredmnaser: so it's possible npm install might or might not work ... but if it does, cool00:23
*** JasonCL has joined #zuul00:29
*** xinliang has quit IRC00:37
*** JasonCL has quit IRC00:46
*** xinliang has joined #zuul00:49
*** xinliang has quit IRC00:49
*** xinliang has joined #zuul00:49
*** JasonCL has joined #zuul00:50
*** JasonCL has quit IRC00:59
*** JasonCL has joined #zuul01:00
*** JasonCL has quit IRC01:00
*** JasonCL has joined #zuul01:03
*** JasonCL has quit IRC01:09
*** JasonCL has joined #zuul01:17
*** JasonCL has quit IRC01:19
*** JasonCL has joined #zuul01:22
*** JasonCL has quit IRC01:26
*** JasonCL has joined #zuul01:31
*** rlandy has quit IRC01:33
*** JasonCL has quit IRC01:37
*** JasonCL has joined #zuul01:43
*** JasonCL has quit IRC01:44
*** Diabelko has joined #zuul02:13
Diabelkohello02:13
Diabelkois there any way to kill whole buildset and/or job without zuul trying to run it again?02:14
clarkbDiabelko: if you kill it during the run or post-run phases it won't be retried02:16
clarkba new patchset (with gerrit at least) will stop running all the job and start new ones for the new patchset02:16
clarkbI don't think there is a more direct way than that02:17
Diabelkommmm, my job hanged (destination VM got rebooted) and it was still trying to keep ansible/ssh connection02:18
Diabelkoit was already in the run phase02:18
Diabelkowhen I killed it, it started again02:18
Diabelkois there any specific process I need to kill? maybe I killed it 'too far' at the process tree?02:18
clarkbDiabelko: I typically kill the ansible-playbook process02:19
clarkband that seems to do what I expect02:19
Diabelkook, let me try that02:19
*** JasonCL has joined #zuul02:20
*** harlowja has quit IRC02:21
Diabelkook, I killed ansible-playbook process and it went straight to post02:22
Diabelkothanks02:22
*** JasonCL has quit IRC02:25
*** swest has quit IRC02:29
*** swest has joined #zuul02:43
*** JasonCL has joined #zuul03:50
*** JasonCL has quit IRC03:59
*** jaianshu has joined #zuul04:21
*** swest has quit IRC05:23
*** harlowja has joined #zuul05:25
*** dkranz has quit IRC05:56
*** dkranz has joined #zuul05:56
*** swest has joined #zuul06:00
*** harlowja has quit IRC06:00
*** swest has quit IRC06:05
*** swest has joined #zuul06:06
*** harlowja has joined #zuul06:19
*** sshnaidm|afk has quit IRC06:47
*** jaianshu has quit IRC07:38
*** jaianshu has joined #zuul07:39
*** harlowja has quit IRC08:08
*** tobasco|away is now known as tobasco08:25
*** electrofelix has joined #zuul08:28
*** threestrands_ has quit IRC08:48
*** JasonCL has joined #zuul09:20
*** JasonCL has quit IRC09:25
*** hashar has joined #zuul09:49
*** mhu has joined #zuul09:52
*** jaianshu_ has joined #zuul09:58
*** jaianshu has quit IRC10:02
*** JasonCL has joined #zuul10:41
*** JasonCL has quit IRC10:45
*** JasonCL has joined #zuul11:11
*** JasonCL has quit IRC11:20
*** JasonCL has joined #zuul11:42
*** jaianshu_ has quit IRC11:44
*** JasonCL has quit IRC11:52
*** JasonCL has joined #zuul12:38
*** JasonCL has quit IRC12:41
*** JasonCL has joined #zuul12:41
*** JasonCL has quit IRC12:53
*** JasonCL has joined #zuul13:10
*** rlandy has joined #zuul13:31
*** JasonCL has quit IRC13:59
*** JasonCL has joined #zuul14:23
*** JasonCL has quit IRC14:27
openstackgerritTobias Henkel proposed openstack-infra/zuul master: Add new tox-remote job  https://review.openstack.org/55130114:45
openstackgerritTobias Henkel proposed openstack-infra/zuul master: Add new tox-remote job  https://review.openstack.org/55130114:49
openstackgerritTobias Henkel proposed openstack-infra/zuul master: Add new tox-remote job  https://review.openstack.org/55130114:54
openstackgerritTobias Henkel proposed openstack-infra/zuul master: Add new tox-remote job  https://review.openstack.org/55130115:02
*** JasonCL has joined #zuul15:05
*** JasonCL has quit IRC15:07
*** JasonCL has joined #zuul15:10
*** JasonCL has quit IRC15:11
tobiashmordred: ^15:11
*** JasonCL has joined #zuul15:12
clarkbthat reminds me reviewing the js topic is on my todo list15:19
clarkbtobiash: looks like tests are not passing15:21
tobiashclarkb: yepp noticed that15:22
*** JasonCL has quit IRC15:22
openstackgerritMerged openstack-infra/nodepool master: Revert "Add /label-list to the webapp"  https://review.openstack.org/54842415:26
openstackgerritMerged openstack-infra/nodepool master: Consolidate status results  https://review.openstack.org/54813415:27
openstackgerritMerged openstack-infra/nodepool master: Consolidate node_list, add generic filter  https://review.openstack.org/54813515:27
openstackgerritMerged openstack-infra/nodepool master: webapp: use content detection for return  https://review.openstack.org/54844015:30
*** JasonCL has joined #zuul15:30
openstackgerritMerged openstack-infra/nodepool master: Add label-list webapp endpoint  https://review.openstack.org/54844215:32
openstackgerritTobias Henkel proposed openstack-infra/zuul master: Add new tox-remote job  https://review.openstack.org/55130115:57
corvushi -- i'm semi-back today and am going to try to start catching up on things so i'll be really back next week16:29
corvusi'm declaring irc bankruptcy though, so if you pinged me with something important in the last week or so, please do so again :)16:30
clarkbcorvus: probably the most important bits are that the zuul javascript things landed then had to be worked around then monty got everything deployed and happy yesterday. There is also a thread on zuul list related to that16:35
clarkbotherwise I think most of us have just been crawling back to normality as a snails pace (at least that is how I have felt about my return home)16:35
corvusclarkb: at 15:19 you say reviewing js stuff is on your list -- is there more stuff?16:35
clarkbcorvus: ya topic:javascript though its largely refactoring and improving now rather than "make it work again"16:35
corvuscool, sonds great :)16:36
corvussounds16:36
mordredindeed16:40
mordredcorvus, clarkb: there is a bug in the currently deployed status page that mnaser and I were looking at yesterday - still no fix - but it's not a fatal bug or anything16:40
clarkbmordred: the (x) on the search field thing?16:41
mordredyup16:41
mnaseryes, i got sucked into some other stuff in $work to put out fires16:41
mordredmnaser: no worries - we'll sort it out eventually16:41
mnasermordred: i'll put aside an hour just to see whats going on because im genuinely curious heh16:41
mordredmnaser: I'm taking some opportunities to dig in slightly further in to some places to make sure I understand exactly what's going on16:41
mnasermordred: my theory is that for some reason, the span z-index is not sitting on top of the textbox16:42
mnasermordred: because if you notice, the pointer doesnt change when you hover, even though it has cursor: pointer; in css afaik16:42
mordredmnaser: yah. I didn't have those words fully, but that was somewhat what my brain was thinking16:42
mordredmnaser: yes - I did notice that too16:42
mnaseri tried hacking z-index:999999; in css but that didn't do it either so bleh16:42
corvusi'm super-excited we're now in a position to accept js patches from mnaser :)16:43
mnasercorvus: yeah, the work that mordred did is *really* painful so im glad he was able to get through it all16:43
mnaserso many times i've had things to convert to webpack or some sort of js dependency management that i'd just give up because it wasn't something you could 'ease' into16:44
openstackgerritMonty Taylor proposed openstack-infra/zuul master: web: add /{tenant}/job.html page to display job details  https://review.openstack.org/53554516:48
openstackgerritMonty Taylor proposed openstack-infra/zuul master: web: add /{tenant}/projects.html web page  https://review.openstack.org/53787016:48
openstackgerritMonty Taylor proposed openstack-infra/zuul master: Fix indentation and renable the eslint rule  https://review.openstack.org/54567116:48
openstackgerritMonty Taylor proposed openstack-infra/zuul master: Shift html templates into components  https://review.openstack.org/55132716:48
openstackgerritTobias Henkel proposed openstack-infra/zuul master: Add new tox-remote job  https://review.openstack.org/55130116:52
mordredcorvus: ^^ the last patch there is a refactor of a few things - even if you don't do an immediate deep review - would you mind glancing it over to make sure it doesn't make the js structure less understandable? (there are a couple of improvements and I think it actually clarifies at least one thing, but I've learned enough about how everything hangs together I want to be careful to not move the goalposts too16:54
mordredmuch)16:54
openstackgerritMatthieu Huin proposed openstack-infra/zuul-jobs master: Publish build status to MQTT  https://review.openstack.org/55132916:55
mordredthe primary issue it solves is that we see a flash of unexpanded template when loading the dashboard pages. the secondary issue is that there was confusion the other day about variable names due to there being both angular and webpack templating going on in the same file16:55
mordredcorvus: oh - also - welcome semi-back!16:59
*** harlowja has joined #zuul17:00
corvusmordred: i don't understand the plumbing completely and may not be capable of it today, but my general impression of the change is favorable and that it makes things more intuitive.17:00
mordredcorvus: ok. good- that's the main feedback I was looking for - the details of the plumbing can be a topic for later17:01
mordredmnaser: I had a hunch that the x issue had something to do with having wrapped the status page in an angular controller ... but I just went back and checked in the old version of the stack where we had things broken out, and it turns out the x was broken by the very first webpack patch17:04
mordredmnaser: which is still huge - but you can see the original version here: https://review.openstack.org/#/c/538099/12 before we squashed a bunch of the changes17:04
openstackgerritTobias Henkel proposed openstack-infra/zuul master: Add new tox-remote job  https://review.openstack.org/55130117:12
mordredmnaser: BOOM! Found it17:17
mnasermordred: nice!  i'm curious17:17
mordredmnaser: bootstrap version17:17
mnaseroh that's very likely17:17
mnaseri guess we bumped versions?17:17
mordredmnaser: the old versoin was using bootstrap 3.1.1 - but in the new code I wasn't strict enough and it pulled in 3.317:18
mnaseri guess we can pin back to 3.1.1 till we figure everything out17:18
mordredyup17:18
mnaseror maybe hop into 4.0.0 too17:18
mnaseroh 4.0.0 looks pretty17:20
openstackgerritTobias Henkel proposed openstack-infra/zuul master: Add new tox-remote job  https://review.openstack.org/55130117:21
tobiashclarkb: responded to your comments ^17:21
*** electrofelix has quit IRC17:22
openstackgerritMonty Taylor proposed openstack-infra/zuul master: web: add /{tenant}/jobs/{job_name} route  https://review.openstack.org/55097817:30
openstackgerritMonty Taylor proposed openstack-infra/zuul master: web: add /{tenant}/projects routes  https://review.openstack.org/55097917:30
openstackgerritMonty Taylor proposed openstack-infra/zuul master: web: add /{tenant}/pipelines route  https://review.openstack.org/54152117:30
openstackgerritMonty Taylor proposed openstack-infra/zuul master: web: add /{tenant}/job.html page to display job details  https://review.openstack.org/53554517:30
openstackgerritMonty Taylor proposed openstack-infra/zuul master: web: add /{tenant}/projects.html web page  https://review.openstack.org/53787017:30
openstackgerritMonty Taylor proposed openstack-infra/zuul master: Fix indentation and renable the eslint rule  https://review.openstack.org/54567117:30
openstackgerritMonty Taylor proposed openstack-infra/zuul master: Shift html templates into components  https://review.openstack.org/55132717:30
openstackgerritMonty Taylor proposed openstack-infra/zuul master: Use bootstrap 3.1.1 instead of 3.3.7  https://review.openstack.org/55133817:30
mordredmnaser, tobiash, corvus, clarkb: 551338 should fix the x issue - and I rebased the rest of the stack on it so it's safe to go ahead and land17:36
tobiashclarkb, mordred, corvus: 551301 is green now :)17:45
corvustobiash: thanks for picking that up!17:46
mordredtobiash: woot17:46
tobiashmy first idea was a multinode test, but that isn't even needed as long as we connect to localhost via the interface ip :)17:48
corvustobiash: yeah, that's the thought process i went through too :)17:48
*** harlowja has quit IRC17:54
mordredy'all are smarter than I am17:55
*** harlowja has joined #zuul17:56
tobiashwell, I wouldn't have managed to do this crazy js refactoring...17:57
tobiashmordred: I think there are a few minor glitches on 53787017:58
tobiashmordred: and 535545 too17:59
*** harlowja has quit IRC18:00
clarkbdoes paramiko really require you to open the socket yourself?18:01
mordredtobiash: yah - those are a bit better in the components patch - but maybe I should reorganize that stack so that the component patch comes first ...18:01
clarkbclearly its been a while since I had to paramiko18:01
openstackgerritMerged openstack-infra/zuul master: Use bootstrap 3.1.1 instead of 3.3.7  https://review.openstack.org/55133818:02
tobiashmordred: ah, that fixes one of the glitches: https://review.openstack.org/#/c/551327/2/web/templates/project.html18:03
*** hashar is now known as hasharDinner18:03
corvusclarkb: i +2d 551301 and left +W for you18:04
tobiashmordred: found one glitch in 55132718:04
mordredtobiash: the other div issues are related to the opening div being at the end of the body line18:05
mordredwelll - not the 551327 one18:05
tobiashah, ok18:05
openstackgerritMonty Taylor proposed openstack-infra/zuul master: Shift html templates into components  https://review.openstack.org/55132718:08
clarkbtobiash: rereviewed, just a couple things mostly to respond to your responses18:09
tobiashclarkb: yah, /etc/resolv.conf sounds better and generic enough18:09
tobiashclarkb: regarding the keep jobdir, what do you suggest?18:10
tobiashan env var ZUUL_REMOTE_KEEP and set this in ci?18:11
clarkbya that might be a good way to do it18:11
*** dmellado has quit IRC18:16
openstackgerritTobias Henkel proposed openstack-infra/zuul master: Add new tox-remote job  https://review.openstack.org/55130118:17
tobiashclarkb: that should address your comments ^18:17
openstackgerritTobias Henkel proposed openstack-infra/zuul master: Add new tox-remote job  https://review.openstack.org/55130118:19
*** dmsimard is now known as dmsimard|afk18:25
openstackgerritTobias Henkel proposed openstack-infra/zuul master: Refactor load sensors into drivers  https://review.openstack.org/54927518:30
openstackgerritTobias Henkel proposed openstack-infra/zuul master: WIP: Add cgroup support to ram sensor  https://review.openstack.org/54950618:30
openstackgerritClint 'SpamapS' Byrum proposed openstack-infra/zuul master: Use re2 for change_matcher  https://review.openstack.org/53638918:33
SpamapScorvus: ^ uses released py35 compatible fb-re2 now18:33
SpamapSguessing we aren't going to be able to do that for 3.0 though18:34
SpamapSWhich presents a problem for adding it as-is in 3.0.x or 3..118:34
SpamapSI wonder if we could make it a mode flag for 3.x and then flip the default in a 4.x release somewhere down the road.18:36
*** dmellado has joined #zuul18:42
clarkblooks like zuul.o.o status page is broken by bootstrap18:47
clarkbmordred: mnaser ^18:47
mnasero18:47
clarkbTypeerror: e[r] is undefined18:48
clarkbin bootstrap:5418:48
mnasermordred: is it possible we switched bootstrap css but not the js?18:48
mnaserwait18:48
mnaserGET http://zuul.openstack.org/vendor.472d16695ac5d771265e.js 404 (Not Found)18:48
mnaserclarkb: do you know if whatever generation process didn't probably run cleanly by any chance?18:48
clarkbI don't18:49
clarkbbut I confirm the same 40418:49
mordredclarkbm, mnaser uhoh- lemme look18:53
mrhillsmancorvus clarkb mordred i can try out the guide18:53
mrhillsmanis it in-tree?18:54
mordredclarkb: OH - crap - I grok the bug18:54
mordredclarkb: for now, restarting zuul-web will fix it18:54
clarkbmordred: are we caching the files and not serving them when they change ?18:55
mordredclarkb: we're doing a directory listing and registering static routes - at startup time18:55
mordredclarkb: so when the hashed files update, there are no routes for the new files18:56
tobiashare the hashed files hashed by content or something random??18:58
clarkbprobably worth updating to just serve all the files in that dir?18:58
mordredclarkb: yah - I'll get a fixed one18:59
tobiashor do they only change on web changes?18:59
mordredtobiash: they're by content - to facilitate cache-busting18:59
tobiashso currently every change to zuul-web will break your installation18:59
mordredtobiash: yes. until we fix this at least19:00
mordredtobiash: we could also turn off the hashed filenames for now until we get a better fix19:00
*** harlowja has joined #zuul19:00
mnaserthat might make deployments complicated depending on how caching works19:00
mnaserbut yeah. 'until we get a better fix'19:00
mordredyah. it's really most applicable for folks serving the files directly from apache or whatnot19:01
tobiashmordred: inotify on the static path?19:01
tobiashand then a reload?19:01
tobiashor a signaled reload and sighup via puppet19:01
mordredclarkb: ok - I restarted zuul-web - status should be working again - I'll work now on a real fix so that it does't happen again19:07
mrhillsmanwhere's that getting started guide? https://docs.openstack.org/infra/zuul/admin/zuul-from-scratch.html ?19:07
clarkbmordred: thanks19:07
clarkbmrhillsman: https://docs.openstack.org/infra/zuul/admin/quick-start.html is the quick start then zuul from scratch is more in depth aiui19:08
mrhillsmanok cool19:08
clarkbSpamapS: it may be worth considering making that change now simply to avoid any transitions later19:10
clarkbSpamapS: a few of us early adopters might have to cope but that should be minimal19:10
tobiashI think the zuul-from-scratch is intended to be tried for starters19:10
tobiashand more complete19:10
tobiashthe quick start misses many things19:10
clarkbwe do continue to use negative lookahead in places to say things like don't run this job on the driverbranches branch and not on ocata and so on. I think those should all be solveable by doing the branch based configs properly19:13
mrhillsmantobiash quite possibly, i think of the quickstart as someone has heard about and have a general idea of the concept(s) zuul facilitates (attended a talk, read code/docs) and are ready to just install19:16
mrhillsmani'm going to help as i can with trying both and giving some feedback since i consider myself still quite new to zuul19:18
tobiashmrhillsman: yah, the quick start is more of a general overview and the from scratch is the walk through how to set it up for the first time19:18
SpamapSclarkb: I did some spot checking and there are a few regexes in infra that would need to be re-done as negative matches19:18
SpamapSclarkb: but I agree, if we *can* do it before release, I'd like to19:18
SpamapSJust figured the train was a little too far down the tracks to pull that switch.19:19
clarkbmaybe? I know corvus has been using this pre release time to make those jumps19:20
clarkbbecause less painful than waiting down the road19:20
corvusmrhillsman: yeah, the zuul-from-scratch is the thing i mentioned earlier19:20
SpamapSclarkb: yeah that was the intention, but the fb-re2 guys took forever to cut 1.0.6 :-/19:21
SpamapSI'm actually pretty excited about there being a good re2 python3 module now just in general19:21
SpamapSI've always disliked the built in re module.19:21
mrhillsmancorvus: ah ok, i will go through that then19:22
corvusSpamapS: we're still waiting on one more release blocker thing, we may be able to squeeze it in19:22
SpamapScorvus: oh sweet. Is that release blocker the js stuff?19:22
mordredSpamapS: log streaming19:22
* mordred glares at self19:23
corvusSpamapS: it's (mostly) landed, though i think we're learning we need to land a little more cleanup.. it's ^ that19:23
corvusSpamapS: i think what we may need to do for the re2 thing is to land the negative matcher first, ask early adopters to port, then land the re2 change itself19:24
corvusbasically, same thing we'd do after release, but with a much abbreviated timetable19:24
SpamapScorvus: yeah that makes sense.19:24
SpamapSWe coud actually land it where the negative matchers only use re2 also.19:25
corvusSpamapS: wfm19:25
SpamapSThat way people can phase in and know it will work..19:25
SpamapSOk I'll put that on my urgent todo list for next week..19:25
corvusSpamapS: cool, thanks.  i should be able to pitch in by then too.19:25
SpamapSwoot19:26
SpamapShttp://automationbroker.io/ <-- attending a talk on this.... .might be a group to collaborate on as a parallel effort similar to zuul but container focused.19:27
SpamapSs/on/with/19:27
corvusshould we normalize the words 'irrelevant' and 'ignore'?  ie, use 'ignore-files' instead of irrelevant files, or 'irrelevant-branches' instead of 'ignore-branches' ?19:27
SpamapSyeah one is imperative and one is declarative19:28
SpamapSI'd say we're aiming at declaring, not commanding..19:28
corvusSpamapS: yeah, that's what i was thinking when i went with the (admittedly awkward) irrelevant-files19:29
SpamapSso I'd lean toward normalizing on irrelevant. But at the same time, people are used to ignore.19:29
corvusSpamapS: 'irrelevant-files' is the existing thing... you mean they're used to ignore from other things?19:29
SpamapScorvus: correct, I think people are used to the word ignore from other things in the automation space.. But I personally think irrelevant-files and irrelevant-branches is more clear as to what will be done with that field..19:30
corvusSpamapS: okay, let's be the vanguard here and stick with irrelevant :)19:31
SpamapS:-D19:32
AJaegercorvus: ignore is easier to type - but that might be an argument for irrelevant ;)19:32
corvusi guess "ignored-foo" is more declarative and easier to type, if we wanted to open up a third option.19:33
corvusthat seems like a cop out though :)19:33
corvusAJaeger: i'll score your argument as a point for both.  :)19:34
Shrewsi like "unregarded"  :-P19:34
AJaegercorvus: exactly19:34
corvusShrews: neglected19:34
SpamapSf-these-branches:  ?19:35
SpamapSf-these-files:19:35
ShrewsSpamapS: oh, that reminds me of this thing I saw today: https://alcohollick.com/tfw.html19:36
corvusf stands for fun19:36
* AJaeger ignores this relevant discussion now and wishes everybody a fun weekend ;)19:47
*** sshnaidm|afk has joined #zuul19:51
*** sshnaidm|afk has quit IRC19:52
*** sshnaidm|afk has joined #zuul19:53
clarkbmordred: the early route stuff in your js stack is not controversial right? I should just approve things if they look good?19:54
SpamapSShrews: :-D19:57
clarkb"Maybe stay inside" <- dublin weather service19:57
mordredclarkb: yah - to my knowledge those are non-controversial20:03
clarkbmordred: I left a minor nit on the first one, probably not worth respinning but wanted you to see it20:03
clarkbmordred: in the routes what does the .* do in {project_name:.*} ? I notice it wasn't part of the get job but is part of get project?20:05
clarkbappears to state that any character is allowed in a project name20:06
clarkbbutI guess we don't allow any character in job names?20:06
mordredwell -but we allow /'s in project names20:07
mordredsame thing in the get_key thing20:07
*** adam_g has quit IRC20:07
clarkboh right openstack/nova20:07
clarkbso if we don't explicitly allow it there it won't do the right routing20:07
mordredyou wan to GET /openstack/git.openstack.org/openstack-infra/zuul.pub ... so /{tenant}/{project:.*}.pub' puts openstack in tenant and git.openstack.org/openstack-infra/zuul in project20:08
*** adam_g has joined #zuul20:08
mordredexactly20:08
clarkbmordred: https://review.openstack.org/#/c/550979/3 that has some thoughts about error hanlding and reporting which may affect the rest of the stack if you can take a look really quick20:15
*** threestrands has joined #zuul20:22
mordredclarkb: I'm glad you just reviewed that stuff - it'll give you good context for the next patch I'm about to push up20:23
mordredclarkb: hrm. interesting point re: exceptions, gearman and 404 vs. 50020:24
openstackgerritMonty Taylor proposed openstack-infra/zuul master: Serve the static files more dynamically  https://review.openstack.org/55136620:24
mordredclarkb: ^^ there's a thing to consider for the static file issue of earlier - the unittests in zuul should be testing that it works - but also I tested synthetically with http://paste.openstack.org/show/696914/20:26
clarkbcool I'll get back to the reviews in a bit but digging up lunch now20:26
mordredclarkb: lunch is a good plan20:27
clarkbcurious to see what you have to say about 500s vs 404s there20:27
mordredclarkb: yah. me too - I'm mulling currently :)20:27
corvusmordred, clarkb: iirc, there was a change recently to return some specific 'project not found' in json... maybe do the same for tenant?21:08
clarkbmordred: corvus https://review.openstack.org/#/c/541521/14 comments again there. Mostly I'm just noticing things as I go through the stack that probably apply to the whole stack but also aren't fatal flaws21:12
clarkbI'm not approving things in case that feedback is useful enough to deserve respinning some things21:14
mordredclarkb: ++ on 541521 json/python/json comment21:22
mordredcorvus: yah - that's probably a good call21:22
*** threestrands has quit IRC21:22
clarkbI'm now somewhat lost in a sea of js and html21:26
clarkbso less likely to be insightful at this point :)21:26
clarkbfor the templating thing to make sure I understand right, instead of having a template already loaded in the html which cause the unexpanded flash we load the template with the js so we don't show anything until we are able to load and expand the template?21:27
mordredclarkb: yah- the template basically gets stored as string constant in the js as part of the webpack compile21:28
mordredclarkb: it'll take that require('') and expand it to just be the string containing the html template in the output21:29
clarkbok I don't know that I'll vote on the js changes but I think I grok the direction they are going in and seems reasonable21:30
clarkbhttps://review.openstack.org/#/c/551366/ failed unittests too btw21:30
mordredclarkb: cool. that's the important thing - being able to read them and understand what's going on so that if you did have to start debugging you wouldn't be lost or anything21:31
mordredclarkb: and darn21:31
mordredZOMG. if I could learn to type words21:32
openstackgerritMonty Taylor proposed openstack-infra/zuul master: Serve the static files more dynamically  https://review.openstack.org/55136621:32
mordredthe variable is static_path ... not static_dir21:33
mordredI think python should know I use the words path and dir interchangably :)21:33
clarkblooks like you properly sanitize the paths which is my only concern with /{path:.*} :)21:35
mordredclarkb: :)21:36
clarkbif we want to be extra careful we can pass it through os.path.realpath() too but I think that isn't necessary unless you put bad symlinks in the web content dir21:38
mnaser"Serve the static files more dynamically"21:42
mnaserthats a fun commit message21:42
mnaser:)21:42
mordredmnaser: I'm glad you like it :)21:42
mnaserand "This is really just an excuse to write that commit subject." right below, aha21:42
clarkband webpack is a js lib that I can go read about somewhere?21:42
clarkbI've inferred what it is doing based on diffs and brwoser debugging but at some point I should go read on it proper21:43
mnaserclarkb: webpack is kinda like dependency management on steriods21:43
corvusand build-time pre-processing21:43
mnaserthink dependency management + 'compiler' for the web21:43
*** dtruong has quit IRC21:43
clarkbit also appears to manage how things are loaded into the browser as runtime?21:44
clarkband sets up the debug maps and all that21:44
corvusyeah, that's the 'pack' part of it...21:44
mnaseryes, it can do things like load stuff on demand too21:44
mnaserwhich is probably not a big value in zuul, but bigger apps21:44
corvusmordred: do we have a job that emits that block diagram?21:44
corvusthe one with all the boxes for each module?  that really helped me grok what webpack was doing21:44
corvus(also, we really should generate that at least on all js changes, it's awesome)21:45
corvusthere's an npm directory here, but it's empty http://logs.openstack.org/66/551366/1/check/zuul-tox-py35/bd23498/npm/21:47
corvusi wonder if it's supposed to be there21:48
corvusoh yeah we do, here21:50
corvusclarkb: http://logs.openstack.org/38/551338/1/gate/nodejs-npm-run-lint/40f06b6/npm/reports/bundle.html21:50
corvusso those are the bundles that are made21:51
clarkbwe have a jquery.zuul.js that is distinct from jquery.js?21:52
clarkbthat is an interesting graph though21:52
corvusclarkb: yeah, i think that's the zuul jquery plugin that implements the status page21:52
corvusclarkb: also https://docs.openstack.org/infra/zuul/developer/javascript.html may be a useful reference (and we should update it if it's missing things)21:53
corvusclarkb: it has a section on webpack!  https://docs.openstack.org/infra/zuul/developer/javascript.html#webpack-asset-management21:54
clarkbcool docs. I do wonder what npm run build doesn't do that npm run build:docker does do (from a functional perspective)21:56
clarkbI guess that is so you don't have to have particular versions of things and it can install what it wants for you in the container?21:57
clarkbI tend to use the virtualenv thing for nodejs because epython21:57
clarkb(but does similar isolation)21:57
corvusclarkb: yeah, i believe the difference is without docker you need to run install-js-tools.sh which adds extra apt sources, etc21:59
corvusnot necessarily something all devs will want to do on their workstation22:00
mordredclarkb, corvus: yes, that is the difference22:03
clarkbI really wish that bwrap or a similar tool was more common for use cases like that22:04
clarkb(because the idea of handing root to everything is :( but bwrap can operate without root and just use the host as a base to isolate)22:05
mordredhttps://webpack.js.org is the main webpack site - and I've found their docs complete and easy to deal with (the getting-started guide was initial very helpful to me)22:05
clarkbI guess the plan with gnome is to make bwrap more ubiquitous so maybe that will happen eventually22:05
mordredI hope so22:05
*** hasharDinner has quit IRC22:06
mordredthe other important piece of the chain (that's mostly transparent behind webpack) is Babel - which is what is transpiling ES6 down to javascript browsers can be expected to understanded22:07
mordredmostly important to know about just to know that's happening, not because you have to interface with it22:07
clarkbare we actually using any es6?22:10
clarkbI guess libs like angular may not be js proper and expect a transpile?22:10
mordredoh - we're using a bunch of es622:11
mordredimport, for (foo of bar), let are all es6 just off the top of my head22:12
mordredoh - and there's a template string form I think is in use somewhere22:12
*** zhuli has quit IRC22:26
*** zhuli has joined #zuul22:26
*** gregdek has quit IRC22:28
openstackgerritMonty Taylor proposed openstack-infra/zuul master: Use arrow functions for http callbacks  https://review.openstack.org/55139922:29
clarkbheh you took that as a challenge to add more es6 :)?22:29
mordredclarkb: ^^ and in fact, that fixes an ugly in the components patch - and is es622:29
*** gregdek has joined #zuul22:30
mordredclarkb: almost - I was double-checking the arrow function sntax because I thought we already had one but couldn't find it. we don't - but then I noticed that the description of the feature includes a description of a problem I had to work around earlier today22:30
*** JasonCL has quit IRC23:08
*** rlandy has quit IRC23:10
*** JasonCL has joined #zuul23:14
*** JasonCL has quit IRC23:23

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