=== wgrant_ is now known as wgrant [02:54] lifeless / wgrant: around longer? [04:40] nigelb: Hi. [04:52] wgrant: just need a quick help with a test [04:52] nigelb: Sure. [04:53] I add some code to the linkchecker [04:53] and I'm writing tests for private bugs [04:53] Is thre a place I can see an example of a private bug creation? [04:54] Something like factory.makeBug(private=True) doesn't do what you want? [04:58] sure, but I also want a use who can see that :) [04:58] makePerson() [04:58] I also want a user who can see the bug :) [04:58] bug.subscribe(person, person) [04:58] ahh~ [04:59] also, the '/bug/1234', I'll need to just build that myself right? [04:59] But the anonymous user won't be able to call bug.subscribe(); you might need to use 'with celebrity_logged_in("admin")' or so. [04:59] canonical_url(bug) will give you the URL. [05:00] trying now [05:01] Also, urgh @ YUI tests. [05:56] wgrant: er, lol. what's the guranteed way to come up with an invalid bug number? [06:00] nigelb: Well, depending on the test, you could find the max bug number and add 1. Or deliberately make a hole in the postgres sequence. Or use sys.maxint. Or something. [06:00] ah, there'sa wway to find max bug number. [06:07] nigelb: why do you want an invalid bug number ? [06:07] lifeless: the link checker returns valudes when the bug number is invalid. [06:07] (or private) [06:07] I want to catch both cases. [06:07] 'valudes' ? [06:08] *values [06:08] it is doing that? or you think its doing that ? [06:09] It is doing that. I wrote the code ^-^ [06:09] If you used the approach I suggested, you don't need to discriminate between private (won't be found in a search), nonexisting (won't be found in a search) [06:09] Ah [06:09] So, just give it a private bug and then assume the same for invalid? [06:10] unless your code actually discriminates between private and invalid, any change in behaviour is out of the scope of your code and you shouldn't test it there [06:10] does your code discriminate ? [06:10] nope [06:10] then you should rely on the interface you're using (bug search) and its tests ;) [06:10] oh. [06:11] but I still should be testing my code for valid vs invalid bugs right? [06:11] where invalid maybe be private or nonexistant. [06:12] But you're saying that I should not test for private and nonexistant since my code doesn't differentiate between them [06:12] * nigelb is unwell and not completely awake. [06:44] Ugh, I feel like stabbing YUI. [06:48] nigelb: thats what I'm saying, yes. [06:48] a unit test should only test the behaviour of the unit under test [06:48] *integration* tests may test multiple layers, but they should be few and far between. [06:49] lifeless: I did what you suggested :) [06:50] Now, onto testing the javascript code [06:50] aka stabing YUI. [07:21] hm, can't it working. Maybe I should ask someone on Monday. === Peng__ is now known as Peng [12:59] * jelmer waves [13:00] jelmer: O hai -- could you look at the db-devel failure and see if the conflict I fixed had anything to do with it? [13:03] StevenK: Sure, let me have a quick look [13:53] StevenK: looks like they have somewhat to do with your branch - db-devel has bzr 2.4, which has slightly different locking semantics [13:54] argh, I wish testr integrated better with the launchpad testsuite :-/ [14:03] that said, I can't reproduce the errors here, they look spurious [14:05] jelmer: Feel free to force a build, then [14:06] StevenK: it haz been done [14:14] 54 [14:14] gah [20:04] *yawn* morning [20:04] jelmer: please file bugs about things that make the integration poor [20:09] lifeless: will do [20:10] wgrant and I are using it for lxc based parallel test dispatch [20:11] ah, neat [20:52] and its new project time again [20:52] \o/ [20:53] lifeless: what are you starting now? [20:54] jelmer: gpgfixtures [20:55] jelmer: test support for gpg - extracting the stub keyserver etc from lp [20:55] so that I can test the gpg verification web service sensibly without code duplication or importing LP [20:56] jelmer: I made 3 new LP projects last week :P [20:56] lifeless: [20:56] whoa [20:57] lp:python-oops, lp:python-oops-wsgi and lp:python-oops-datedir-repo [20:58] jelmer: https://dev.launchpad.net/CreatingNewProjects has probably been polished since you last read it [20:59] lifeless: None < any(last_modified_time) :P [20:59] lifeless: does that mean things that are split off no longer have to be "lazr" projects? [21:00] that's great [21:03] https://launchpad.net/python-gpgfixtures [22:08] jelmer: care to do a real simple review ? :) [22:08] https://code.launchpad.net/~lifeless/launchpad/gpgme-egg/+merge/72366 [22:10] lifeless: ooh [22:10] lifeless: I didn't realise 0.2 was out [22:10] lifeless: +1 [22:11] thanks [22:15] ok [22:15] -not- what you want to find in every codepath using a test server: [22:15] sleep(0.02) [23:11] * wallyworld_ is off to visit the bank armed with a baseball bat [23:16] wallyworld_: ?! [23:45] 926 + cls, 'PROJECT', 'Product', [23:45] 927 + 'Display search results associated with products') [23:45] :( [23:46] 937 + cls, 'PROJECTGROUP', 'Project', [23:46] 938 + 'Display search results associated with projects') [23:46] :( [23:46] isn't that wrong ? [23:46] Yes. === almaisan-away is now known as al-maisan === al-maisan is now known as almaisan-away [23:58] "Though there is work going on to demoralise the data to make the DSP queries fast" [23:58] best typo evah