[00:00] davecheney: see cmd/jujud/agent_test.go:347 [00:01] why is it writing out a file [00:01] just to start a mock api server ? [00:01] the jujud tests often fire up real machines [00:01] * davecheney puts head in hands [00:02] * davecheney starts to sob [00:02] I'm just the messenger man :) [00:03] davecheney: what we should probably do is use a port of 0 in the config, let the API server get a port itself and then find out what it was and use that for client connections [00:04] (as long as we have tests that fire up real API servers) [00:04] no idea how hard that will actually be in practice [00:07] davecheney: getting back to your earlier point about two tests getting the same port... what about any other processes on the host? we're not just competing for ports against our own tests here. [00:08] davecheney: also, you may be right about Close() leaving the port unavailable for a short time afterwards. I think I've seen that before even with SO_REUSEADDR being used (which it is). [00:08] it's just a fragile pattenr [00:09] davecheney: but... given that the apiserver retries the listen I don't think that's what's happening here [00:09] davecheney: agreed. the pattern sucks. [00:10] davecheney: we either need to expect and handle "socket already in use" or use port 0 when setting up the actual server (where possible) [00:13] davecheney: shall I update the ticket with some of what we've discussed? [00:14] sure [00:26] hey all - none of the mysql charms (precise/trusty) will deploy 1.20.6-trusty-amd64 [00:26] where should I be filing this bug? [00:27] wallyworld__, thumper cross your eyes and toes and hope for a Heisenbug I am retesting dimitern's commit to add better logging. CI has 2 test to complete to pass master tip. Dare I say that the commit to add logging decreased the chances of the bug re-occuring [00:28] oh dear [00:28] lazyPower: marcoceppi you guys look like the last people to modify the mysql charms? [00:28] hatch, did you try hp and aws? hp required more mem because the charm does bogus steps are setup [00:29] I'm on aws now on a 1.7GB ram [00:29] yeah, that is too low [00:30] hatch, 2G seems to be what the charm needs. QA learned that last year with juju 1.14 [00:30] hatch, on hp the charm needs 4G [00:30] sinzui: that doesn't seem like the real issue https://gist.github.com/hatched/cff0bc4929b3b3201bd9 [00:31] hatch, I am just repeating my experience with that charm in clouds with juju 1.14..1.18. It just doesn't run in under 2G anyware reliably [00:31] ok I can try to spin up a bigger one....I've never done that in the GUI...hmm [00:33] sinzui: so is it just the charm that requires so much? Or mysql? [00:33] wallyworld__, 1 test to go... [00:34] sinzui: maybe i forgot - what's the agreed method to tells devs that ci is blocked? the #juju-dev topic? [00:34] hatch, mysql can be configure to be greedy and fast, or modest and slow...the charm tuned mysql to need to much at the start [00:34] wallyworld__, I have been using the topic [00:35] sinzui: ok, could we make the text then reflect that these are the critical bugs blocking ci? since not all criticals do [00:35] wallyworld__, and I haven't updated the topic since this morning. [00:35] s/Open critical bugs/Critical bugs blocking CI [00:36] wallyworld__, lets be honest, critical means do this now. [00:36] wallyworld__, now we get to talk about what to do now [00:36] yes, but not all devs need to care abut all criticals, but they do need to know if CI is blocked [00:38] wallyworld__, in a few minutes http://reports.vapour.ws/releases is going to list build 1785 of master 5ecf58fb as blessed. The only change is the api name changes and logging [00:39] sinzui: even using a massive instance i get the same error, looks like the mysql charms are just busted on ec2 and lxc [00:39] sinzui: that sucks in a way, shows just how fragile our tests are :-( [00:39] wallyworld__, We can demote the remaining bugs to high, opening master to mass landings [00:40] that will make thumper happy [00:40] now where do I file bugs....man this must be super frustrating for new users, finding where the real source is, then trying to find somewhere to file bugs === ChanServ changed the topic of #juju-dev to: https://juju.ubuntu.com | On-call reviewer: see calendar | Blocking bugs: None [00:43] wallyworld__, http://reports.vapour.ws/releases/1785 [00:44] o/ [00:44] \o/ [00:45] * wallyworld__ merges katco's harvesting mode branch [00:46] wallyworld__, I think abentley can release 1.20.7 tomorrow while I prep for 1.21-alpha1 for the day after [00:46] sounds good [00:46] and 1.20.8 next week sometime [00:47] sinzui: so....do you have any idea where I'm supposed to file bugs? Best I can come up with is https://bugs.launchpad.net/charms/trusty/+source/mysql but I'm pretty sure that's not the real repository [00:48] axw: you online? [00:49] wallyworld__: I am [00:49] good morning [00:49] morning :-) [00:50] hooray, CI is happy again [00:50] hum [00:50] axw: with the branch to mock out the provisioner api call - there's code to do that for uniter and usermanager facades (but duplicated). can we look to set up some common, shared code to do this? [00:51] wallyworld__: not sure it's worth it, it still requires in-package code because of the need to access private field [00:51] s [00:52] fair enough. perhaps then we should make sure all the implementatons are the same [00:53] I looked at the usermanager one and wasn't keen on it, I'll take a look at the uniter one [00:53] it's pretty much the same [00:54] whatever we decide, i think consistency is best [00:55] spose so. I'll take another shot [00:59] sinzui, wallyworld__ : I've updated bug 1364410 with some more details based on a discussion davecheney and I had earlier. We don't think it's PPC related. [00:59] Bug #1364410: Timeout TestManageEnviron MachineSuite in ppc64el [00:59] menn0: i would be surprised if it were [01:01] menn0: i like option 1 as well. i wonder why the fark we didn't implement it that way to start with :-( [01:01] wallyworld__, sinzui: tags and title updated [01:01] wallyworld__: possibly because it's hard to pull the port out of the depths of the API server [01:02] menn0: well, that's something that should have been considered in the design [01:02] wallyworld__: and possibly because it makes managing the API server configuration more difficult [01:02] IMO [01:02] wallyworld__: agreed [01:04] hatch, That is the real location of the bug tracker, and this shows the recommended and user branches that were converted to charms https://code.launchpad.net/charms/trusty/+source/mysql [01:05] menn0: sometimes a just despair of how stuff has been written without concurrency in mind. i mean, the port issue should have been clearly raising alarm bells when the code was developed [01:05] s/a/I [01:06] sinzui: yeah found it I filed a bug https://bugs.launchpad.net/charms/+source/mysql/+bug/1365205 [01:06] Bug #1365205: Charm cannot be deployed, fails on install hook with gpg error [01:08] wallyworld__: the docstring for FindTCPPort even mentions that there is a race but that the probility of an actual problem should "hopefully" be small [01:08] wallyworld__: that didn't work out :) [01:08] * wallyworld__ cries on the inside [01:08] ffs [01:14] menn0 wallyworld__: not sure if it's helpful or not, but I changed apiserver not too long ago to take a net.Listener as an arg, for the purpose of getting its port [01:14] i.e. listen on port 0, get the port, then pass the listener to api server [01:14] hmmmm, that may be useful indeed [01:15] axw: that sounds pretty helpful [01:16] axw: the problem is the config is generated and then the server is started later... and I think that config is also used for establishing client connections [01:18] so there will be a bit of faff to get the port actually used by the API server to where it's needed to allow clients to connect [01:18] menn0: so I see. yuck [01:20] menn0: one option is to store a net.Listener there (in primeStateAgent), then override net.Listen so that it returns that listener [01:20] a bit horrible maybe [01:22] axw: yeah a bit... but at least it stops the tests breaking every now again [01:30] wallyworld__, sinzui: there is a race condition in our tests... [01:30] no surprise there [01:30] but the location is interesting [01:30] a?? [01:30] several [01:30] many [01:30] lots [01:30] we open a port (:0) to figure out which port to use for mongo [01:30] we then close it [01:30] and pass it to mongo [01:30] and mongo uses it [01:31] sometimes it isn't fully closed before mongo tries [01:31] we could add a retry thingy [01:31] around mongo [01:31] checking for "port in use" [01:31] just a few times [01:31] should reduce the chance of it happening [01:32] we could [01:32] funnily enough, we can't test that the port is closed properly without opening it [01:32] can we? [01:33] or wait for the port to close before passing to mongo [01:33] thumper: are you referring to bug 1364410 or something else? [01:33] Bug #1364410: API server fails to start with "address already in use" in MachineSuite tests [01:33] not sure [01:33] menn0: yes, that one [01:33] thumper: because that bug is about the API server, not mongo [01:33] same problem [01:33] yes [01:33] we open a random port and pass it on [01:33] yes [01:33] doesn't mongo support passing in 0 for the port? [01:33] we've already been talking about it quite a bit here [01:34] menn0: oh, ok, I wasn't watching... [01:34] it chooses one and reports what it is listening on [01:34] I'll leave it to someone else :) [01:34] maybe it doesn't support that [01:34] thumper: read scrollback and check the updates to the ticket :) [01:34] for mongo we do actually retry a bunch of times as you suggest [01:35] see juju/testing/mgo.go:167 [01:35] it's a bit harder for the API server [01:35] bbs [01:35] wallyworld__: you can't use port 0 in mongo [01:36] i was wishing more than anything [01:36] wallyworld__: we could maybe do something horrible like get it to use a unix socket and redirect a socket to that [01:36] but it would be better just to not use mongo in the unit tests :) [01:37] you think? :-) [01:37] wallyworld__: I updated the api test mocking PR [01:37] you mean "unit" tests right? [01:37] ok [01:37] unified them around a common patching thingy [01:37] \o/ [01:37] i'm still looking at 663 [01:37] okey dokey [01:38] I'll go back to fixing the tools URL stuff I emailed about [01:38] ok [01:38] uh am I late for bashing our tests for using mongo? [01:38] ahh I am [01:41] has anyone tried the new side by side diffing on github yet ? [01:41] what, this is news [01:41] oh I just did [01:41] yay [01:41] its glorious [01:42] and it remembers my choice [01:42] sweeeeet [01:42] * axw removes octosplit [01:42] and it highlights the diffed parts [01:42] * perrito666 cries [01:42] our whining has been heard [01:52] thumper: menn0 https://github.com/juju/juju/pull/670 [01:52] a slightly contraversial one [01:53] wallyworld__: that comment about failing is wrong, it just overwrites now [01:53] sorry [01:54] I had originally intended it to, but changed my mind [01:54] davecheney: is it possible to just change it in state, but leave it with the api? [01:55] this is why the hash is encoded in the path, so if the put to the blobstore OR to mongo fails, we don't end up with inconsistent blob/metadata [01:55] thumper: nope [01:55] thumper: do you want a long discussion or a short discussion about why this type doesnt' add anything [01:56] short [01:56] the only benefit I see is that it is shorter to type [01:57] thumper: http://play.golang.org/p/4KQ6WrhFGf [01:57] there are no methods on StatusData [01:57] all it does is obscure what is actually being stored in the StatusData field [01:57] * thumper ndos [01:58] most of the code churn is in the tests [01:58] as usual [01:58] the actual api code, apart from the method sigs [01:58] is unaware of the change [01:59] thumper: thanks [01:59] this will probably be the most contraversial change [01:59] the rest are more mechainical [02:02] davecheney, thumper: FWIW, I'm -0 on this. I prefer the type aliases sometimes. They provide documentation and in this case, repeatedly spelling out of an otherwise awkward type. [02:03] map[string]interface{} is ugly to look at [02:03] especially when it's used a lot [02:04] menn0: i dunno how to incorprate signed zero feedback [02:04] either your +1 or -1 [02:04] it means, I don't like it, but I don't feel strongly enough about it that I'm going to ask you to stop [02:05] fair enough [02:05] too late now anyway [02:05] noted [02:05] i don't think there will be many more cases like this [02:09] hatch: bug tracker for the charm is on the GUI - http://i.imgur.com/MW05eAO.png, it should be in the README though. [02:10] hatch: what's going on with MYSQL? did you get a bug filed that I can look at? === menn0 is now known as menn0-afk [02:42] got this interesting intermittent failure: http://paste.ubuntu.com/8228881/ [02:42] why the 2 minute waits? [02:42] anyone got any ideas? [02:47] thumper: i *think* the waits are added to allow mongo replicaset to come up [02:48] from memory [02:48] ugh [02:48] which sucks. it's bad enough we have "unit" tests with mongo required, but to also turn on the replicaset stuff for *all* tests is even worse [02:49] if we must use mongo for now for tests, why have the replicaset stuff enabled unnecessarily [02:51] wallyworld__: didn't someone note that recently [02:51] i have a memory there was a note in the weekly minutes to stop doing that to ourseles [02:52] davecheney: probably, but it hasn't been done i don't think [02:52] i was hoping nate would be doing it since he's looking at the replicaset tests [02:53] i'll ask him [02:54] ta [03:02] wallyworld__: I don't understand your comment about Tools tests & primitives [03:02] what do you want to see? [03:04] axw: it was a suggestion that we use things other than the component under test to test itself. so for Tools(), we would get a blobstore, write some data manually, and check that Tools() can load it. ie a simplified bit of code without error checking and with hard coded values or whatever [03:04] AddTools() can still use Tools() in its test because Tools() has been separately tested [03:05] I see [03:05] ok [03:05] does that make sense? do you agree? [03:05] thumper: menn0-afk https://github.com/juju/juju/pull/671 [03:05] one more, less contentious this time === Ursinha is now known as Ursinha-afk [03:05] otherwise i could write an implementation that passes the tests but which doesn't work === menn0-afk is now known as menn0 === Ursinha-afk is now known as Ursinha [03:17] * thumper fears the rebase [03:17] * thumper takes a deep breath [03:18] thumper: never go the full rebase [03:19] why? [03:19] thumper: yes, agent/bootstrap.go depends on state [03:19] * davecheney really wishes our package had package comments [03:19] that way I wouldn't have to guess what the agent package did [03:21] thumper: i agree, to swap one dependency for another would not be a win [03:21] but agent already depends on state [03:21] yep [03:21] now, i'm not sure if that makes sense [03:21] that is why I'm fine with this [03:21] but i don't really know what the agent package is [03:21] i'm guessing it's helpers for jujud agent processes [03:22] yeah [03:22] ideally it wouldn't depend on state [03:22] no [03:22] i can put that on the end of the list if you like [03:23] thumper: that might be it for the changes today [03:23] need to for arm64 paperwork this afternoon [03:23] kk [03:24] and figure out how to come up with a plan for how to schedule 5 bits of concurrent work [03:24] davecheney: that PR you just submitted has 7 commits, 4 of which have a commit message of just "wip" [03:24] menn0: yup [03:24] i don't rebase [03:24] i can't make it work [03:24] davecheney: that's awful [03:24] yup [03:24] we've discussed this before [03:24] git rebase -i HEAD~ [03:24] easy [03:24] there has been no firm guidance here [03:25] but you have to admit that a commit with a message of "wip" is pretty useless [03:25] yup [03:25] it's my old process from bzr [03:26] menn0: i'm hoping that the bot will grow the ability to squash commits [03:26] davecheney: but squashing commits or even just rewording the commit messages is ridiculously easy [03:28] davecheney: nevermind.... I doubt I'm going to change your mind [03:31] menn0: I have a conflict during rebase [03:31] and I want to do a three way merge to see [03:31] any idea how? [03:32] do you have a favourite merge tool? (e.g. meld or kdiff3) [03:32] yes [03:32] either of those is fine [03:33] if so, type "git mergetool" at the conflict [03:33] select the tool you want to use [03:33] and it launches so that you can do the merge [03:33] that's what I do [03:33] what do you mean "at the conflict" ? [03:34] when the rebase stops due to the conflict [03:34] yes... [03:34] anything else? [03:34] then you type "git mergetool" [03:34] does that work for you? [03:37] thumper: ^^^? [03:37] kinda [03:37] * thumper is in meld hoping he is doing the right thing [03:38] with meld I usually use "Merge All" and then check how well it did [03:38] it normally does a pretty good job [03:38] but for really tricky conflicts you sometimes need to do some hand editing or manual merges [03:39] I didn't realise for sometime after I started using meld that you can edit in the middle pane [03:39] :) [03:39] thumper: ^^ [03:47] * thumper runs make to test [03:49] haha [03:49] everything fails [03:50] fixed the two trivials [03:50] * thumper waits to try again [03:50] coffee machine is calling [04:00] is there an easy way to push a new build to an existing juju environment? [04:02] wwitzel3: update-juju --upload-tools [04:02] wallyworld__: thanks [04:02] i've not used it myself :-) [04:03] I'm just peppering the code with Debugf statements and it gets old rebuilding the environment each time [04:05] yup [04:17] wallyworld__: or axw: https://github.com/juju/juju/pull/673 - trivial move [04:17] ok [04:24] gah... [04:24] * thumper rebased the wrong branch [04:24] FFS [04:24] how? [04:25] nope [04:25] did the right branch [04:25] tried to merge the wrong branch [04:25] d'uh [04:37] hey anyone here know anything about haproxy? I'm trying to find documentation, release notes, etc, but the 'official' site hasn't been updated since 2013 [04:41] ugh... [04:41] I need to apply a reverse merge for just one file from a previous commit [04:41] git master help needed [04:44] just hit: [LOG] 0:00.293 ERROR juju.worker exited "apiserver": listen tcp :60622: bind: address already in use [04:47] thumper: so you want to remove one file from a previous commit? [04:47] hatch: remove the changes to one file from a previous commit, yes [04:49] thumper: is it a recent commit? [04:49] two back [04:49] git rebase -i HEAD~2 then change 'pick' for the commit in question to 'edit' [04:50] if I am remembering correctly [04:50] I believe edit will allow you to modify the commit [04:50] hmm... ok [04:52] then once you do the changes you do `git commit --ammend` I believe [04:52] sorry I don't have a local repo to test with atm :) [04:57] thumper: work? [04:57] yeah [04:57] excellent [04:58] thumper: rebase has a lot of really awesome functionality, if you ever get some free time it's definitely worth reading the docs on it [05:05] axw: whenever you're free, i've updated blobstore to just use sha384 checksums https://github.com/juju/blobstore/pull/14 [05:08] looking === uru-bot is now known as urulama [05:18] axw: ty, i've merged as we don't have a landing bot yet [05:18] cool [05:26] menn0: i'm sorry about the ugly commit [05:26] i'll try to produce better PR's int he future [05:27] davecheney: :) [05:32] menn0: thumper [05:33] i'm at the stage where I have a bunch of enumeration types [05:33] lets say params.Life [05:33] that's an easy one [05:33] they are defined in params [05:33] but used in state as they are stored in the database [05:33] now, the first suggestion would be to move them into state [05:33] which makes sense for the apiserver [05:33] but that means api clients would also be importing state [05:34] and that feels wrong [05:34] yes... [05:34] thoughts ? [05:34] this is why we want a general separate package that handles that :) [05:34] i think there is general agreements that the api/ packages should know nothing about state [05:34] * thumper is being called for dinner [05:34] agreed [05:34] thumper: yes, but then both state and the apiserver and api clietns have to import those [05:34] and that feels like odd coupling [05:35] i'm thinking about using raw types in state, ie strings [05:35] then having parse and tostring() in the params pacakge [05:35] so the api and apiserver deal with enumerated types [05:35] and we convert them to strings to be stored in the databse [05:35] or something [05:35] similar to the method I wrote that converrts [05:35] state.StateServingInfo -> params.StateServingInfo [05:37] davecheney: seems ok except we then don't have nice friendly constants to use in state code [05:37] menn0: i agree [05:38] which kinda sucks [05:38] and, taking params.Life as an example again [05:38] it does have helper methods on it that make it more than just an alias, liek StatusData was [05:38] menn0: hang on, give me a sec to try something [05:39] hmm, what about [05:39] package state; type Life int const ( LifeAlive << iota .. ) [05:40] ^ this is what we have in params at the moment [05:40] then in apiserver/params [05:40] type Life state.Life [05:40] these should still marshal across the wire [05:40] and callers of the api won't be able to tell [05:40] there will be a transitive dependency from api -> apiserver -> state [05:40] but not a direct one [05:41] it will also prevent anyone using api/ types in state [05:41] that seems pretty good to me [05:41] let me try a PR [05:41] see how it looks [05:41] that means in the apiserver [05:41] you do [05:41] f(life params.Life) { st.Something(state.Life(life)) } [05:41] which is probably acceptable, given the constraints [05:42] and if we decide that there needs to be a difference between the constants in the apiserver vs state, it could be unpicked fairly easily [05:43] * menn0 is EOD... [05:44] kk [05:45] wallyworld__, I have to go into town to see the dentist shortly; I think there's just one major unresolved thing in the qos/status stuff, but it's a biggie: it's the per-relation statuses [05:46] wallyworld__, I can't see a way to do health well without relation granularity at least [05:46] fwereade: ok, i'm updating some comments in the doc now, yet to get to that bit [05:46] but i will [05:46] wallyworld__, and I can't see a way to do relation-granular statuses easily and comprehensibly either [05:46] fwereade: i have soccer in an hour or so, perhaps we can talk after the TL meeting? [05:46] wallyworld__, yeah sgtm [05:47] fwereade: what time is it? [05:47] wallyworld__, FWIW it's not really about stuff in the impl doc, it's unresolved questions in the reqs doc [05:47] tooth-hurty :-D [05:47] wallyworld__, haha [05:47] thought you'd "appeciate" that [05:48] wallyworld__, oh, I do, I had a 2:30 dentist appointment when I was small and told teh dentist that exact joke [05:48] \o/ [05:48] wallyworld__, he was very nice and pretended he'd never heard it before [05:48] lol [05:49] * fwereade has to go [05:58] axw: do we need to, or should we be, including the uuid in the tools url? are tools something that we care about segregating per environment? [05:59] wallyworld__: they are in the URL [05:59] axw: yes, that's what i'm referring to [05:59] https:///environment//tools/ [06:00] wallyworld__: ah, sorry thought you thought they weren't and should be [06:00] um [06:00] one sec, someone at door [06:01] wallyworld__: I think one user should not affect another user's env by manipulating tools [06:01] axw: that's a fair point [06:01] and the data is de-deuped anyway [06:01] they're going to be deduped in the blobstore [06:01] yeah [06:01] yup :-) [06:10] wallyworld__: we need to support 1.18 upgrading directly to 1.21? my understanding was that the client needs to be compatible, but upgrade still need to go through the hops [06:11] axw: yes, correct, upgrade steps are run one version at a time. i was worried if older clients attempted to use that attribute if it is taken away, i could be wrong [06:12] wallyworld__: I mean, I thought the client still was required to upgrade to 1.20 first, and then to 1.21 [06:12] axw: we need to support people using juju 1.18 clients "forever" [06:12] even with the back end upgraded [06:13] wallyworld__: everything except upgrading directly to 1.21 will work still [06:13] if you want to upgrade you still need to go to 1.20, then to 1.21 (this is my assumption) [06:13] axw: sure, but i might upgrade to 1.22 and you may still want to use an older 1.18 client [06:14] we need to always ensure 1.18 clients can be used with any 1.20, 1.22 etc [06:14] wallyworld__: that'll be fine. the bit of code in question is only relevant to the upgrader [06:15] axw: ok, np. just being doubly sure by asking the question [06:15] sure [06:15] we'd be in the shit if stuff broke :-) [06:20] wallyworld__, davecheney, axw, someone: https://github.com/juju/juju/pull/675 [06:21] thumper: currently reviewing, will look after i finish unless i have to bail for soccer [06:21] wallyworld__: ack [06:21] menn0: state already has a Life type [06:21] and it's defined as a uint8 ... [06:22] so we have params.Life, a string [06:22] and state.Life, an uint8 [06:23] ick [06:24] wallyworld__: if you are happy with my branch, please add the merge flags [06:24] will do [06:24] wallyworld__: I'm off for the evening until meeting time [06:24] cheers [06:24] morning all [06:24] o/ [06:24] wallyworld__, thanks for merging my branch - it makes me very happy [06:24] mattyw: i landed your branch for you :-) [06:24] np [06:25] mattyw: i wanted to get in in case CI was blocked again before your SOD :-) [06:26] wallyworld__, I appreciate it, thanks very mcuh [06:26] anytime [06:53] morning all [07:07] axw: off to soccer, i lgtm'ed your pr with a suggested change [07:07] wallyworld__: thanks [07:07] enjoy [07:31] morning [07:31] could somebody take a look at https://github.com/juju/juju/pull/667 ? [07:39] tasdomas, morning, and looking :) [07:39] dimitern, thanks [08:13] tasdomas, reviewed, i'm afraid it looks like it needs a bit more [08:16] dimitern, thanks [08:37] morning btw [08:37] TheMue: morning [08:38] voidspace: ah, good to see you. sharing room in Brussels? [08:38] * TheMue btw fight with code that yesterday before merging worked but not now anymore *wonder* [08:45] TheMue: I have a roomie TheMue [08:46] TheMue: if that was an offer, which I assume it was, thank you [08:48] * voidspace is also wrestling, but with lxc not code [08:51] voidspace: ok, thx for info [09:18] if anyone has a few minutes to spare, can I have a review on: https://github.com/juju/utils/pull/27 ? [09:30] morning TheMue [09:30] jam2: hi jam [09:30] voidspace: I read that for a second as wrestling with your roomie. [09:31] TheMue: I missed you yesterday, was I just not around when you were, or did I miss something else? [09:31] jam2: I thought I told on Tuesday that I had a doc appointment [09:32] TheMue: it is certainly possible that you did and I just forgot. No problem. Just turned out that Voidspace had a doc appointment, and dimiter had a power outage all during standup time. [09:32] I was so lonely. [09:32] jam2: my whole working day moved in the afternoon and evening, at about 11 I finished with merging and fixing conflicts :) [09:33] jam2: hehe, next time I will be with you using my mobile hangout :D [09:33] jam2: I even had to break my work in the afternoon for a short while, I got an urgent call by my daughter [09:34] jam2: she and her friend bought furnitures and wanted to rent a larger transporter. but they are too young [09:34] jam2: so they needed daddy as driver [09:35] natefinch: I commented on https://github.com/juju/juju/pull/512 [09:40] jam2: heh, not yet wrestling with a roomie [09:40] jam2: that comes soon [09:40] jam2: I finally have juju running on an lxc under trickle [09:40] voidspace: beware of thumper, he has a history there [09:40] hah, I can believe it [09:40] jam2: the fact that replicasets are taking *an age* to complete imply that it's working [09:40] caching makes it slightly hard to tell [09:41] voidspace: do you know about drop cache ? [09:41] jam2: I don't, but I will shortly... thanks [09:41] voidspace: http://www.linuxinsight.com/proc_sys_vm_drop_caches.html [09:41] I didn't rate limit it too much whilst I was installing packages and fetching the juju dependencies [09:41] 2MB/s [09:42] I completely failed to get nbd-server to read a config file and actually start [09:42] I ended up forcing it to skip the config file and specifying the parameters at the command line, which is actually a deprecated way of starting it [09:42] https://plus.google.com/114852031032123777881/posts/LgLST5uPHsJ [09:43] Interesting... my agent died while in debug-hooks. Anything I can do to diagnose? Its lxc. [09:43] and as a testimony to my experimentation I now have an lxc container I can't destroy (as it's filesystem is on a disk that no-longer exists) [09:46] voidspace: and inode handles keep them all alive? [09:46] stub: so you can pastebin the panic [09:47] http://pastebin.ubuntu.com/8231693/ [09:47] jam2: this chan prob better ;) [09:48] stub: it looks cut off at the start, though I'm not sure [09:48] I only see from goroutine 28 [09:49] jam2: yeah, hang on. paste fail. [09:50] * stub looks to see if it logged locally, outside of debug hooks terminal [09:51] http://pastebin.ubuntu.com/8231715/ [09:51] jam2: So, yeah. I typed 'relation-get db' or something and killed it :) [09:52] stub: so yeah... if a Charm can Panic Jujud, that's *bad*. Can you file a bug with just that first part of the traceback? [09:52] I can understand how that code could be triggered [09:53] (something assumes that it is getting a valid object, and then turns it into a Tag that assumes the input is well formatted and panics if it isn't) [09:53] davecheney: ^^ [09:53] looks like a case where we might be trying to validate input [09:53] but it is getting turned into a Tag before we query the DB [09:53] * davecheney looks [09:53] but that panic() rather than giving a "no such thing" error [09:53] relation-get - db [09:54] That was what I typed [09:54] yup, the bug is github.com/juju/juju/state/api/uniter.(*RelationUnit).ReadSettings [09:54] is using NewUnitTag [09:54] stub: sure, it probably is supposed to be "relation-get unit-db-0" [09:54] not ParseUnitTag [09:54] yeah, it was my fat fingers [09:54] stub: but regardless, it is a bug in Jujud code [09:54] jam2: hmm, not sure [09:54] that we would panic() because of bad user input [09:54] i think it should be db/0 [09:54] that is the name of the unt [09:54] unit [09:55] davecheney: sure, I'm not quibbling on what Stub should type, but *jujud* should not panic because of a typo in a charm [09:55] jam2: no argument there [09:55] stub: I'd consider this a Critical bug, fwiw, since it means a bad charm makes your environment unreliable [09:56] stub: or davecheney: can you file a bug to track this? I'm currently in 2 other conversations [09:56] https://bugs.launchpad.net/juju-core/+bug/1365412 [09:56] Bug #1365412: relation-get with invalid relation name panics agent [09:56] aaaargh, found why it's not working anymore [09:59] stub: is this with 1.20 or only with juju trunk? [09:59] jam2: 1.20 [10:00] dimitern, thanks for the review - I've responded to the comments [10:10] jam2: I think it's lxc configuration that prevents it from destroying the container [10:10] jam2: it shows up under lxc-ls but lxc-destroy reports that the container doesn't exist [10:10] jam2: stub i have a fix [10:10] PR coming RSN [10:10] great davecheney ! [10:11] tasdomas, cheers, will look in a bit [10:21] jam2: stub https://github.com/juju/juju/pull/677 [10:23] davecheney: is there a function like NewUnitTag that would do the check for us rather than doing IsValidUnit call? [10:23] jam2: nope [10:23] the value we're handling is not a tag [10:24] so names.ParseUnitTag() is not the right hammer either [10:24] My, that looks like parameter validation ;) [10:24] but, there is a simpler fix [10:24] good morning [10:24] davecheney: ah right, it is the name not the tag [10:24] if you're prepared to send this to the API server [10:24] * perrito666 sees a heavy storm outside and announces that he might be suddenly disconnected [10:24] note that we're turing the uname into a tag, then calling tag.String() on it to pass it to the api [10:24] why both ? [10:24] why bother [10:25] actually, not [10:25] we need to [10:25] beause the api only accepts tags [10:25] this fix is correct [10:25] davecheney: is there a reason NewUnitTag should panic() rather than having error like other things? [10:25] yes, it's a testing function [10:25] it's use in prod code is a smell [10:25] i discourage anyone from calling it [10:26] davecheney: how do you turn user input into name.Tag objects then? [10:26] depends [10:26] if the input is a string form of a tag with ParseTag [10:26] if not, we need to validate it first [10:26] then handle it with care [10:27] *iiirks* [10:27] davecheney: it sounds like we want something similar to ParseTag (ParseName) ? [10:27] davecheney: it certainly seems like validating user input for these things should be common code in the names package [10:27] anyway, your fix seems fine for now, but it doesn't seem "ideal" in the design sense. [10:28] jam2: i agree [10:28] the use of NewXXXTag is very dangrous [10:28] i discourage everyone from using it [10:28] my use of it in this case was a mistake because I think at the time i started this work I didn't understand the scope of the problem [10:29] jam2: is it intended that once the client requests a higher version of an API that doesn't exist on the server even if the API and the called function exist in a lower valid version, it fails (means: returns an error)? [10:30] TheMue: it is intended, yes [10:30] the client is responsible for noticing that the higher version is not available [10:32] jam2: so once introducing a new version maybe the whole client has to changed, because now an error is returned and an explicit call to a lower version (where the code intenionally has been written for) has to be done [10:32] TheMue: BestAPIVersion has already worked out what version is available and makes calls against that version [10:33] the point is that api/client.go should know about the available versions and give the compatible internal API [10:33] TheMue: so you would have Client.DoSomething(), which internally might be calling "Client", 1, "DoSomething", args [10:33] or might be calling "Client", 0, "DoSomethingElse", otherargs [10:34] jam2: it does it when starting once by retrieving them from the server, doesn't it? [10:34] TheMue: at Login time we find out what facade versions the server has available [10:34] jam2: then here maybe my troubles are [10:34] and when instantiating the api.Client object it determines (FacadeCaller) what the matching version is [10:34] jam2: running the AddRemoveSet tests on my machine (normally) takes 60 seconds [10:35] jam2: running them on an lxc rate-limited to 2MB/s up/down takes 4 minutes [10:35] jam2: limited to 1MB/s dies with unreachable servers [10:35] jam2: the code for temporarilly discarding a version has also to do this on the already retrieved versions [10:35] jam2: (this is with the extraneous Remove removed) [10:35] voidspace: sounds like a good start, you can probably increase some timouts to see if unreachable servers can be recovered from. [10:36] jam2: ok, I'll look at that - I might try with an intermediate value as well [10:36] jam2: I'd like to get a good few runs with a slow disk showing that we don't die in test cleanup when we don't have the Remove [10:36] voidspace: well for our tests to be reliable more consistenty, I'm think we probably need to change the timeouts, and move it to CI [10:37] voidspace: well, first I'd like you to see that we *do* die in cleanup with Remove there [10:37] voidspace: always have the test fail first [10:37] before you fix it [10:37] ah, ok - good call [10:39] voidspace: standard bugfixing, you have to know that you're reproducing the bug before you know that your fix is actually fixing it :). [10:39] jam2: sure :-) [10:39] that's why changing existing tests is dangerous [10:39] unless you also make sure you see the *modified test* fail [10:39] it's easy to change a good test into a no-op without noticing... [10:40] of course, testing replicasets on a *deliberately slow* system is even more painful than normal [10:46] voidspace: dimitern: standup? [10:46] voidspace: yeah, replication is painful [10:46] omw [10:47] jam2, omw, sorry [11:10] jam2: dimitern: TheMue: you can tell the next door neighbours kids have gone back to school - my internet connection is now good enough for google hangouts... [11:10] voidspace: :) [11:14] voidspace: *lol* [11:21] :) [11:21] tasdomas, you've got another review with some suggestions [11:40] is anyone else having trouble pushing master to github? [11:40] if not, are you using the pre-push hook? [11:41] thumper: I can try now [11:41] mgz_: ta [11:44] * mgz_ suspects windows syslog changes [11:44] and indeed, seems to be [11:45] lets just double check... [11:46] hm, happy after I did a dep upgrade [11:46] thumper: works for me [11:47] on trusty, after running godeps -u dependencies.tsv [11:47] $ git push origin master [11:47] Everything up-to-date [11:47] state/metrics_test.go:42:11: (*github.com/juju/juju/state.Metric).Key -> [11:47] MethodSet {} [11:47] panic: method sets and lookup don't agree [recovered] [11:47] panic: method sets and lookup don't agree [recovered] [11:47] panic: method sets and lookup don't agree [11:47] voidspace: so it sounds like you're really close to the "land the code" state, is that true? [11:47] that is what I get [11:47] voidspace: because I have other work for you to be looking into if you do. [11:49] thumper: I have that line, but not the panic. go 1.2.1 [11:49] TheMue: voidspace: dimitern: we're going to be picking up the PortRange changes from domas, so it would be good for a couple of you to read over the patch so far [11:49] tasdomas: can you work with those guys ^^ to help share knowledge of what is going on? [11:50] thumper: I guess if you just do `./scripts/pre-push.bash` you get that panic? [11:50] jam2, i've reviewed it twice and am familiar with the previous work [11:50] jam2: well - Remove the Remove is ready to land just need to create the PR [11:50] voidspace: yep. [11:50] jam2: the replicaset CheckHealth function (name?) is done but needs a test / logging / deciding where to actually use it [11:50] voidspace: sounds reasonable [11:50] jam2: if we just use it in the tests instead of sleeps then I can land that today too [11:51] (name wise) [11:51] jam2: and it probably doesn't need its own tests if we just use it in the tests [11:51] voidspace: think carefully about it, and I'll let your educated thoughts drive where we put it :) === allenap_ is now known as allenap [11:51] jam2: heh, ok [11:51] voidspace: The only good way to test it is by mocking out mongo [11:51] IMO [11:51] jam2, TheMue, voidspace: I still need to update the patch w.r.t fwereade's comments and I have a day off tomorrow - could we set aside time to go over this on Monday? [11:51] voidspace: I liked your ideas about having Add wait until things should be reliable [11:52] jam2: yep [11:52] jam2: ah, ok - I thought you *weren't* keen on that [11:52] voidspace: but I'm not deep in the code to have a good feeling for how it all hangs together [11:53] voidspace: sorry, it sounds like we must have been talking past eachother. I think haiing things transition from a known good state to another known good (enough) state is worthy [11:53] and Add() seems like the place where you might do that. [11:53] jam2: let me get the function usable, after I PR Remove the Remove, and look at plugging it into Add / Remove [11:53] jam2: ok, cool - what about Remove? [11:53] which is already slow [11:54] The issue in the code is whether it expects things to be more asynchronous and would work poorly if we waited here and tehre. [11:54] right [11:54] voidspace: changing the replicaset should be really infrequent [11:54] so waiting seems great [11:54] we have code (in tests) that expect stuff to be unstable and just retries the next operations until they succeed [11:54] which is horrible [11:54] Again, we can make "waiting" be until quorum [11:55] jam2: I'll look around it [11:55] or maybe "wait X for everything stable, then back off to Y for quorum" [11:55] yep, with logging [11:55] voidspace: I like the idea with you can spend a bit of time for full stability as long as it doesn't really impact [11:55] I'll see how they are used in the code and the wait strategies around them [11:55] better than always returning immediately because you always have quorum [11:56] and as the current operations leave the state unstable, we're either *already* waiting [11:56] or we have code that can sometimes fail horribly [11:56] so we're either replacing one wait with a better wait, or fixing a bug [11:56] so it sounds like a win [11:57] voidspace: right, and it is certainly possible that in your slow-case testing you'll find we can't reliably work with the system in a pre-commit test timeout [11:57] (which IMO, real unit tests should be milliseconds....) [11:57] fwereade: i'm just about to do our standup, can i ping you after that, soon? [11:58] jam2: I didn't quite parse that - you mean that waiting for stable should help with the slow system timeouts [11:58] because we're waiting for stable state [11:59] voidspace: I mean that waiting-for-stable-state may make the test unsuitable for the pre-commit suite and it needs to go into CI [11:59] (specifically I couldn't parse "with the system in a pre-commit test timeout") [11:59] and while I don't want to lose you to it, we need people who know how to add stuff to CI, so I'm willing for you to spend the time there. [11:59] jam2: ah [11:59] jam2: yep, parsed it now [11:59] jam2: I thought "pre-commit" was mongo terminolody [11:59] *terminology [12:00] jam2: agreed [12:00] voidspace: pre-landing-on-trunk [12:00] yep [12:00] But first, coffee [12:01] :) [12:01] wait, what's this pre... I see [12:01] you're suggesting voidspaces adds this as a ci job rather than a unit test [12:01] voidspace: I like the idea of having a "ci/" subdirectory that only runs in CI fwiw [12:02] ...why did I plural... [12:02] mgz: so TestAddRemoveSet is currently in github-merge-juju [12:02] mgz: we think that it needs to just be slower, which means it would be better as "run-trusty-tests" or whatever there [12:02] jam2: yeah, it sounds like a reasonable idea to me [12:03] the alternative is leave it in unit test form, but off unless --flag, and switch that on in the post-gating jobs... but that's pretty ugly [12:03] mgz_: FWIW I like ENV_VAR more than --flag [12:03] just because you can't pass --flag to "go test" reliabl [12:03] reliably [12:04] yeah, that's a pain [12:04] because it passes it to all packages [12:04] not just the one you want [12:04] otherwise I'd prefer flag [12:04] I'm not a big fan on ENV magic, but go test seems close to requiring it [12:05] mgz_: yeah... I have ./scripts/pre-push.bash hooked up as the git pre-push hook [12:05] makes pushes take a lot longer [12:05] thumper: me too [12:05] but it was in the docs [12:05] mgz_: so why is mine panicing? [12:05] that's what I want to know :) [12:07] * thumper is too tired to work it out [12:07] * thumper goes to bed [12:07] night all [12:11] I made a radical decision, I went for tea instead of coffee [12:12] voidspace: omg.... [12:12] jam2: yes, I like having CI tests in trunk - so developers can write new ones easily and have a sense of ownership over them [12:12] heh, indeed [12:12] voidspace: that's crazy talk [12:12] go back to coffee before you have any more [12:12] ownership over tests.... NOOOOO! [12:12] :-) [12:12] then we're responsible when they fail [12:12] it would be nice to reduce sinzui's blood pressure at least a *bit* [12:13] voidspace: we need a lot more ownership of CI stability, so I'm very happy to hear it. [12:13] yep [12:15] jam2: https://github.com/juju/juju/pull/679 [12:16] voidspace: just to confirm, you saw reliable failures under slow disk with the Remove in, and not with it out? [12:16] jam2: reliable as in about 3 runs out of 4 [12:16] jam2: but yes [12:17] voidspace: that is good reproducibility and good reduction without them, right? [12:17] great [12:17] jam2: yep [12:17] voidspace: LGTM [12:18] jam2: thanks === ChanServ changed the topic of #juju-dev to: https://juju.ubuntu.com | On-call reviewer: see calendar | Blocking bugs: 1365480 [12:44] mattyw: ping without hurry [13:07] natefinch: ping [13:08] TheMue: can you have a look at https://github.com/juju/juju/pull/392 ? It is doing versioning of the root Login function, and I think it would be worthwhile to have you think about it, too. [13:08] I'm mostly happy, though I had been hoping we wouldn't have to version the *entry point* into the system. [13:08] We can only do that *today* because 1.18 would let you Login even if you pass a version, and 1.20 will give you CodeNotImplemented if you did so. === wwitzel3_ is now known as wwitzel3 [13:15] * voidspace lunch [13:16] jam2: yep, will do [13:55] perrito666, ping [13:55] perrito666, pong, even [14:05] wwitzel3: standup? [14:06] yep, sorry [14:22] axw, ping? must be late for you [14:23] axw, wallyworld_, if either of you are awake: in the context of "drop provider storage", how far are we from the "can do HA manual provider" subgoal? [14:24] axw, wallyworld_, wwitzel3: because the cloudsigma thing will be incoming, and last I looked that was still using the manual storage method, which means that won't be HA-capable either [14:35] I thought we were avoiding gopkg.in [14:38] bodie_, I didn't think so? === urulama is now known as urulama_afk [14:39] hum, I got some pushback about it a while back, just didn't know whether I should worry about it [14:45] natefinch: I've submitted a new expenses claim I would appreciate you approving [14:46] natefinch: travel for Lexington sprint [14:48] voidspace: ok sure === benji_ is now known as benji [15:06] natefinch: ping me when you have a slot available [15:06] perrito666: will do === jog_ is now known as jog [15:17] hey, any opinions on how to name functions stuffed into var's for patching in tests? [15:18] i have environForName as the function now, i'd like to expose it with a var === katco` is now known as katco [15:19] katco: tricky [15:20] natefinch: i really dislike this pattern =| [15:21] natefinch: i'm thinking the var should be the name that makes sense since it should be the thing used everywhere, and then the func shouild be called *forPatching or something ugly to disuade use [15:21] katco: yeah, that's a good idea [15:21] katco: or *ProductionFunc or something [15:21] natefinch: i like that a bit better [15:22] natefinch: we'll see how that looks, thanks dude [15:22] katco: welcome. I'm pretty good at coming up with ugly names ;) [15:22] natefinch: haha aren't we all [15:34] WouldBeUglierIfJava [15:34] ouch is mattyw gone? [15:40] perrito666, mattyw is probably just having connection problems [15:41] * mattyw has quit (Max SendQ exceeded) [15:41] sounds like flooding [15:55] evilnickveitch: ping [16:05] *yeeeeeehaw* [16:06] sorry for being loud, but this crazy versioning test now works as it should [16:07] TheMue: yay! [16:07] is there a way to upload new tools without re-bootstrapping? I tried juju update-tools but that isn't a command. [16:11] wwitzel3: juju upgrade-juju --upload-tools maybe? === hatch__ is now known as hatch [16:12] katco: yeah, tried that, but it just says they are the same version, which is true [16:12] :) [16:12] wondering if I hacked the version and incremented it, if it would work then [16:12] wwitzel3: ah. look at the status, it should be incrementing the version. i think that error is... well erroneous ;) [16:15] wwitzel3: yeah, before: agent-version: 1.21-alpha1.1; after: agent-version: 1.21-alpha1.3 [16:15] wwitzel3: i remember reading up on this; there is a bug or something out there to simplify all this behavior. it's a very confusing command. [16:16] wwitzel3: also check your path to make sure you're not using the one from apt [16:48] lunch brb === uru_ is now known as urulama_afk [17:54] katco: sorry, forgot to say thanks :) [17:55] wwitzel3: haha no worries. although i _was_ wondering if it worked! [17:57] wwitzel3: btw i tried some bourbon the other day... maker's mark? i think? it wasn't as good as the stuff you bought in boston. but i'm a bourbon newb. [17:58] katco: I wish markers was a good as the stuff I buy, well actually, Jessa wishes it more than me :) [17:58] wwitzel3: haha [17:59] wwitzel3: i'm guessing the stuff you're into is rather pricey [18:06] natefinch: team meeting? [18:06] anyone else? [18:09] ericsnow: ping [18:09] wwitzel3: coming [18:16] anyone else aroudn here that feels should be on this meeting? [18:22] perrito666: sure ! :) [18:39] anyone know what line 50 of worker/uniter/runlistener.go is actually doing? [18:39] night all [18:41] wwitzel3: setting the value of result to the value of runResult [18:41] wwitzel3: er vice versa [18:41] wwitzel3: it's like an out parameter [18:42] wwitzel3: I have no idea why they're not just returning the result and the error [18:44] natefinch: yeah, that's what I was wondering, if there was a reason to not just return them there [18:45] wwitzel3: probably... maybe an interface that's being fulfilled or something (though why that interface itself wouldn't allow the result to get returned, I don't know) [18:45] the problem is, that if that RunCommands call actually does return nil for the result (as it does in all its error cases), that line throws a NPE [18:45] wwitzel3: heh uh yeah, that's bad. [18:46] wwitzel3: that code isn't run from within a closure by chance is it? [18:47] katco: yes, I think so, right [18:48] wwitzel3: funny, i recently did this in a personal project. at the time of the creation of the closure, it needed the variable to assign to; i.e.: the closure was being run in such a way that it couldn't return a value due to an interface it had to conform to [18:49] wwitzel3: and so i did a pointer dereference [18:49] wwitzel3, katco: what's funny is that on line 24 there's an interface that is written in the right way, which returns results and the error [18:50] natefinch: ok i call shenanigans on that code then :p [18:50] hrmm [18:50] katco, wwitzel3: JujuRunServer is passed to an rpc server... that's the trick [18:51] natefinch: so it can't return a result? [18:52] katco: http://golang.org/pkg/net/rpc/#Server.Register [18:52] natefinch: thanks [18:52] katco: thanks [18:53] natefinch: ah there we are. good find natefinch :) === arosales_ is now known as arosales [19:02] well it still doesn't change the fact that if the results from runner.RunCommand are nil that it panics with a NPE [19:02] so I should probably fix that while I'm in here [19:03] wwitzel3: quit being so proactive. [19:04] wwitzel3: absolutely fix it. If err != nil, we shouldn't look at the other value at all [19:13] ericsnow: what PR did you want me to review? [19:13] https://github.com/juju/juju/pull/606 [19:13] natefinch: thanks! [19:51] ericsnow: I think you're trying too hard to hide stuff in that backups code [19:52] natefinch: I guess I'm trying to avoid the way we leak stuff all over the rest of our code base :) [19:52] natefinch: anything in particular? [19:53] ericsnow: db.connInfo ... you should pretty much never have exported functions returning non-exported types [19:54] natefinch: that's a pretty crucial rule-of-thumb I wasn't aware of :( [19:54] natefinch: though it certainly makes sense [19:55] ericsnow: well for one thing, it means you can't see documentation about the type in godoc. It also means you can't write a function that takes that type [19:55] ericsnow: that's a really good example of a struct that really should just have all public fields. It doesn't need any methods at all [19:56] ericsnow: if you really want the Check function, you can make it a standalone function that takes a ConnInfo and does basically what it does now. [19:57] natefinch: doesn't that put more burden on the caller unnecessarily? [19:57] ericsnow: but honestly, the check function seems spurious. It might be useful as an internal helper function.. but ConnInfo is just a data bucket. Whether or not the address being empty is a bad thing depends on the function using it [19:58] natefinch: considering that the context is backups (specifically dumping the DB), I think the constraint is appropriate [19:59] ericsnow: It ties the logic of what makes a valid conn info to the type, rather than to the function.... and it's only the function that cares. [19:59] natefinch: thanks for this feedback, by the way :) [20:00] ericsnow: welcome :) [20:00] natefinch: but the point is that the type has a very specific use that is tied to that logic [20:01] natefinch: I'd expect a more general-purpose type to live in a more general-purpose package [20:05] ericsnow: I like that Go makes it easy to separate data from logic. You don't need to have types and methods for everything. You can have a struct with just some fields and a standalone function that verifies the struct has the right things set. It would be a lot less code. I *do* think that NewMongoConnInfo is useful. That's some pretty specific logic there. The rest is just boilerplate stuff because you're hiding [20:05] the fields in ConnInfo (and hiding ConnInfo itself). [20:06] ericsnow: I know we were all taught that public variables are the devil. It turns out, well, sometimes they're really not... especially if it's just data, and not internal state. [20:09] natefinch: hey, I'm a Python guy, so the whole public/private thing is kind of new to me...I guess I've been feeling it out [20:10] ericsnow: heh.... it;'s funny, because I come from C# / C++ etc where you have to think about that stuff all the time, and people are much more rigorous about never exposing anything... [20:10] natefinch: being able to syntactically express expectations like that is the one thing I like about static type systems [20:11] ericsnow: I like being able to statically express the type of thing I'm expecting to get.... it's good for me and it's good for the person calling my code :) [20:12] ericsnow: certainly, with Go's interfaces, it makes it a lot less burdensome on the caller than in other languages. "Give me something with a Read() method, I don't care what" is a lot nicer than "Give me exactly a ByteRead type, and if you don't have one, guess you're gonna have to make one and wrap your thing in it" [20:18] natefinch: type inference helps a lot too [20:18] ericsnow: yep, definitely. [21:06] davecheney: if you have time, I LGTMd this https://github.com/juju/juju/pull/681 and therefore need your validation to assert my self worth [21:06] :p [21:13] perrito666: sure [21:13] looking [21:14] i like it [21:14] if we on't write our own logic [21:15] we don't have to test it [21:15] win/win! [21:15] hmm [21:15] i dunno how to review this [21:16] i don't know if c.Remove respects the transaction system [21:16] and if it doesn't what the results will be [21:16] i'll write as such on the PR [21:18] davecheney: you are right, I somehow just assumed that it was not a problem since we are deleting and not changing (and therefore we do not worry about the main benefit of always work on an updated copy) [21:19] * perrito666 automatically looses all sense of self worth and crawls under his desk [21:21] wallyworld_: say my name when you are available plz [21:21] perrito666: sure, on a call, so soon [21:21] * perrito666 actually needs to start using world clocks to know when people are here [21:22] wallyworld_: davecheney what are your tzs? [21:22] perrito666: ausstralian eastern time [21:23] +10 (+11) I never remeber which [21:23] you're in the same tz as US west coast right [21:24] davecheney: gmt -3 which I believe has 1h diff with west coast [21:25] well my clock puts you both tomorrow [21:26] that is true, ian is from the future [21:26] that explains a lot === dpb2 is now known as dpb1 [21:39] perrito666: hi, what's happening [21:40] wallyworld_: priv === pjdc_ is now known as pjdc [22:17] morning folks [22:17] thumper! [22:18] wallyworld_: check with gccgo before caring about power [22:36] thumper: good moaning :) [22:36] menn0: 'ello 'ello [22:50] thumper: so just finished eating and looking at this bug, the log attached shows compile errors for power which makes me sad [22:53] the version on the test machine is 2 ahead of my gccgo which does compile it ok [22:53] ffs [22:57] awesome, i upgrade my compiler and it still works locally [23:01] menn0: standup? [23:19] \o/ lots of seg faults running tests wil gccgo [23:19] with [23:47] menn0: where were you going to make that one char change? [23:47] waigani: cmd/jujud/machine.go:546 [23:48] cheers [23:48] the call to net.Listen [23:53] davecheney: i think gccgo is broken again - it seems it no longer registers the hooks used in some of the tests, hence the code required to make the tests pass is never run [23:54] i think this may have come up before? [23:55] i have no idea what to do about it - i can't see that this should be a blocker that stops commits to trunk as it's not our code that is broken