text stringlengths 15 499 |
|---|
[00:42] <thumper> there are 10 recipients and 9 message ids |
[00:46] <mwhudson> thumper: i think i'm right |
[00:46] <mwhudson> >>> from email.Utils import make_msgid |
[00:46] <mwhudson> >>> msgids = [make_msgid() for i in range(1000)] |
[00:46] <mwhudson> >>> len(msgids) - len(set(msgids)) |
[00:46] <mwhudson> 5 |
[00:47] * mwhudson hated probability at uni |
[00:47] <mwhudson> if you take 10 samples with replacement from a population of 10000 what are the odds you'll get the same element twice? |
[00:47] <mwhudson> oh 100000 |
[00:49] * mwhudson tries an experiment |
[00:51] <thumper> damn |
[00:51] <thumper> that's really sucky |
[00:51] <thumper> relying on random for uniqueness is ick |
[00:52] <mwhudson> so in my experiment, the test will fail 50 times out of 100000 |
[00:53] <thumper> or 1 time in 2000 |
[00:53] <mwhudson> right |
[00:53] <thumper> I've seen it twice |
[00:53] <thumper> and we are up to build 535 |
[00:53] <mwhudson> there may be reasons why it happens more often in builds |
[00:54] <mwhudson> (though i can't really think of any) |
[00:54] <mwhudson> looks just as sucky in python 2.6 too |
[00:54] <thumper> ew |
[00:57] <mwhudson> i'm surprised there isn't a python bug report for this |
[01:09] <thumper> mwhudson: so what do you think we should do about testing message id uniqueness? |
[01:09] <mwhudson> i don't know |
[01:10] <mwhudson> thumper: ellipsize the count? |
[01:10] <mwhudson> and add a big flaming comment |
[01:11] <thumper> well, remove the count, or make it a set of message id and to address |
[01:11] <thumper> mwhudson: I think it is just trying to count the emails |
[01:12] <mwhudson> thumper: i guess so yes |
=== cprov-afk is now known as cprov |
[01:12] * thumper writes some tests before running off for 2.5 hours |
[01:14] <mwhudson> thumper: i'm filing a python bug |
[01:14] <thumper> ok, cool |
=== Ursinha is now known as Ursinha-afk |
[01:24] <thumper> mwhudson: I'm sure I've just broken a shed load of tests locally by making owner and product readonly |
[01:25] <thumper> running through ec2 to see how many :-| |
[01:25] <mwhudson> thumper: yeah, probably |
[01:25] <mwhudson> thumper: lots of easy fixes |
[01:25] <thumper> at the very least, branch +edit is broken |
[01:25] <thumper> hopefully |
[01:25] <thumper> although the edit form requires a bit of trickiness |
[01:25] <thumper> as the default behaviour of the notification is to take its own snapshot of the object |
[01:26] <thumper> and we'll have to do it locally first |
[01:26] <thumper> although I think I changed that code a long time ago to be smart :) |
[01:26] <thumper> ish |
[01:30] <thumper> mwhudson: I'm off now until about 3 |
[01:30] <mwhudson> thumper: okidoke |
[01:40] <meaton2veggies> hi, sls |
[01:52] <meaton2veggies> hey all, im building launchpad and at stage of 'make scheme' which fails due to 'storm' not installing |
[01:55] <mwhudson> meaton2veggies: try bzr up download-cache |
[01:58] <meaton2veggies> mwhudson: update to date: rev 55 |
[01:59] <mwhudson> meaton2veggies: then maybe try make clean; make ? |
[01:59] * mwhudson has to run for lunch, biab |
[01:59] <meaton2veggies> mwhudson: error in output shows no Python.h in cextensions.c , im probably missing something for gcc? |
[02:00] <mwhudson> oh |
[02:00] <mwhudson> you need both python2.4-dev and python2.5-dev i think |
[02:00] <mars> yep |
[02:00] <meaton2veggies> ahk cool thats it cheers |
[02:01] <meaton2veggies> thought i had the dev pkgs n didnt |
[02:01] <meaton2veggies> thats clear |
[03:00] <mars> oh, the pain, right at the end: |
[03:00] <mars> ec2-register ec2-windmill-11//mnt/ec2-windmill-11/image.manifest.xml |
[03:00] <mars> /usr/bin/ec2-cmd: line 17: JAVA_HOME: JAVA_HOME is not set |
[03:00] <mars> ERROR:__main__:Oops! |
[03:02] <mwhudson> mars: heh, nearly there at least |
[03:23] <mars> mwhudson, do you know how to set the JAVA_HOME variable for subprocess.call() ? |
[03:24] <mars> without using env=, since that kills the shell environment |
[03:24] <mwhudson> mars: env = os.environ.copy(); env['JAVA_HOME'] = ..., call(env=env) |
[03:24] <mars> oh, awesome |
[03:24] <mars> thanks! |
[03:24] <mwhudson> np! |
[03:25] <mwhudson> on a syscall level, you always provide the entire environment aiui |
[03:25] <mars> hm. common pattern then? |
[03:32] <mwhudson> i guess |
[03:32] <mwhudson> it's what happens more or less when you do 'VAR=value foo' in the shell i think |
[03:33] <mars> ok, the script is finally done! |
[03:33] <thumper> mwhudson: hows the cvs bug hunting going? |
[03:33] <mwhudson> thumper: i've found a repo that fails to import from scrach finally |
[03:33] <mwhudson> thumper: rysnc-ing it to my machine now |
[03:34] <thumper> ok |
[03:34] <thumper> mwhudson: were you going to submit a testfix branch? |
[03:34] <mwhudson> oh crap, i was |
[03:34] <mwhudson> i didn't, though |
[03:34] <mwhudson> thumper: do you still want me to, or are you going to do it? |
[03:35] <thumper> mwhudson: if you are just waiting for an rsync, you can do it :) |
[03:35] <thumper> mwhudson: if you're busy, I could |
[03:35] <mwhudson> heh, it finished |
[03:35] <mwhudson> let me kick off a local import and i'll do it |
[03:35] <thumper> ok, ta |
[03:49] <mwhudson> thumper: https://pastebin.canonical.com/20576/ |
[03:52] <thumper> mwhudson: r=me |
[03:52] <mwhudson> ta |
[03:53] <thumper> I'm unhappy |
[03:53] <thumper> the courier says they delivered my phone |
[03:53] <thumper> but it isn't here |
[03:54] <thumper> mwhudson: what would you suggest is the best way to get a member of a celeb team? |
[03:54] <mwhudson> thumper: ! |
[03:54] <thumper> mwhudson: just grabbing the celeb team.owner? |
[03:54] <thumper> mwhudson: for a unittest |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.