/srv/irclogs.ubuntu.com/2014/04/30/#juju-dev.txt

mgzmenn0: plz review! :) https://codereview.appspot.com/94900043/01:47
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== murga__ is now known as psivaa__
bodie_why do documents in the state/state.go State struct need a handle back to the State?16:51
bodie_er.... not documents, types.  such as state.Settings16:52
bodie_which wrap documents16:52
=== negronjl is now known as negronjl-afk
bodie_is it necessary to use the state runner.txn stuff if I'm updating a document that no other code will touch?18:46
bodie_(state/state.go)18:46
bodie_I guess it's probably necessary to avoid collision with other transactions18:47
mgzdimitern: https://codereview.appspot.com/9399004319:18
davecheneyREMOVE ALL THE SAFTY CHECKS!21:06
davecheney) % juju destroy-environment -y $(juju switch)21:06
jpdsdavecheney: Good. ⌤21:13
davecheneyhttps://bugs.launchpad.net/juju-core/+bug/130538622:03
_mup_Bug #1305386: state/apiserver: multiple data races <juju-core:Triaged> <mgo:New> <https://launchpad.net/bugs/1305386>22:03
davecheneyBug: https://bugs.launchpad.net/bugs/130538622:22
davecheneyerror: ERROR: Failed to update bug task: Server returned 400 and body: milestone_link: Constraint not satisfied22:22
davecheneyWheee!22:22
mgzperrito666: nova/api/openstack/wsgi.py from https://github.com/openstack/nova.git23:09
mgzmenn0: is your branch with more comment fixes up somewhere?23:11
menn0mgz: not yet. i'm seeing a unit test failing consistently on my machine. Unlikely to be related to my change but I'd like to see a clean run before submitting for review just in case.23:12
mgzmenn0: what's the failure?23:15
menn0mgz: it's a uniter test: TestUniterUpgradeConflicts23:15
perrito666mgz: just to recap, you need a function that can give you the json encoded version of an error, shouldn't this be a method from the errtype?23:19
mgzmenn0: that one does pass for me:23:20
mgz$ (cd worker/uniter&&go test -gocheck.v -gocheck.f=TestUniterUpgradeConflicts)23:20
mgzPASS: uniter_test.go:998: UniterSuite.TestUniterUpgradeConflicts6.855s23:20
mgzOK: 1 passed23:20
mgzPASS23:20
mgzok  launchpad.net/juju-core/worker/uniter11.379s23:20
mgzperrito666: the argument for it not being a method, is we want it to handle errors of other types23:21
mgzas in, try casting to our type of error, and use the code/Name()/message if so23:21
menn0mgz: i've just tried with trunk and it still fails consistently for me23:21
mgzif not, the code is 500 and the json we generate with the error string23:21
perrito666mgz: I see, where do you want that ?23:21
mgzmenn0: it's likely something environmental, can you `... 2>&1|pastebinit`?23:22
mgzperrito666: probably novaservice for now23:22
menn0mgz: the output is pretty huge: http://paste.ubuntu.com/7369606/23:24
mgzmenn0: it's a lovely test23:26
menn0failure is here: uniter_test.go:181323:26
menn0mgz: that's one word for it23:27
mgzmenn0: failure is from l969 in the file really23:29
mgzwhy that charm is on rev1 rather than rev2 is an open question23:30
menn0mgz: looks like Ian and Will have their names all over this file. Ian said he'll help me debug this later on.23:34

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