/srv/irclogs.ubuntu.com/2010/08/27/#launchpad-dev.txt

maxbIt would appear that Google Maps is rejecting Launchpad's requests00:19
maxbe.g. https://launchpad.net/people/+me00:19
wgrantBug 62498100:23
_mup_Bug #624981: The Google Maps API server rejected your request <maps> <Launchpad Registry:Triaged> <https://launchpad.net/bugs/624981>00:23
lifelessspm: when you are around, I want a profile please00:23
spmlifeless: your name is Rob, Your Y yrs old; live in Z ??00:23
lifelessspm: funny man :P00:31
lifelessspm: on staging00:31
lifelessas soon as it finishes updating00:31
lifelessI want to hit up https://api.staging.launchpad.net/1.0/bugs/414746/attachments00:31
_mup_Bug #414746: speakers cannot be muted when using headphones regression (karmic) <apport-bug> <apport-collected> <i386> <regression-release> <pulseaudio (Ubuntu):Confirmed> <https://launchpad.net/bugs/414746>00:31
lifelessalso00:33
lifelesshttps://api.launchpad.net/1.0/1.0/bugs/414746/attachments/+login har!00:33
_mup_Bug #414746: speakers cannot be muted when using headphones regression (karmic) <apport-bug> <apport-collected> <i386> <regression-release> <pulseaudio (Ubuntu):Confirmed> <https://launchpad.net/bugs/414746>00:33
lifelesswhen an API times out00:33
lifelessit gives the usual OOPS00:34
lifelesswith a link to login00:34
lifelesswhich then blows up00:34
* spm is running out of tabs that aren't doing 'useful stuff' I may have to open a 2nd konsole of 16+ terminal tabs....00:39
lifelessdid you say konsole?00:41
spmaye. best terminal around, I've found.00:42
spmtabs at the *bottom* <== biggest positive feature over any other I've found00:43
lifeless<- xterm00:43
* wgrant quickly emails Ng.00:43
lifelesswell, technically, uxterm.00:43
spmheh00:44
spmwgrant: i don't think he cares too much. and well, if it makes him cry? I see that as a plus.00:44
spmlifeless: so the restore is gtetting there; just doing the importds atm. maybe 5-15 mins eta?00:45
lifelessspm: cool cool00:47
wgrantThe linter doesn't run henninge's thing, does it?01:06
wgrantWould be handy, to stop imports from going bad.01:06
spmlifeless: revised eta, another 5-15 mins. sigh. still going. looks to be doing stuff on the staging buildmaster...01:07
lifelessspm: hows it looking ?01:22
spm[10:22:28] <spm> staging codebrowse just went down, so must be getting closer...01:22
spmmake build LPCONFIG=staging <== on multiple builds/machines. painfully slow. we should probably look into parallelising that. but /me worries about KISS and debugging obscure staging update woes.01:23
lifelessoh yay, db-devel merge failures01:29
lifelessand so it begins01:29
=== Ursinha is now known as Ursinha-afk
thumperlifeless: want to catch up?02:01
mwhudsonspm: we really really shouldn't be running make build from scratch on every machine02:17
mwhudsonthat's just bong02:17
spmand wrong02:18
lifelessthumper: sure02:18
lifelessspm: I can haz profile ?02:19
spmone sec, working iwth u1 atm02:19
spmlifeless: asuka is doing the nightly.sh run, so be ware it will be slower than usual; if you consider that actually possible02:20
* spm is still trying to unstack/pop about 4 levels of yesterdays interrupts... sigh/woe is me/ etc etc etc02:21
lifelessspm: yes I still want a profile02:22
wgrantLP needs a GitHub-like commercial offering.02:25
lifelessdefine that please02:27
wgrantAt the moment, you need to get a private project set up manually and poke sysadmins and blah blah.02:31
wgrantAnd it's far more expensive than GitHub's cheaper offerings.02:31
mwhudsonlp would also need to start supporting commercial customers better & it's not clear that this is a useful use of resources02:33
wgrantWell, there are no other bzr hosting solutions around.02:35
wgrantAnd GitHub is a really compelling reason to use Git.02:35
persiaSo the social benefit of causing more engineers to use bzr for their closed-source efforts is expected to outweigh the social benefit of making it easier to host open-source stuff?02:36
wgrantWell, the former would probably cause more wide-spread use of bzr.02:38
wgrantAt the moment, if your company wants to use a DVCS, they are probably going to choose Git. Because GitHub is there. That's what I've heard so many people say.02:38
maxbPersonally, I think bzr needs self-hostable hosting solution to properly enable corporate use of bzr02:39
wgrantFor many cases, yes.02:39
wgrantwin 4102:42
wgrantGah.02:42
lifelessso, self hosted via self deployed LP is possible, but traumatic02:52
lifelessit would be nice if that was easier02:52
lifelesswgrant: that story does need to be easier; for sure.02:52
wgrantI guess we need Vostok, but ripping out everything but Codehosting instead.02:52
lifelessthere was talk at one point of developing a self-hosted solution for bzr completely separate to LP02:53
lifelessspm: ping me when you're ready02:54
thumperlifeless: there was but it was shot down with a BIG gun02:55
thumperI didn't agree with the argument02:56
thumperI think there should be a simple deployable codehosting solution for corporates02:56
thumperbased on bazaar02:56
lifelessspm: ping me when you're ready02:57
spmlifeless: timing is everything.was just loggng into asuka to set that up :-)02:57
lifelessthumper: I think there should be too. I would love it if it had common code with codehosting02:59
* thumper nods02:59
spmlifeless: just about to restart app server03:03
lifelessduh da03:04
lifelessduh da03:04
lifelessduh da duh da duh da03:04
spm.... waiting.....03:04
spmyay. down.03:04
spmstarting....03:05
lifelessI'm glad it starts up quickly03:05
spmit lives!03:06
lifelessok, you can turn that off, thanks.03:06
thumperanyone fixing the merge conflict?03:06
thumperanyone?03:06
spmlifeless: you may wish to try again; it's only just started working, ish.03:06
lifelessif you can expedite the rsyncing of the trace and oops (OOPS-1700S32) that would be great.03:06
thumperbeuler?03:06
lifelessthumper: its his day off03:06
thumperhaha03:06
lifelessno, I'm not currently fixing it03:07
spmlifeless: all done? I'll restart03:07
lifelessspm: yes03:07
spmoki03:07
lifelessspm: though I won't know the quality till I get the files ;)03:07
spmnmp03:07
spmsorry. forgot the 'I wear evil horns' smily there... oh well, it was implied.03:08
thumperwallyworld: feel like trying out fixing the merge conflicts?03:08
thumperwallyworld: you can say no if otherwise engaged03:08
spmlifeless: they should be synced03:08
thumperlifeless: is "from datetime import datetime, timedelta" ok with our new import style?03:09
thumperlifeless: or do I have to put them on multiple lines?03:09
lifelessits fine03:09
wallyworldyou mean some issues caused by my branch?03:09
thumperwallyworld: no03:10
thumperwallyworld: I mean the current merge failure between stable and db-devel03:10
thumperwallyworld: are you getting those failure emails?03:10
lifelessspm: hmm, i'm not seeing my oops :(03:11
spmlifeless: ahh. pebkac. one sec.03:11
wallyworldthumper: i've subscribed to canonical-launchpad digest but hadn't been looking in too much detail03:11
thumperwallyworld: ok, I'll fix it03:13
wgrantlifeless: I was under the impression that the exception was only in place for single-symbol imports.03:14
lifelesswgrant: < 78 chars or whatever03:14
wallyworldthumper: i don't mind doing it but if it's time critical then you will be faster than me. but i can look at it np03:14
spmlifeless: hrm. not pebkac; looks like a script buglet somewhere. but there now: /srv/launchpad.net-logs/staging/asuka/profiling/03:14
thumperwallyworld: I'm sure we'll get some practise next week03:15
lifelesswgrant: frankly I think any time spent talking about it is too much :)03:15
thumperI'll take this one03:15
wgrantlifeless: https://dev.launchpad.net/PythonStyleGuide?action=diff03:15
lifelesswgrant: sorted one per line when there are many gets better merge conflicts; when there aren't many, anyway its done is ok03:15
lifelessmeh03:15
lifelessok-by-me then03:16
lifelessspm: its thinking rather more now ;)03:16
lifelessspm: its almost like it hasn't been rsyncing since the 3rd03:17
spmlifeless: mmmm. possibly.03:17
lifeless-rw-r--r-- 1 robertc robertc 239303 2010-08-27 14:11 2010-08-03_02:04:49.560-MailingListApplication:MailingListAPIView-OOPS-1676S234-Dummy-3.prof03:17
spmI dod suspect a script buglet - we have a new shiny ponies script; so...03:17
lifelesswas the newest file I had03:17
lifelessnote - 27th was when I got it, 08-03 when it was made03:17
spmnod03:18
lifelessspm: I has it, thanks03:22
lifelessanyone familiar with bugs code around ?03:40
wgrantI know parts of it.03:40
wgrantWhat's the issue?03:40
lifelesshttps://bugs.edge.launchpad.net/malone/+bug/61884903:40
_mup_Bug #618849: Timeout accessing bugs' attachments using the API <timeout> <Launchpad Bugs:Triaged> <https://launchpad.net/bugs/618849>03:40
lifelesshave a look at that to get the context where I'm looking03:41
wgrantWow those are fat comments.03:41
lifelessmine?03:41
wgrantAll comment fonts are huge. The CSS must be broken.03:42
lifelessyou have the beta installed don't you ?03:42
wgrantYeah.03:42
wgrantIs anybody working on the broken profile page thing?03:44
lifeless?03:44
wgrantlifeless: All profile pages are broken due to the Google Maps thing.03:47
wgrantThey pop up an alert().03:47
lifelessso, its a maps problem03:47
lifelessfor now we're waiting to see if they resolve it03:47
wgrantIs it? The Google thing that Curtis mentioned looks irrelevant to me.03:47
lifelessAIUI03:47
lifelesswhy? didn't fit the symptoms ?03:48
wgrantWell, it seems specific to another Google service. But perhaps it is more general.03:49
lifelessomg03:49
lifelessomg omg omg omg omg03:49
lifelesslib/lp/bugs/browser/bug.py line 52203:49
lifeless*this is not safe*03:50
wgrant.....03:50
wgrantHaha.03:50
lifelesslets go and pull 140+ objects from the database03:50
thumperthe font size issue is known03:50
mwhudsonlifeless: oof03:50
thumperand being worked on I believe03:50
mwhudsonlifeless: makes me think of some of this spec code03:51
mwhudson"find all specs named $x then filter out the ones that aren't targeted at $foo"03:51
mwhudson(fortunately given how specs are used this probably isn't so bad, but...)03:51
wgrantmwhudson: In Python, not SQL?03:51
mwhudsonwgrant: yes03:52
wgrantYay.03:53
persiamwhudson, specs get used (or not) the way they do because of the limitations of the impementation, rather than the intent of the users.03:55
mwhudsonpersia: well, maybe, but also it's actually unlikely that there are many specs in the system with the same name03:55
persiaThere are social conventions in place to avoid that, leading to exceedingly frustrating names for Ubuntu specs (${release-target}-${responsible-team}-${relevant-area}-${real-spec-name})03:58
mwhudsonpersia: well yeah, but even if you just used ${real-spec-name} i conjecture that there would be <10 duplicates for any given name03:58
mwhudsonit's not like lifeless's code that could be getting 100s of objects for no good reason03:59
persiaPotentially.  I was involved in the nomenclature discussion, but most example cases were 2-3 with the same name, rather than >10.  I agree it's good optimisation, I just think it's dangerous to base "how to design blueprints" based on current blueprints usage (as opposed to theory, which is safe)04:00
spmpersia: you're not suggestion that stakeholders are consulted are you? that's: 1. crazy talk and 2. heresy!04:01
mwhudsonpersia: sure04:01
* mwhudson has one of these "how does this code work at all" moments04:02
persiaspm, No.  I'm just asking for blueprints design based on blue-sky theory, rather than partial analysis of current usage in an attempt to divine the potential desires of conceptual stakeholders.04:03
mwhudsonawesome!04:03
mwhudsonit doesn't04:03
wgrantmwhudson: What's broken?04:04
wgrantApart from the entirety of Blueprint?04:04
mwhudsonwgrant: go to add a dependency to a blueprint, click choose, type some text and search04:05
mwhudsonthough it's timing out for me actually, not exploding quite like i expected04:05
persiaThat's blueprints.  Expected behaviour04:05
mwhudsonok, it's not completely broken04:06
mwhudsonjust stupid04:06
lifelessmwhudson: can I encourage you to do one thing.04:10
mwhudsonlifeless: sure04:10
lifelessmwhudson: add query-capped tests to the views you touch.04:10
mwhudsonlifeless: um04:10
lifelessmwhudson: doesn't matter what the count is, just put a ratchet there ;)04:10
mwhudsonheh04:10
mwhudsonactually probably not touching any views really04:10
mwhudsonbut ok04:10
lifelessmwhudson: we currently have no insurance for query blowouts04:19
lifelessmwhudson: its all 'someone analysed this once and made it good', then something changes, and because our code has the property that what looks like good python performs terribly, *boom*04:20
thumperif I have a method that yields and is used as a generator04:21
thumperand I have an edge case where I don't want to yield anything04:21
thumperwhat do you do?04:21
thumperraise StopIteration?04:21
lifelessreturn04:21
mwhudsonthumper: 'return'04:21
lifelessit will be a generator because of the yield statements04:21
thumperok04:21
lifelessmwhudson: so anyhow, I think its sensible to put *an* insurance policy in place.04:22
mwhudsonlifeless: ok04:23
lifelesswhat is salgado used for in tests ?05:09
mwhudsontoo much05:11
mwhudsonthe default webservice caller uses him i think05:11
mwhudsonwhich is crazy, because he's an admin in sample data :(05:11
thumperhow do we ask that we are running in a test environment?05:38
thumperI have a view that uses the slave store05:38
thumperbut for my test I need to use the master05:38
thumperto see the new data05:38
thumperstub: any magic I can use?05:39
wgrantIn Soyuz we just commit. It's ugly, but I think it's better than a special case that might break.05:39
stubthumper: Sounds like you need a database policy that returns the master store even when the slave is requested. I think there is one in dbpolicy.py already.05:40
thumperstub: where is that?05:41
stubthumper: nah.... need to add MasterOnlyDatabasePolicy - SlaveOnlyDatabasePolicy can be cargo culted for that.05:41
stubthumper: lib/canonical/launchpad/webapp/dbpolicy.py05:41
stubwith MasterOnlyDatabasePolicy(): [...]05:42
thumperstub: this is for a pagetest, is your solution still sane?05:42
stubI don't know05:42
thumperI think the answer is no05:42
thumpercan I ask the config which environment we are in?05:42
thumperis that sane?05:42
thumperor just insane?05:42
stubI've done it before, but then the code your testing isn't the code that will run on production05:43
stubHow come you can't just commit the changes you made to the master so they are available to the slave?05:43
thumperI'll just commit05:52
lifelesshmm, exported_as doesn't work if there is an attribute with the same name that isn't exported.06:23
lifelesswhat project should I put the bug on? lazr.restful ?06:23
mwhudsonyes06:23
lifelesshttps://bugs.edge.launchpad.net/lazr.restful/+bug/625102 \o/06:30
_mup_Bug #625102: exported_as does not handle overriding an unexported attribute <lazr.restful:New> <https://launchpad.net/bugs/625102>06:30
noodles775Morning07:02
noodles775thumper: When I want to split a pipe into two, i add a new pipe before the last one, then how did you interactively include only certain changes? It was something similar to shelve?07:33
noodles775thumper: sorry, just realised you've probably EOD. nm, enjoy your evening!07:34
noodles775Ah, merge -i... wonderful.07:35
wgrantYep, merge -i is pretty awesome.07:35
lifelesswow08:14
lifelessadding one attachment adds 10 queries ><08:14
adeuringgood morning08:37
=== almaisan-away is now known as al-maisan
bigjoolsstub: do you know if it's possible to use the result from store.execute() like a ResultSet?11:37
stubThe interface is a little different11:38
bigjoolsI need it to work in the batch navigator11:38
bigjoolsso count and slicing is all that's needed I think11:38
stubIt might work11:38
bigjoolsI shall give it a go then :)11:39
stubOtherwise convert it to a store.find   (store.find(Foo, SQL("hairy where clause")))11:39
bigjools(I'm trying to put the results of findBuildCandidate into a page)11:39
bigjoolsI doubt that would work, take a look at findBuildCandidate... :/11:40
jkakarFYI, am getting a Javascript alert complaining about an invalid Google Maps key when navigating to https://edge.launchpad.net/~nick-moffitt11:48
stubAre we using Vouchers or is that dead code?11:54
wgrantThey're still used for commercial subscriptions, AFAIK.11:58
jtvlifeless: any reason why installFixture should not return its argument?11:58
=== al-maisan is now known as almaisan-away
jtvmrevell: Any comments on the help bubble so far?  I put the branch up for review, since it's a substantial code improvement in any case.  If there's anything you _hate_ about it I can still opt not to land, or if there's something that's not quite the way you want it then we can do that as a separate bug.12:24
jtvWhat's wrong with EC2?  I'm getting "remote host identification has changed" errors all the time, meaning I have to delete ~/.ec2/known_hosts again.  Also, startup takes ages.12:36
jtvAlso, does anyone know how I can choose a different EC2 site?  I can think of one that must be at least 4 megameters nearer than the one I'm getting now.12:40
jelmerjtv: IIRC you can change EC2 sites in the console. IIRC there are only sites in east/west coast of the US and Europe though12:46
jtvjelmer: and singapore!12:46
jtvthanks12:46
jtvSingapore is quite, quite nearby in terms of internet infrastructure…  Some ISPs here will probably take traffic for a US EC2 _through_ Singapore.12:47
jtv(And then it gets slow due to poor bandwidth allocation, so in principle I could speed things up by running a proxy in the Singapore EC!)12:48
=== matsubara-afk is now known as matsubara
=== Ursinha-afk is now known as Ursinha
davidstraussWhere can I find the Bazaar SSH smart server integration into Twisted Conch?13:52
davidstraussIs it the Poppy code?13:54
jelmerdavidstrauss: Hi13:58
davidstraussjelmer, hi!13:58
jelmerdavidstrauss: No, poppy is the server code that's used for package uploads.13:59
davidstraussjelmer, ah13:59
davidstraussjelmer, what is the twisted daemon for branches?13:59
jelmerdavidstrauss: My guess is lp.codehosting.sshserver13:59
davidstraussjelmer, thanks14:02
=== almaisan-away is now known as al-maisan
bdmurrayI received an error when trying to land a cherry pick on production devel that I could use some help sorting out15:44
bdmurrayAll lines of log output:["PQM Cannot merge between different VCSsystems.15:45
bdmurray'bzr+ssh://bazaar.launchpad.net/~brian-murray/launchpad/cherry-pick-bug-modifier'(pqm.Baz1_1Handler) and15:45
bdmurray'/home/pqm/archives/rocketfuel/launchpad/production-devel'(pqm.Bazaar2Handler) are different15:45
jelmerbdmurray, are you sure 'bzr+ssh://bazaar.launchpad.net/~brian-murray/launchpad/cherry-pick-bug-modifier' exists?15:45
jelmerbdmurray, pqm seems to think there is a bazaar 1 ("baz") repository at that location15:46
bdmurrayjelmer: yes, I'm sure - would the fact that it is a private branch affect it?15:48
jelmerbdmurray: probably - is the launchpad pqm able to access that branch?15:48
jelmerbdmurray: I think it has to be subscribed.15:48
bdmurrayjelmer: no, I'll give that a shot then15:48
bdmurraythat's a rather unhelpful error message15:49
jelmerbdmurray: It probably defaults to thinking there is a "baz" repository there if it can't find anything else.15:51
bdmurrayjelmer: any idea how I could try resubmitting the branch?  bzr lp-land is failing since it is a private branch15:58
jelmerbdmurray: You can use "bzr pqm-submit", which is part of the bzr-pqm plugin.15:59
jelmerAlternatively, you should be able to construct a PQM email manually.15:59
=== salgado is now known as salgado-lunch
=== salgado-lunch is now known as salgado
noodles775bdmurray: you can subscribe launchpad-pqm to the branch and it should then work.16:38
* noodles775 realises that's been tried.16:39
=== Ursinha is now known as Ursinha-lunch
* rockstar physically relocates16:46
=== salgado is now known as salgado-lunch
=== beuno is now known as beuno-lunch
=== benji is now known as benji-lunch
=== matsubara is now known as matsubara-lunch
=== Ursinha-lunch is now known as Ursinha
=== salgado-lunch is now known as salgado
=== al-maisan is now known as almaisan-away
=== beuno-lunch is now known as beuno
=== benji-lunch is now known as benji
=== matsubara-lunch is now known as matsubara
lifelessmorning18:54
dakerhello19:02
dakercan anyone explain to me what is this http://is.gd/eH47119:03
daker?19:03
lifelessyes, we believe its a known outage at Google19:13
lifelesshttps://bugs.edge.launchpad.net/launchpad-registry/+bug/62498119:14
_mup_Bug #624981: The Google Maps API server rejected your request <maps> <Launchpad Registry:In Progress by sinzui> <https://launchpad.net/bugs/624981>19:14
* sinzui is experimenting with a brute force use of featureflags to control gmp219:14
benjiI was thinking along the same lines.  Seems like a perfect use for them.19:15
dakerlifeless, thanks19:16
sinzuibenji, the controller objects are not all in production. I am writing my code to what I see in a production test instead of what is in our development tree19:19
benjimmm19:19
lifelesssinzui: \o/19:20
benjiI would suppose your result will be trivially translatable to the real thing once it's deployed.19:20
sinzuiyes19:20
sinzuithis is not the first time google has failed us19:20
sinzuiwe talked about a way to toggle maps on/off last year19:21
=== Ursinha-afk is now known as Ursinha
lifelesssinzui: a flag ?19:27
lifelessah19:28
lifelessthats what gmp2 is19:28
lifeless?19:28
sinzuilifeless, there are many versions of gmap. we use a specific version. We need to track their version. Having flags for the version we want is ideal19:29
lifelesscool19:29
lifelessI think feature flags can return a value19:29
lifelessif they can't, its a small tweak to make them do so19:29
lifelessor you can use different flags, one for each version19:29
sinzuicorrect. We had some adventures shortly after we added maps and the versions changed.19:30
cr3if I run testr -t my_application, it seems that 62 tests match, so is there a way to specifically run the tests for my application?20:31
lifelesstestr -- -p packagename20:32
lifelessit depends on your app structure really20:33
cr3lifeless: I'll give that a try20:33
lifelessits runnin bin/test under the hood20:34
cr3lifeless: ./bin/test --help seems to indicate that -p is for progress (where testr -- -p package gets translated to xvfb-run ./bin/test --subunit  -p package20:40
lifelesscr3: the -- says 'to the right, pass onto the test process20:41
lifelesscr3: I was told -p was package20:41
lifelessperhaps its -m you want20:41
lifelessanyway, all I'm saying is that its a bin/test problem for defining 'my application'20:41
cr3lifeless: heh, understood :)20:42
lifelessI'm no expert on bin/test :P20:42
cr3what's the difference between lib/lp/<application>/scripts/tests  and lib/lp/<application>/scripts, where both sometimes contain test_*.py files?20:44
cr3the first path is apparently recommended for containing tests as detailed here: https://dev.launchpad.net/Testing20:45
cr3actually, my mistake, scripts doesn't contain test_*.py files (not that I've seen anyways), my mistake. nevermind :)20:45
lifeless:P20:46
cr3lifeless: I'm obviously writing my first test for launchpad20:46
cr3lifeless: how can I use testr to show the details about the tests that were run instead of just the number of tests?20:49
lifelessapply one of jmls patches I haven't merged20:50
lifelessor20:50
lifelesssubunit-ls < .testrepository/XX20:51
lifelesstestr will show failures always20:51
cr3lifeless: looking good, thanks!20:52
cr3is there a document on dev.launchpad.net for modifying the database schema? I see lots of files under the database/schema directory and I could tentatively create a patch with a sequentially numbered filename, but I'm not sure that'll make everyone happy20:58
salgadocr3, https://dev.launchpad.net/PolicyAndProcess/DatabaseSchemaChangesProcess20:59
cr3nevermind, found the answer in the README file conveniently located under that directory20:59
salgado(from database/schema/README)20:59
salgado:)20:59
=== jcsackett is now known as jcsackett|afk
=== jcsackett|afk is now known as jcsackett
cr3I'm running preliminary tests and would like to access the database, so I'm using getUtility(IStoreSelector).get(MAIN_STORE, DEFAULT_FLAVOR). but, when I try to retrieve rows, I get: ProgrammingError: permission denied for relation result22:23
cr3might there be an obvious reason for this?22:23
cr3in a test, setting a breakpoint with pdb.set_trace() doesn't seem to show anything when running testr. should this be done otherwise?22:31
lifelessyou haven't granted permission in security.py22:33
lifelessdo that22:33
james_wcr3: are you running as a special db user do you know?22:33
lifelessand run make schema again22:33
cr3aha! nevermind that last question, running ./bin/test directly and not piping to testr load works fine22:33
lifelesscr3: ?! thats new, and I have no idea how that could be happening22:33
cr3james_w: I looked around for special db privileges and didn't find anything, but it certainly feels that way since I'm getting an error from storm execute22:34
james_wcr3: take a look at database/schema/security.cfg22:35
james_wthere is where the permissions for various tables are granted to various users22:35
james_wif you aren't running a script in your test then it is likely that you are just running as the "launchpad" user22:35
=== matsubara is now known as matsubara-afk
cr3james_w: crap, I didn't get to step 13 yet in the database policy. my bad, thanks!22:36
james_wadd public.result = SELECT, INSERT to [launchpad_main] and you should be good to go22:36
cr3james_w: awesome, I was just wondering how to prevent UPDATE and DELETE on the table so that solves another problem :)22:37
cr3james_w: while I have your attention, is there a special user with autocommit isolation level?22:38
james_wdon't know22:38
cr3I'll grep around, that should be easy to find if such a user at least exists22:38
james_wyou probably don't want that if you are running the webapp context are you?22:38
cr3in some cases, it is desirable to run some statements that way22:39
james_wwell, you have transaction.commit()22:39
james_wyou may want to defer some of your processing in to a script outside the webapp context22:39
* james_w -> dinner22:39
cr3maybe I'll have a function that checks for the conflict exception, whatever that might be. lots of exploration to do, we'll see22:40
cr3security.cfg did the trick, thanks folks!22:44

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