/srv/irclogs.ubuntu.com/2013/12/11/#launchpad-dev.txt

StevenKwgrant: Running through some examples from http://sage.math.washington.edu/home/wstein/www/home/agc/lit/javascript/xss.html I don't get the JS executed.05:01
StevenKWhoa. The iframe works05:09
StevenKThat is to say, a comment of '<IFRAME SRC="javascript:alert('XSS');"></IFRAME>'05:09
wgrantThere's a good reason I asked you to test it :)05:11
wgrantIt may be a bug in your code that I missed, but it's also reasonably likely that there's a buggy librarian involved.05:11
wgrantI do not trust the library authors :)05:11
StevenKThe <iframe> JS popup has been the only one that has fired05:12
wgrantHave you tracked down where the leak is?05:12
StevenKNope05:13
StevenKSomething about bubbling05:16
cjwatsonwgrant: Er, in as much as I do any of my DB patches.  I'm not sure I understand the question10:32
wgrantcjwatson: It looks like the schema from 12 months ago, before it was adjusted so performance wasn't terrible.11:01
wgrantcjwatson: Is there value in splitting LiveFilesystem and LiveFilesystemBuild?11:02
cjwatsonI think I just thought that was how it was done based on recipes and translations.  But don't we need separate records for The Thing and A Build Of The Thing?11:04
wgrantTTBs don't have two halves11:04
wgrantRecipes are a bit different11:04
wgrantA SourcePackageRecipe may have many SourcePackageRecipeBuilds over years11:05
cjwatsonRight, and that's true here too, surely11:05
cjwatsonI don't want to have to put the livefs configuration in place (which is basically what LiveFilesystem is) for every daily build11:05
wgrantEr yeah, I was apparently not particularly paying attention when I read that paste.11:05
wgrantRight, other way around, that makes more sense.11:05
cjwatsonIt's a bit of an unpleasant grab-bag, and possibly it makes more sense to try to have more of those passed per-build from cdimage11:06
wgrantHowever, you still need to make it look more like binarypackagebuild/sourcepackagerecipebuild/translationtemplatesbuild do today11:06
wgrantThe BuildFarmJob table is now an optimisation, mirroring columns from the concrete job table.11:07
wgrantSo LiveFilesystemBuild has date_started, status, etc.11:07
cjwatsonok, I may have failed to follow that through.  is there a simple-ish way to get a consolidated dump of the current db structure rather than having to read all the patches in sequence?11:07
wgrantThose properties are defined on BuildFarmJobMixin in the code11:07
wgrant\d binarypackagebuild11:07
wgrantOr you can use pg_dump to get the CREATE TABLE, I guess11:07
wgrantAlso, LiveFilesystem probably wants an archive column there somewhere.11:08
wgrantAnd I'd really like to not overload "project", though it's not too bad here I suppose.11:08
wgrantWhat is that proposed boolean?11:08
wgrantIs it perhaps really a pocket instead?11:09
cjwatsonmaybe we could spell it image_project for this purpose11:11
wgrantThat would probably be better, yeah11:11
wgrantI'm wondering if there's some better name than LiveFilesystem11:12
wgrantSince it sounds like the result of the build11:12
wgrantThat's what had me first11:12
wgrantBut I guess it's less confusing when you're actually paying attention :)11:12
cjwatsonproposed> hm, maybe.  the image doesn't go *into* the pocket, though, it's more like a PPA's archive dependencies11:12
cjwatson(though maybe the image *should* go into the pocket)11:12
wgrantRight, but proposed = true doesn't put it anywhere different either.11:13
cjwatsonLiveFilesystem - yeah, was the best name I could think of but I'm not totally happy with it, better suggestions appreciated11:13
wgrantSetting PPA dependencies to -backports doesn't mean the binaries don't end up in release :)11:13
wgrantWhat're they called in the current infrastructure?11:14
cjwatsonI think proposed probably ought not to be in the db and ought rather to be a flag passed per-build11:14
wgrantRight, that probably makes sense.11:14
cjwatsonsince that corresponds well to how it works in the current infra11:14
cjwatsonwe basically call them live filesystems :-)11:14
wgrantI guess archive could equally be on the build, potentially.11:14
cjwatsonhttp://people.canonical.com/~ubuntu-archive/livefs-build-logs/ e.g.11:14
cjwatsonthe things that need to be in the db are probably those things that distinguish different livefs types we want to continue building alongside each other, and gc etc.11:15
cjwatsonarchive11:16
cjwatson?11:16
wgrantHm?11:16
cjwatson11:14 <wgrant> I guess archive could equally be on the build, potentially.11:16
wgrantIt would seem unwise to hardcode the Ubuntu primary archive; experience have shown that such a decision is often to be regretted.11:17
cjwatsonoh, right, um, that would require teaching lp-buildd about that too11:17
cjwatsonI take your point; a problem here is that live-build generates the sources.list itself11:18
wgrantOh, it doesn't use the normal lp-buildd sources.list infrastructure?11:18
wgrantForgot that detial.11:18
cjwatsonwe don't really get to insert a full one, it's easier to tell it how to tweak it11:18
wgrantAnyway, best to store an archive now anyway, makes it easier to treat like the rest of the archive-related builds11:19
wgrantEven if the slave implementation means it doesn't completely work right now11:19
cjwatsonok11:19
wgrantSo, LiveFSBuild probably wants (id, livefs, archive, distroarchseries, pocket, processor, virtualized, date_created, date_started, date_finished, date_first_dispatched, builder, status, log, failure_count, build_farm_job), plus maybe some denormed attributes for querying later, but those are easy to add.11:23
wgrantOh, and some way to actually store the results :)11:23
cjwatsoner, yeah, *cough*11:25
wgrantSince there are multiple files, I guess just a trivial (livefsbuild, lfa) link table?11:26
cjwatsonmaybe a notion of type as well11:28
wgrantUnless you want to be more intelligent and stick each type in a separate LFA column on LFB itself11:28
wgrantIf there's one of each11:28
cjwatsonI'd like to be able to say "give me the latest manifest for livefs <x>"11:28
wgrantBut it's been a long time since I looked at cdimage code :)11:28
wgrantRight11:29
cjwatsonbut also "download all the latest files for livefs <x>"11:29
cjwatson(preferably in a way that doesn't race if it crosses another build)11:29
wgrantBut you could then just ask for the latest build for livefs X, then look at its list of files11:29
cjwatsonright11:29
wgrantSince lp-buildd doesn't know what files it returns today, and it doesn't seem to provide much benefit for LP to know about them, AFAICT11:30
wgrantI may well be wrong.11:30
cjwatsonI also want to be able to make livefs-build-logs keep working, as a permanent archive of all livefs build logs ever, so that'd be "get latest log for all livefses"11:30
cjwatsonyeah, possibly it could reasonably just be keyed by filename11:30
wgrantRight, though that's easier, since the log is already privileged.11:30
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== _mup__ is now known as _mup_
=== Ursinha is now known as Ursinha-afk

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