/srv/irclogs.ubuntu.com/2012/03/21/#ubuntu-installer.txt

cjwatsonslangasek: grep -B1 -A2 db_text /usr/share/debconf/confmodule00:41
dokonow afk, getting some food, will be back in an hour or so00:58
slangasekcjwatson: heh, ok01:03
CIA-32ubiquity: stgraber * r5290 ubiquity/ (debian/changelog ubiquity/frontend/gtk_ui.py): Only allow for one orca instance at a time.01:48
infinitystgraber: How that you're a GTK3 CSS expert, want to port Human to GTK3 for me?02:20
infinitystgraber: Thanks in advance.02:20
CIA-32ubiquity: cjwatson * r5291 trunk/ (3 files in 2 dirs):08:53
CIA-32ubiquity: Make sure to load translations for "USB" and "CD" on the language page08:53
CIA-32ubiquity: (LP: #958249).08:53
evdear lord. Do you people sleep?12:52
stgraber:)12:53
evso as it turns out, switching on crash reporting for whoopsie has an effect: https://bugs.launchpad.net/ubuntu/+source/whoopsie-daisy12:56
bdmurrayheh12:58
jodhlo13:01
cjwatsonstgraber: bug 961003 looks like a regression from your keymap indicator work13:06
ubot2`Launchpad bug 961003 in ubiquity "ubiquity crashed with TypeError in restrict_list(): 'set' object has no attribute '__getitem__'" [High,New] https://launchpad.net/bugs/96100313:06
* cjwatson takes bug 96102513:07
ubot2`Launchpad bug 961025 in ubiquity "ubi-webcam: Pictures listed on 1 column" [Medium,Triaged] https://launchpad.net/bugs/96102513:07
stgrabercjwatson: looking13:07
stgrabercjwatson: argh, weird we never hit that case before... I'll add a test and fix it13:11
cjwatsonI wondered if it was due to successively choosing different languages13:12
cjwatsonI'm attacking 961025 to start with by way of a little test suite mod (http://paste.ubuntu.com/893578/) that causes it to show me all the pages in sequence13:13
cjwatsonwith any luck that will help13:13
cjwatsonactually, what would people think about committing a cleaned-up version (http://paste.ubuntu.com/893582/)?13:14
stgraberno, it's just that it's the only part where I'm trying to get a subset of a set instead of a list. It's in the code that triggers when default-layout+country-layouts+simple-variants still makes less than 4 entries, it then adds the next four ones from the original list13:14
cjwatsonright, I was just wondering if the keymap list grew over time or something13:15
cjwatsoncertainly the actual fix is probably trivial13:15
bdmurraythe 'install ubuntu 12.04 lts' icon text has gotten longer? I now see that an 'install this system permanently to your hard disk'13:16
cjwatsonheh, not that it wants to show me the webcam page anyway, grumble13:17
jibelbdmurray, bug 96114113:17
ubot2`Launchpad bug 961141 in nautilus "Desktop icons display comments from desktop file in label" [Undecided,New] https://launchpad.net/bugs/96114113:17
jibelknown upstream but I couldn't find an existing bug report.13:17
stgrabercjwatson: yeah, adding an option to make the test slower sounds like a good idea when we're debugging UI weirdness (like our usual won't-fit-on-netbook-screen)13:18
bdmurrayjibel: thanks13:19
CIA-32ubiquity: cjwatson * r5292 trunk/tests/test_gtkui.py: make it easier to debug layout problems using 'UBIQUITY_TEST_SHOW_ALL_PAGES=1 tests/run --no-xvfb test_gtkui'13:24
CIA-32ubiquity: cjwatson * r5293 trunk/tests/test_gtkui.py: the webcam page seems to need two ui.refresh() calls before it appears here; who knows why, but this is fairly harmless13:25
cjwatsonof course this still shows webcam images in two columns *grumble*13:25
* ogra_ wishes we had a proper way to actually check for a webcam13:28
ogra_but i couldnt find something better than the code already has13:28
ogra_(for bug 924419)13:29
ubot2`Launchpad bug 924419 in ubiquity "oem-config detecting camera where no camera exists" [Medium,Incomplete] https://launchpad.net/bugs/92441913:29
cjwatsonchecking for a capture device doesn't seem awful?13:29
cjwatsonah, I see :-/13:29
ogra_well, if the driver exposes a capture device :)13:29
cjwatsondoes cheese do anything better?13:29
cjwatsonand is it cheap to check whether the device works?13:30
ogra_but there doesnt seem to be something like a check for "hey you got something wired up there"13:30
stgraberI really think the bug is on the kernel's side... I'm sure having these /dev/videoX devices will confuse a lot more than just ubiquity13:30
ogra_cjwatson, i wouldnt know how apart from take an actual pic and check if there is something on it but black pixels13:30
ogra_essentially the bug is on the HW side (or the driver as stgraber said), it shouldnt expose a device unless there is actually something wired up13:32
CIA-32ubiquity: cjwatson * r5294 trunk/tests/run: add a --no-build option to skip building source code first13:44
cjwatsonev: is the order of existing images in the face selector deliberately pseudo-random (filesystem order)?  I was thinking about sorting it so that it would be more reliably testable - http://paste.ubuntu.com/893625/13:48
CIA-32ubiquity: stgraber * r5295 ubiquity/ (debian/changelog tests/test_misc.py ubiquity/misc.py): set_indicator_keymaps: It's not possible to access a position in a set so convert it back to a list.13:48
cjwatsonmaybe s/pseudo-random/arbitrary/13:49
evcjwatson: it wasn't purposeful, no. So by all means13:49
cjwatsonOK, cool13:49
cjwatsonnot that I've figured out where jibel's bug there is coming from yet - just noticed that in his screenshot the astronaut image was first, whereas for me it was lightning13:50
dokogood morning13:51
CIA-32ubiquity: cjwatson * r5296 trunk/ (debian/changelog ubiquity/gtkwidgets.py): Sort existing images in the face selector by filename.13:52
* stgraber takes bug 96062813:54
ubot2`Launchpad bug 960628 in ubiquity "guided partitioner allows a partition size smaller than minimum requirement" [Undecided,Confirmed] https://launchpad.net/bugs/96062813:54
* barry reboots mumble13:55
cjwatsondoes -usbdevice work for anyone else to attach a webcam to a kvm?13:56
cjwatsonI have 'sudo kvm -monitor stdio -m 512 -cdrom precise-desktop-i386.iso -hda t.img -usb -usbdevice host:18ec:3299' but I get 'kvm: usb_create: no bus specified, using "usb.0" for "usb-host"' and 3x 'kvm: Warning: speed mismatch trying to attach usb device USB2.0 PC CAMERA to bus usb.0', and the virtual machine can't see the webcam13:56
cjwatsonI guess maybe I can stub it out somehow13:58
bdmurrayI find it really strange that if I screw up ubi-partman.py the page isn't displayed at all and ubiquity carries on13:59
stgrabercjwatson: most webcams are usb2 only so won't work with kvm's usb1 hub. There's a way of adding a usb2 hub to qemu but last I tried it was very experimental and crashed kvm for me13:59
cjwatsonstgraber: gotcha, thanks13:59
cjwatsonubiquity's plugin interface isn't perhaps the most robust ...13:59
stgraberif anyone has an idea on what might be the source of bug 950282 any help would be appreciated14:00
ubot2`Launchpad bug 950282 in oem-priority/precise "Installation failing with pop-up "The installer encountered an unrecoverable error and will now reboot."" [Critical,Confirmed] https://launchpad.net/bugs/95028214:00
stgraberso far it seems to be pretty random, shows up as a libc segfault and the source is still pretty much unknown14:01
stgraberjibel did some tests but without being able to track down the change introducing the bug (that I'm aware of)14:01
cjwatsonbah, 961025 shows up in kvm with the webcam availability check stubbed out, but not in the test suite14:06
CIA-32ubiquity: stgraber * r5297 ubiquity/debian/changelog: Add bug number for panel bug14:07
cjwatsonI suppose it might have something to do with the presence of the progress bar below14:08
cjwatsonyes!14:12
jibelstgraber, I can't reproduce it since the 14th on the same hardware that was affected (tested on 2 machines, same brand, same model)14:12
stgraberdoko: can you take a quick look at bug 950282? when it occurs we get a libc segfault in the syslog, sadly it's kind of hard to reproduce as even jibel can't get it to happen (but OEM appears to be able to reproduce fairly easily)14:15
ubot2`Launchpad bug 950282 in oem-priority/precise "Installation failing with pop-up "The installer encountered an unrecoverable error and will now reboot."" [Critical,Confirmed] https://launchpad.net/bugs/95028214:15
cjwatsonin fact that's completely bizarre.  allow_change_step(False) is enough to change the layout14:16
CIA-32ubiquity: cjwatson * r5298 trunk/tests/test_gtkui.py: test_pages_fit_on_a_netbook: disable changing step after the partman page14:18
CIA-32ubiquity: stgraber * r5299 ubiquity/ (debian/changelog ubiquity/frontend/gtk_ui.py): Call show_all() instead of show() when starting the quit dialog to fix bug 96060014:30
ubot2`Launchpad bug 960600 in ubiquity "Quit dialog - broken geometry" [Undecided,Fix committed] https://launchpad.net/bugs/96060014:30
cjwatsonnice catch14:31
dokostgraber, from the bug log it looks like it's not reproducible anymore?14:33
dokojodh, about bug #946663, I'm now able to reproduce it here locally14:34
ubot2`Launchpad bug 946663 in ubiquity "Installer stuck at "Removing conflicting operating system files..."" [High,Confirmed] https://launchpad.net/bugs/94666314:34
stgraberdoko: according to comment #12 and #14, it still happens for Christopher (OEM) on DELL machines14:35
jodhdoko: yes, I saw your comment. I'm currently looking at bug 684309 whilst waiting to install a kvm image with an encrypted /home.14:39
ubot2`Launchpad bug 684309 in ubiquity "Ubiquity Advanced Partitioning - Converting/Using ext4 to ext2 without formating formats the partition without warning" [Undecided,Confirmed] https://launchpad.net/bugs/68430914:39
* ogra_ rolls an ubuntu-server arm image since last nights builds failed due to ubiquity being building 14:41
bdmurrayhas something changed that would have fixed bug 960278?14:42
ubot2`Launchpad bug 960278 in ubiquity "ubiquity crashed with UnicodeEncodeError in debug(): 'ascii' codec can't encode character u'\xe9' in position 55: ordinal not in range(128)" [Undecided,New] https://launchpad.net/bugs/96027814:42
slangasekbdmurray: are you running your test in French?14:43
bdmurrayoui14:43
slangasekhmm, ok14:44
cjwatsonpossibly the incorporation of the new console-setup upload14:44
cjwatsonwhich was in 2.9.3114:44
cjwatsonexactly how that would have fixed that, not entirely certain14:44
* slangasek wonders if we should throw some random ascii look-alike characters into our English strings in the installer to exercise these code paths earlier in development :)14:48
bdmurraywell how would I find an Unknown keyboard variant for a layout?14:48
cjwatsonslangasek: python3 should address it, when we port14:48
slangasekyeah14:49
cjwatsonits number one benefit AFAIAC14:49
cjwatson(with a fairly significant cost, but still ...)14:49
* cjwatson attempts to port the face selector to GtkGrid in the hope that height-for-width geometry management will fix 96102514:50
bdmurrayokay, so I got it to crash again now14:53
dokojodh, need to reboot, is there more information to provide?15:01
jodhdoko: I don't think so at this stage. It's looking ecryptfs-related as I haven't seen it with non-encrypted /home yet.15:02
dokomumble eating 1.5gb ram ...15:05
slangasekdoesn't do that here15:06
slangasekoh, well, depending on how you're measuring I guess15:06
slangasek1395m VIRT15:06
ogra_well, its a virtual sprint, he likely needs all his virtual mem ;)15:09
stgrabercjwatson: if you have a minute, can you review http://paste.ubuntu.com/893749/ ?15:28
cjwatsonAny objections to http://paste.ubuntu.com/893748/ ?  I've spent a good hour trying to make it work more elegantly with proper geometry management and failed; I think this should do for now.15:28
stgrabercjwatson: basically trying to make the minimum install size consistent and using the same function everywhere15:28
stgrabercjwatson: looking15:29
stgrabercjwatson: no objection, seems to be the easiest way to enforce the two columns layout ;)15:30
cjwatsonyeah, ineed15:30
cjwatson*indeed15:30
cjwatsonstgraber: yours seems fair enough to me15:30
cjwatsonand I second removing code quasi-duplication ...15:30
CIA-32ubiquity: cjwatson * r5300 trunk/ (debian/changelog ubiquity/gtkwidgets.py):15:31
CIA-32ubiquity: Force face selector icon view to a two-column layout, in lieu of better15:31
CIA-32ubiquity: geometry management (LP: #961025).15:31
CIA-32ubiquity: cjwatson * r5301 trunk/debian/changelog: typo15:31
CIA-32ubiquity: stgraber * r5302 ubiquity/ (4 files in 3 dirs): Move min_size() from ubi-prepare to install_size() in misc, update any remaining code needing the minimal install size to using it and tweak ubi-partman's resize function to use it too.15:34
* cjwatson holds his nose and dives into bug 68429215:36
ubot2`Launchpad bug 684292 in ubiquity "Installing to USB drive (sdb), writes MBR to internal drive (sda) without warning or giving option to change" [High,Triaged] https://launchpad.net/bugs/68429215:36
* stgraber starts poking at bug 96003915:56
ubot2`Launchpad bug 960039 in libindicator "ubiquity greeter : Label of the network indicator changes to the keyboard layout code" [Undecided,Confirmed] https://launchpad.net/bugs/96003915:56
cjwatsonev: so, I don't think this bug can actually be in misc.grub_default() after all, but are you OK with http://paste.ubuntu.com/893845/ anyway?  Seems a shame to waste the effort writing test code16:32
cjwatson(It also splits up misc.grub_default a bit to make it more testable, but there should be no functional change)16:33
* ev looks16:33
evthis is excellent16:40
ev+116:40
evyay for very readable tests16:40
cjwatsoncoolio, thanks16:41
cjwatsongiant test framework plus short tests ;-)16:41
CIA-32ubiquity: cjwatson * r5303 trunk/ (debian/changelog tests/test_misc.py ubiquity/misc.py):16:41
CIA-32ubiquity: Refactor ubiquity.misc.grub_default to make it testable, and add tests16:41
CIA-32ubiquity: for it.16:41
ev:)16:41
ogra_cjwatson, so i dont seem to get around the full username, login and tasksel questions in oem-config using the preseed file from the bug16:53
ogra_https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/924018/+attachment/2702031/+files/preseed.cfg16:54
ubot2`Launchpad bug 924018 in ubiquity "Preseeding doesn't work with oem-config" [Medium,In progress]16:54
ogra_nothing special in there i think, so i suspect there are still areas in the user-setup and tasksel plugins that dont let it do full automation16:55
cjwatsonok, do you have a debug log?16:56
cjwatson(it's dinnertime here now, but I can look right afterwards)16:57
ogra_just added to the bug17:00
ogra_funnily its only asking full name and login, not the password question17:00
ogra_oh, i just notice we dont actually use the normal user-setup but something called user-setup-ask-oem17:11
CIA-32ubiquity: stgraber * r5304 ubiquity/ (debian/changelog ubiquity/frontend/gtk_ui.py): Switch from calling 'tail' to calling 'busybox tail' so the ubiquity vte widget shows something useful during installing.17:12
slangaseklunch17:14
barryso, i think https://code.launchpad.net/~barry/ubiquity/bug-959724/+merge/98515 is ready for review.  see the comment about the tests.  /me -> lunch17:16
stgraberbarry: can you add a changelog entry?17:18
stgraberI'm going for lunch now too, will have a closer look when I'm back17:19
* jodh -> food.17:19
ogra_oh, funny, so /usr/lib/ubiquity/user-setup/user-setup-ask and /usr/lib/ubiquity/user-setup/user-setup-ask-oem differ only in the reserved-usernames they read from either /usr/lib/ubiquity/user-setup/reserved-usernames or /usr/lib/ubiquity/user-setup/reserved-usernames-oem17:20
ogra_thats a huge amount of duplicated code for just a single grep17:20
* bdmurray goes to lunch17:21
* ev looks over barry's merge17:44
cjwatsonbarry: fat16/fat32 -> vfat18:05
cjwatsonI think?18:05
cjwatsonoh, maybe not, these are parted types aren't they, not Linux types, sorry18:05
cjwatsonbarry: asymmetry between the set_grub_options impls - you removed the realpath call from one but not the other18:06
evgoing to make the trip home18:07
evback in 3018:07
cjwatsonbarry: does this still allow grub to be installed to disk devices?18:08
cjwatsonbarry: my reading of the code is that it doesn't ...18:08
cjwatsonyeesh, kvm -usbdevice really is unusably slow18:10
cjwatsonogra_: user part: http://paste.ubuntu.com/894005/18:12
cjwatsonogra_: the log seems to be truncated with a load of zero bytes before it gets to the tasksel part, so hard to investigate that18:13
cjwatsonogra_: as for tasksel, 'tasksel tasksel/first multiselect server, openssh-server' preseeds the first run of tasksel during installation, but oem-config counts more as running tasksel again later (although I realise that isn't strictly true in this case)18:15
cjwatsonogra_: you could preseed tasksel/tasks instead and that should work here, but that's a bit problematic because it would mean any future manual run of tasksel would also be "preseeded"18:16
dokojibel: about bug 950282, I thought that was seen on more than one machine?18:16
ubot2`Launchpad bug 950282 in oem-priority/precise "Installation failing with pop-up "The installer encountered an unrecoverable error and will now reboot."" [Critical,Confirmed] https://launchpad.net/bugs/95028218:16
cjwatsonthe problem with using 'tasksel --new-install' (hence tasksel/first) is that it will be prepared to remove tasks you don't select as well as installing tasks you do18:17
cjwatsonactually, tasksel/tasks can't be preseeded anyway18:18
cjwatsonso this is tricky.  do you have a use case that actually wants task selection?18:19
dokoany suggestion which issues to look at?18:23
slangasekdoko: there are some more bugs on the pad to choose from: http://pad.ubuntu.com/ubuntu-installer-sprint18:24
bdmurraywhile http://paste.ubuntu.com/894016/ fixes bug 960278 we end up having less information in the debug log18:24
ubot2`Launchpad bug 960278 in ubiquity "ubiquity crashed with UnicodeEncodeError in debug(): 'ascii' codec can't encode character u'\xe9' in position 55: ordinal not in range(128)" [Undecided,New] https://launchpad.net/bugs/96027818:24
slangasekbdmurray: why encode as ascii rather than as utf-8?18:24
slangasekit should be safe to use utf-8 as the authoritative encoding for our log files, I think18:25
bdmurrayaiui that won't worth with sys.stderr18:26
slangasekI was actually wondering on that bug if we shouldn't be ensuring that ubiquity always starts in a UTF-8 locale?)18:26
barrycjwatson: definitely fat16 and fat 32; you're right that i need to remove another realpath() call (doesn't hurt, but isn't necessary); should still be installable on disk device because that gets added (as 'default') separately, or did you mean something else?18:26
cjwatsonthere's C.UTF-8 now18:26
ogra_cjwatson, well, this is mainly for the QA tests, i doubt they will run tasksel any time later18:26
cjwatsonbarry: any disk device should be selectable here18:26
cjwatsoneven if it isn't the default18:26
barrycjwatson: let me add a test and fix for that18:27
cjwatsonexplicitly encoding as utf-8 ought to work with sys.stderr, anyway, even if writing unicode objects doesn't ...18:28
cjwatsonogra_: hm, there used to be a thing you could preseed to leave out some steps, but I'm having trouble finding it now18:29
slangasekbdmurray: yes, explicit encode seems to work: http://paste.ubuntu.com/894037/18:30
cjwatsonmaybe it got lost in the grand refactoring to plugins18:30
ogra_well, i really dont think the tasksel bit is an issue18:30
cjwatsonyeah, used to be oem-config/steps18:30
slangasekthough I still wonder if we shouldn't just set the locale so stdout/stderr are implicitly UTF-818:30
ogra_at least not for the QA usecase, not sure anyone will ever use preseeding in any other scope with the preinstalled images18:30
cjwatsonogra_: ok, but we do need them to be able to leave it out for automatability, don't we?18:31
slangasek... even though this is contrary to the advice in the video barry linked to :)18:31
barrycjwatson: do you think i need a gtk ui test?18:31
cjwatsonin the special case of ubiquity I think there'd be worse things than running it in C.UTF-8 if that exist18:31
cjwatsons18:31
cjwatsonbarry: depends how hard it is (I forget how much of that exists already); please do if it's not too painful, but I'm not sure it's worth building up a big framework for at the moment18:32
ogra_cjwatson, well, they would have to mangle the image anyway to set automatic mode in the cmdline and put the preseed file in place18:32
cjwatson(although if there aren't partman tests, there certainly should be)18:32
barrycjwatson: ack18:32
ogra_so the preseed file can as well already have all tasks selected in advance18:32
barrytrue18:32
cjwatsonogra_: the point is that there's no way to do that in their preseed file18:32
barryslangasek: you could always close sys.stderr and sys.stdout and reopen them with the correct encoding :)18:32
cjwatsonogra_: I think we might have to add something like 'oem-config oem-config/skip-plugins string tasks'18:33
stgraberI know we have some partman tests, I had to change/add tests when I worked on the reuse (upgrade) code18:33
ogra_cjwatson, you think tasksel/tasks wouldnt work ?18:33
cjwatsonogra_: I know it won't18:33
ogra_ah, k, i missed that above18:33
slangasekbarry: sick and wrong :)18:33
cjwatsonwhen I looked at the code I realised that that's explicitly non-preseedable and for good reason18:33
barry:)18:33
barrycjwatson, stgraber this one may not be so difficult.  i just need to call set_grub_options() and then check that the menu item has the expected values18:34
cjwatsonbarry: there's a build helper script in d-i that has http://paste.ubuntu.com/894042/ near the start18:34
ogra_cjwatson, yeah, then i think skipping it completely and leaving it to late-command would be best18:34
cjwatsonwhich I suspect isn't very 3-friendly, but18:34
slangasekbarry: if we're going to do it at all, better to just set the locale before calling ubiquity... but what do you think about that idea in general?18:34
GrueMasterogra_: cjwatson:  Would it make sense to have oem-config-remove remove any debconf entries created by the preseed during postinstall?18:35
barrycjwatson: i was thinking about opening the fd directly to (perhaps) eliminate a layer of calls, but that pastebin will work too18:35
ogra_GrueMaster, no, you want the dbeconf db to be consistent with your installation18:35
cjwatsonGrueMaster: too hard to figure out I think, and anyway I don't really think it's the right answer here - tasksel has too many problems in this specific context, I really think you just want to skip it18:35
barryslangasek: that's probably a good thing to in either case :)18:35
slangasekok18:36
barryslangasek: or we could port the code to python 3 now18:36
* ogra_ tries the user-setup bit now18:36
slangasekbarry: sure, then we could just remove the installer from the CD :P18:36
GrueMasterWell, without tasksel, how are you going to preseed installing ubuntu-server and openssh-server?  Both are needed for testing preinstalled images.18:36
barryslangasek: our job is done!18:37
cjwatsonGrueMaster: oh, those aren't in the preinstalled image?18:37
slangasekbdmurray: does using .encode('utf-8') work?  do you think that's a better way to go here?18:37
cjwatsonwah18:37
GrueMastercjwatson: They aren't in any image that I am aware of.18:38
ogra_ubuntu-server surely is18:38
ogra_but yeah. openssh-server isnt installed18:38
GrueMasterogra_: I thought our preinstalled server mirrored the ubuntu-server seed?18:39
ogra_ubuntu-server must be pulled in by the seed at image build time18:39
cjwatsonok, let me rethink this a bit then18:39
ogra_if not, thats a bug18:39
bdmurrayslangasek: I believe it would but should test to be sure.  However this is only one usage of sys.stderr that would be fixed right?18:39
ogra_likely in the image build system somewhere18:39
cjwatsonin any event I think you'd have to duplicate any tasks in the preinstalled image in your preseeded tasksel/first to make sure that tasksel --new-install doesn't remove them18:39
GrueMasterI know when I select it during oem-config, I get some 40+ packages installed.18:40
cjwatson(it was designed to be called on top of a base system, not something that already had some tasks installed)18:40
slangasekbdmurray: yeah... if we can set LC_CTYPE=C.UTF-8 in the environment everywhere we launch ubiquity, we should be able to fix all of them in one go18:40
ogra_well, lets just skip that and use late-command18:40
ogra_its not like this is hard18:40
cjwatsonbut skipping it requires infrastructure in ubiquity too; I'd almost rather provide a way to do this in the tasksel plugin18:40
cjwatsonless intrusive18:40
ogra_k18:41
cjwatsonplus I just started writing the relevant code :)18:41
ogra_lol18:41
ogra_you seriuosly are to fast18:41
ogra_hmpf, still getting the fullname question18:41
ogra_grrr and i cant get more logging out of it, if i let the install finish i lose my image and have to start over18:43
cjwatsonogra_: something like http://paste.ubuntu.com/894064/18:45
cjwatsoncan I at least have the debug log you have so far from that?18:46
ogra_its exactly the same as on the bug18:46
ogra_truncated at exactly the same place :/18:46
ogra_my prob is that i cant actually properly shut down the board so i cant unmount, only reset or poweroff physically at some point18:47
ogra_which seems to truncate18:47
cjwatsonsync first?18:47
ogra_how ?18:48
ogra_i have no access18:48
ogra_(serial install)18:48
cjwatsonoh18:48
ogra_i'll add the new code snippet and let it run through now18:48
cjwatsonI don't know what else might be wrong with user preseeding; that's the only thing I can see that might be killing it18:49
ogra_could the resetting of the uid be at fault btw ?18:49
cjwatsonno18:49
ogra_k18:49
cjwatsonthat's there to undo the hack in debian/oem-config-udeb.postinst, and otherwise (for non-d-i installs) should be a no-op for pretty much everyone in practice18:50
slangasekbdmurray: so to go the LC_CTYPE route, it should be sufficient to add 'env LC_CTYPE=C.UTF-8' to the top of each of the upstart jobs in ubiquity, I think; when run from the desktop launcher I would expect it to already have a reasonable locale setting - but I guess that also needs to be checked18:51
ogra_right, i was just wondering if user-setup gets unhappy if there is no value and asks because of that, but if its a no-op, then it should be fine18:51
cjwatsonno, it's an internal-use hack18:53
cjwatsonwon't be asked18:53
ogra_k18:53
cjwatsonslangasek: why LC_CTYPE and not LANG?18:53
cjwatsonmight as well have a default for all the categories18:53
slangasekbdmurray: hmm, though in the original bug report, it doesn't look like the 'debug' option was passed on the kernel commandline... maybe this was launched manually from the desktop and didn't get a good env18:53
slangasekcjwatson: fair enough18:53
cjwatsonslangasek: and maybe just do it in bin/ubiquity instead?18:53
cjwatsonos.environ.setdefault('LANG', 'C.UTF-8') or some such18:54
slangasekcjwatson: requires closing/reopening stdout/stderr after setting it18:54
slangasekif you expect it to have an effect for the current process :P18:54
cjwatsoncould re-exec :-)18:54
* slangasek whimpers18:55
* ogra_ is happy he has LEDs on the panda ... after netcfg i get no output at all anymore now but it seems to be busy doing stuff18:57
stgraberogra_: you just need a /dev/console -> morse code converter and you'd even know exactly what's happening :)18:59
ogra_heh18:59
stgraberogra_: then use one of the button as an input device also accepting morse code ;)18:59
ogra_haha, i wonder if anyone ever did that as a dev project ... TI pays for these19:00
ogra_or at least awards the coolest one19:00
ogra_hmm, but it would be nice to get a login prompt at some point19:01
cjwatsonnCipher (where I used to work) had an emergency-use error LED on its hardware security modules that flashed error codes in Morse19:02
ogra_haha, cool19:02
cjwatsonusually "SOS <letter>"19:02
stgrabernice :)19:02
cjwatsongiven the requirements on what you're allowed to send in and out of an HSM, emergency use actually means "quite often"19:03
GrueMasteriirc, both leds on the panda along with the second button are user-programmable (although I could easily see someone starting a morse code message on the reset button by mistake).19:03
ogra_yup, they are19:04
* ogra_ really starts to mistrust this install though 19:04
cjwatsonis there a hardware speaker?19:04
cjwatsonthose are great for higher-bitrate encoded debugging19:05
ogra_the SD occasionally gets accessed and the NIC blinks from time to time as well but it doesnt seem to finish19:05
ogra_no, there is only a headphone jack19:05
GrueMasterNo, but I'm sure it wouldn't be too difficult to wire one through a gpio.19:05
cjwatsonI've done that while trying to bisect where GRUB's first stage was failing given an extremely limited amount of spare bytes to play with19:05
cjwatsonin fact I think I spent much of one rally with the hoverbook playing loud tunes at me19:06
* ogra_ grins19:06
ogra_  File "/usr/lib/ubiquity/plugins/ubi-tasks.py", line 39, in prepare19:06
ogra_    if 'UBIQUITY_AUTOMATIC' in os.environ:19:06
ogra_NameError: global name 'os' is not defined19:06
ogra_oh my19:06
stgraber:)19:07
cjwatsonsorry, http://paste.ubuntu.com/894098/19:07
cjwatsonmy bad :-/19:07
ogra_my bad for not seeing it °!19:07
cjwatsonshould've run pyflakes19:07
ogra_well, fixed19:08
ogra_in any case that got me more log19:08
stgraberspeaking of pyflakes19:08
CIA-32ubiquity: stgraber * r5305 ubiquity/ubiquity/misc.py: Make pyflakes happy (unused variable)19:09
* cjwatson runs out of ideas for ways to attack bug 684292 reliably without hardware he doesn't have to hand right now, and asks komputes for help19:09
ubot2`Launchpad bug 684292 in ubiquity "Installing to USB drive (sdb) using automatic partitioning writes MBR to internal drive (sda) without warning or giving option to change" [High,Triaged] https://launchpad.net/bugs/68429219:09
ogra_heh19:09
dokoheh, I was looking at this too, but was scared away19:10
cjwatsonmisc.grub_default works, so it's something that isn't calling that, I guess19:10
cjwatsonbut I really need a debug log19:10
* ogra_ listens to internet radio ... and there was just that beautiful female voice so i thought i should look up the name of the singer ... seems its a man :)19:10
cjwatsonthe logs on the bug are useless, they're from a system with only one disk so I don't think they can even be related19:10
cjwatsonand if I rig up something to fake a removable device without it actually being attached as (even emulated/virtual) USB, then there's a risk that I'll miss exactly the buggy code path19:11
cjwatsondoko: did you try reproducing it, even, if you have a useful relevant system to hand?19:12
cjwatsonif so we could work on it together19:12
ogra_cjwatson, i attached the longer log with the python error to the bug too, but the user part doesnt look different in any way19:13
dokocjwatson, no, I'm scared away because I'm still travelling and that could damage my only machine now. and it's a mac, using refit to boot19:13
cjwatsonah yes, that's not going to be desperately useful here19:13
cjwatsontoo different19:13
dokobut I'll look at it next week19:14
ogra_right, but at least its not truncated :)19:14
cjwatsonogra_: mm, I'm stumped, something must be resetting the seen flag on that question before oem-config starts19:14
cjwatsonif it were something in oem-config itself then we'd see it in that log19:15
ogra_eeek ! i got the language screen again19:15
* ogra_ checks the kernel cmdline ... could it be that it moved forward even though tasksel stopped ?19:15
ogra_hmm, no, looks proper19:16
* ogra_ runs debconf-set-selections chrooted on the SD to make sure preseeding is reset to the original values19:18
ogra_bah, language screen again19:19
ogra_now thats funny, i had to hit enter for language and region but now it completely seems to finish19:20
ogra_didnt ask the user stuff either19:20
ogra_i wonder if the FS just got corrupted, i'm treating it really badly since begining of the day19:21
ogra_*pling* ... and its in oem-config remove (whose colors are causing eye pain on serial)19:24
GrueMasterYea, I wish I could find where that color change is.  Not seeing anything in the ubiquity tree that mucks with the colors.19:30
slangasekwhich way do the colors change?19:30
GrueMasterslangasek: see lp74722919:31
GrueMasterlp:74722919:31
GrueMasterbug 747229 ?19:31
ubot2`Launchpad bug 747229 in ubiquity "weird color change during oem-config debconf package removal step in serial installs" [Medium,Confirmed] https://launchpad.net/bugs/74722919:31
ogra_slangasek, it looks like the oem-config terminal simply doesnt properly clean up after itself, running oem-config-remove manually at any point doesnt have that effect19:31
GrueMasterthere we go.19:31
ogra_i planned to look at that after we got preseeding running19:32
slangasekogra_, GrueMaster: heh, ok19:33
GrueMasterI seem to remember something needed to be changed (maverick timeframe iirc) when the changed the default terminal color map.19:33
slangasekI have no idea on that one19:33
ogra_nobody has, and its really hard to debug19:33
ogra_GrueMaster, no, it was there before it just got more obvious with the color change19:34
ogra_before it wasnt hurting :)19:34
GrueMasterok.19:34
GrueMasterI wonder if it changed when ubiquity changed from unicode to utf-8?19:35
ogra_(it was black/white inverted back then)19:35
GrueMaster(pure speculation).19:35
* ogra_ doesnt know when that was19:35
ogra_ok, starting over with a fresh card and all hacks in place19:36
ogra_to be sure the FS isnt corrupt etc19:36
ogra_i also wonder if we had the re-set user stuff because the debconf lock was still in place due to me pulling out the card without unmounting19:37
* ogra_ gets fresh coffee while the card gets written19:37
slangasekGrueMaster: not sure what you mean by "changed from unicode to utf-8"... did you mean ascii rather than unicode?19:39
GrueMasterPossibly.  Could just be unintelligent ramblings.19:40
GrueMasterI really don't know the code that well.19:40
slangasekwell, the only encoding of unicode that's ever been used was utf-8 :)19:41
GrueMasterNothing in the changelogs to suggest that though.19:41
GrueMasterNot correct.  I found where one python script had unicode throughout, and was changed to utf-8.19:42
GrueMasterubiquity/plugins/ubi-console-setup.py was where I saw the changes.19:43
GrueMaster(not that they are relevant to this particular issue).19:43
slangasekGrueMaster: sorry, I don't know what you saw, but the only unicode encoding we've *ever* used in Ubuntu is utf-819:44
slangasekah, I guess revno 5114 maybe?19:45
slangasekconsole interaction would've always been in utf-819:45
slangasekbut python libraries may use one of two object formats internally, sure19:46
GrueMaster5114?  I only have 492 (I could be in a different tree - lp:ubuntu/ubiquity).19:46
slangasekyeah, I'm on lp:ubiquity :)19:47
GrueMasterAt any rate, I thought I'd throw my eyes into the mix to see if I could spot something, but nothing is coming up.19:48
cjwatsonGrueMaster: I think what slangasek is trying to say is that you have a category error: UTF-8 is an encoding of Unicode19:48
GrueMasterOk.19:49
cjwatsonperhaps not to be confused with the Python built-in function unicode()19:49
stgraberbug 961543 is a weird one :)19:49
ubot2`Launchpad bug 961543 in ubiquity "menus leave artifacts on screen" [Undecided,New] https://launchpad.net/bugs/96154319:49
cjwatsonbut changing from that to misc.utf8 was purely a matter of adding more safety; if you look at the implementation of misc.utf8, it goes like this:19:49
cjwatsondef utf8(s, errors="strict"):19:49
cjwatson    """Decode a string as UTF-8 if it isn't already Unicode."""19:49
cjwatson    if isinstance(s, unicode):19:49
cjwatson        return s19:49
cjwatson    else:19:50
cjwatson        return unicode(s, "utf-8", errors)19:50
cjwatsonso it's actually a wrapper around unicode()19:50
cjwatsonlp:ubuntu/ubiquity is the auto-imported tree, none of the developers use it19:50
* GrueMaster never claimed to be a developer. :P19:51
cjwatsonheh19:54
cjwatsonstill, easier for archaeology too19:54
GrueMasterTrue.  I'm just wondering if the color issue is even in oem-config.  oem-config-remove looks fine on it's own, and I have not seen anything that would be tweaking the colors during startup.19:56
cjwatsonsounds like the sort of thing you might get from something being run in bterm vs. outside bterm, maybe19:56
ogra_yeah, i read some of the bterm docs, seems you cant run a bterm inside a bterm19:58
ogra_i wonder if thats what is happening here19:58
* ogra_ curses19:59
GrueMasterExcept none of /bin/oem-config* runs in a bterm.  Only bin/ubiquity.19:59
ogra_so this install went straight through to tasksel19:59
ogra_i wonder if i missed something19:59
GrueMasterOnly the tasksel stuff (hopefully).20:00
ogra_hmm, no20:01
ogra_all in place20:01
bdmurrayDoes http://paste.ubuntu.com/894178/ look good for a merge proposal?20:02
slangasekbdmurray: looks good to me20:09
slangasekcjwatson, ev: ^^ is this worth adding a test case for?20:09
slangasekI guess that could be relevant for python3 porting20:10
cjwatsonI had half a python3 branch lying around somewhere but it wasn't urgent20:10
evyes please20:10
cjwatsonit looks OK but do please test it with both str and unicode types of message20:11
cjwatsonit might well get either20:11
cjwatsonit can just be a unit test, you don't need to construct a full-blown FilteredCommand to do it20:11
cjwatsonmaybe with a mock sys.stderr object that checks what gets fed to .write()20:12
slangasekshould that be a new file under tests/, or is this a logical addition to one of the existing ones?20:14
cjwatsonnew file20:17
cjwatsontest_filteredcommand.py20:17
cjwatsonmock.patch('sys.stderr')20:18
cjwatsonyou can use that as a method decorator20:18
cjwatsonso something like:20:18
cjwatson    @mock.patch('sys.stderr')20:18
cjwatson    def test_debug_unicode(self, mock_stderr):20:18
cjwatson        ...20:18
ogra_hmm, so the tasksel step only works if i actually use tasksel/tasks20:18
ogra_(well, not sure yet it "works", but at least it skips it then)20:19
ogra_ok, dropping the tasksel line from the preseed file makes everything work fully automatic20:24
cjwatsonodd, but ok ...20:24
ogra_yeah, installing openssh-server can go into late command or so20:25
ogra_and everything else should be ssh'able then, even running "tasksel install foo"20:25
ogra_cjwatson, did you do the code changes inb the branch already ? else i have them all here and can commit20:26
cjwatsonno, please go ahead and commit whatever you've tested20:26
ogra_ok20:26
* infinity wanders through to cough on everyone on his way to find soup.20:27
cjwatson(FWIW, I'm happy for anyone on the foundations team to have direct commit access to ubiquity, which is just a matter of adding you to the ubuntu-installer team; the reason I don't just add the whole team is that ubuntu-installer gets a LOT of bug mail and people kind of need to have mail filters armed and ready)20:27
infinitycjwatson: If by "filters", you mean shunting it all to /dev/null, I've been doing that for years. ;)20:28
cjwatsonthat's a filter, albeit a trivial one :)20:28
* infinity prefers bugs as an on-demand pull medium, not a push medium.20:29
cjwatsonor maybe "degenerate" is better mathematical slang for this20:29
infinityWhich, unfortunately, does mean I miss out on OMG CRITICAL, DO IT NAO bugs.  But those usually cause a fuss in IRC and the like too.20:29
cjwatsonI filter bugs actually assigned to me differently from ones I'm just subscribed to.20:30
infinityI could do that.  Still wouldn't solve my criticality issue.20:30
cjwatsonWhich seems a decent compromise.  I also arrange for bugs with oem-priority tasks and the like to end up in my inbox.20:30
infinityUnless I assume someone ELSE is subscribed and reading, and they'll assign to me.20:30
cjwatsonpeople outside my management chain don't get to say "DO IT NAO", and my management chain knows how to assign bugs :-)20:31
infinityActually, come to think of it, assigned bugs DO land in my inbox, while the rest go to .launchdpad-bugs (which may as well be /dev/null)20:32
infinityBut that wasn't intentional.20:32
infinityI just never looked at why those headers differed enough for one set to slip through. :P20:32
infinityAnd it's been like that ever since we switched to Malone.20:32
infinityI'm *that* lazy. :P20:32
* slangasek assigns infinity ALL the bugz20:32
infinityGAH.20:32
infinitycjwatson: I was thinking less about management chain, and more about just noticing quickly.  Like my broken grub2 upload (which you fixed post-haste).20:35
infinitycjwatson: Granted, that was less about me not having bug mail, and more about me not being near a computer, I think, cause the dude pinged me on IRC and direct email. :P20:35
cjwatsonslangasek: http://ewx.livejournal.com/457086.html20:36
CIA-32ubiquity: ogra * r5306 trunk/ (4 files in 3 dirs): fix oem-config-firstboot, ubi-tasks.py and bin/ubiquity to make automatic (and preseeding) mode work in oem-config (LP: #924018)20:39
bdmurrayis it just me or my editor? does it look like line 42 in test_timezone.py is missing an ' ?20:45
cjwatsonline 42 is:20:45
cjwatson        self.gtk.changed(self.gtk.city_entry)20:45
slangasek        self.gtk.changed(self.gtk.city_entry)20:45
slangasek?20:45
bdmurray52 then20:45
slangasekyour editor or terminal20:45
cjwatsonprobably your editor - it's ' <Unicode heart sign> '20:45
slangaseku'♥'20:45
cjwatsonwithout the spaces20:46
bdmurrayright for me the ' overlaps the ♥20:46
ogra_GrueMaster, see my updates to bug 92401820:46
ubot2`Launchpad bug 924018 in ubiquity "Preseeding doesn't work with oem-config" [Medium,In progress] https://launchpad.net/bugs/92401820:46
GrueMasterI see a commit.20:47
ogra_that too :)20:47
ogra_i'll test with an apt-get install openssh-server in late command now just to make sure it actually works as expected20:47
ogra_and with that working we should be done20:48
GrueMasterI don't think the late command is even triggered.  The sudo changes didn't take affect here.20:48
GrueMasterAlthough, I do have the chroot line from netboot, which should be removed.20:49
ogra_heh, definitely20:50
ogra_i'll try with a proper line20:50
GrueMasterAre you going to puch a new jasper with the boot.scr changes?20:51
ogra_no20:51
ogra_its up tp the testers to change boot.scr20:51
ogra_you do it before jasper, it gets carried through20:52
GrueMasterOh.  I thought you would do it in jasper as part of the first boot loop.20:52
ogra_i cant make all server images default to automatic mode ;)20:52
ogra_jasper just keeps all cmdline entires it doesnt know unmodified and carries them over20:53
GrueMasterNo, but you do already detect the preseed file in jasper during first (resize) boot.20:53
ogra_that doesnt mean the user wants automatic20:53
GrueMasterSeems it would be easy to add there.20:53
GrueMasterOk.20:53
ogra_you could set kbd, language and region preseeded but still want the user to use their own PW and name20:54
ogra_defaulting to automatic every time a preseed file is there would make that impossible20:54
GrueMasterYea, didn't think that through.  Multi-tasking atm.20:55
ogra_i wonder why jasper is so noisy in serial installs ... theoretically all output is redirected to the log21:00
bdmurrayis using EvironmentVarGuard the right thing to do in tests?21:11
cjwatsonif you're setting an environment variable for the use of a single test, yes21:11
ogra_hmm, no, late-command is actually not executed at all21:11
ogra_weird21:11
bdmurrayso test_migratiationassistant.py could be chnaged to use it?21:12
cjwatsonbdmurray: it could, though setUp/tearDown is a valid way to do this as well21:12
cjwatsonarguably simpler there since it wants that to apply to all future test cases added to the same class21:13
cjwatsonev: in testing bug 684292, it's come up that if you have an OS already installed on one disk (say, an internal disk), then you don't get any automatic partitioning options that might allow you to automatically partition another disk (say, a USB stick)21:13
ubot2`Launchpad bug 684292 in ubiquity "Installing to USB drive (sdb) using automatic partitioning writes MBR to internal drive (sda) without warning or giving option to change" [High,Triaged] https://launchpad.net/bugs/68429221:13
cjwatsonev: I think there's an argument that this is a weakness in the UX spec; what do you think?21:13
* ev looks21:13
evhm, yeah21:16
cjwatsonit'd be nice if you still had the "use entire disk" option21:16
evlets point that out to Matthew in the morning21:16
cjwatsonwhatever it's called21:16
cjwatsonOK, cool21:16
evindeed21:16
barrycjwatson: okay, i added a ui test.  i think the branch is ready for final review and merging21:17
CIA-32ubiquity: cjwatson * r5307 trunk/ (4 files in 4 dirs):21:26
CIA-32ubiquity: Do not offer to install the boot loader on device paths on which21:26
CIA-32ubiquity: incompatible file systems will be installed (e.g. XFS).21:26
CIA-32ubiquity: (LP: #959724)21:26
cjwatsonyay, thank you21:26
cjwatsonany more coming for today?21:30
bdmurrayI'm still working on my test and I'm not sure I'll finish today21:32
stgraberI still "hope" to get some more panel fixes21:35
stgraberI'm happy to take care of the ubiquity upload once I fixed the bug or gave up :)21:36
cjwatsonev: could you fix the syntax error I pointed out in bug 930676?21:37
ubot2`Launchpad bug 930676 in migration-assistant "Ubiquity quits when starting migration-assistent" [High,Confirmed] https://launchpad.net/bugs/93067621:37
cjwatsonit may not fix the whole bug, but it's one thing that's definitely wrong :)21:38
cjwatson(and I keep running across it in logs)21:38
evcjwatson: sure thing21:38
evwill do now21:38
cjwatsonthanks21:38
cjwatsonstgraber: works for me21:39
CIA-32migration-assistant: evand * r111 migration-assistant/ (debian/changelog ma-ask): Fix a syntax error (LP: #930676). Thanks Colin Watson.21:43
barrycjwatson: probably no more from me today21:43
bdmurrayIs there a way to run just one test?21:45
cjwatsonYou can run just one test *script*: 'tests/run test_filteredcommand'21:45
cjwatsonthe test runner unfortunately isn't very good right now, that's about as granular as it gets21:46
bdmurraythat' good enough for me ;-)21:46
barryi'd love to integrate a *real* test runner so we can do that :)21:46
cjwatsoncan unittest's runner do that, invoked differently?21:47
barryi'm not actually sure.  i'm mostly familiar with zope.test* which has very nice control over what tests to run.  less familiar with nose, unittest2, etc. etc. etc.  would be nice to investigate a bit21:48
CIA-32ubiquity: cjwatson * r5308 trunk/tests/run: Allow using a regex as the filter for which tests to run. (Not great, but slightly more useful.)21:49
CIA-32ubiquity: cjwatson * r5309 trunk/tests/run: remove duplicate import21:50
barryr5308 looks decent enough for now21:51
CIA-32migration-assistant: evand * r112 migration-assistant/debian/changelog: releasing version 0.6.1121:52
evI caught that the other day, that you cannot specify individual tests21:53
evthe code for running entire test modules was cargo culted from something pitti wrote, probably apport21:53
evbut I believe, without digging into the code to back this up ;), unittest parses argv itself, and looks for TestClass.test_function_name21:54
evof course my brain is mush from chasing a memory corrupting bug all day, so do ignore everything I say21:55
evcorruption21:55
evor maybe that was something testrepository/testtools was doing21:57
bdmurrayslangasek: so my test is failing - http://pastebin.ubuntu.com/894334/21:57
slangasekbdmurray: what does the test's source look like?21:58
bdmurrayhttp://paste.ubuntu.com/894336/21:58
cjwatsonshould that not be  variant = u"Arménien"  ?21:59
slangasekyes21:59
slangasekbdmurray: also, I think you want filteredcommand.UntrustedBase.debug("Unknown keyboard variant %s", variant)22:00
slangasekto let the debug function itself do the string composition22:00
cjwatsonagreed22:00
bdmurrayah, that makes sense22:01
barryi'm going to take off in a bit, but this has been so much fun, i'm thinking about working on a few more ubiquity bugs tomorrow too22:01
bdmurrayheh22:01
CIA-32ubiquity: cjwatson * r5310 trunk/ (debian/changelog ubiquity/misc.py):22:02
CIA-32ubiquity: Make test_misc pass when run on its own. Apparently22:02
CIA-32ubiquity: GdkX11.x11_get_default_xdisplay() segfaults if Gtk hasn't been imported22:02
CIA-32ubiquity: (or possibly something finer-grained); so import Gtk from22:02
CIA-32ubiquity: misc.set_indicator_keymaps even though we don't actually use it22:02
CIA-32ubiquity: directly.22:02
bdmurrayokay, so I shelved my patch and the test still passes now22:04
slangasekhah22:04
bdmurraythat doesn't seem right to me22:04
slangaseknope22:04
* ogra_ packs his bags ... see you tomorrow 22:04
* slangasek waves to ogra_ 22:04
bdmurrayhave a safe trip home22:04
ogra_lol !22:04
stgraber;)22:04
GrueMasterAh, the power of the Porche.22:05
bdmurrayhttp://paste.ubuntu.com/894351/22:05
slangasekbarry: ^^ do you have any ideas on this?  I guess the mock sys.stderr is being excessively utf-8 friendly somehow?22:08
cjwatsonmm, yeah, you might need a mock .write method that encodes to ascii22:08
cjwatsonperhaps mock.patch('sys.stderr.write') instead, make the parameter be mock_write, and set mock_write.side_effect to a function that does the appropriate encoding of its args22:10
barryslangasek: looking22:10
barrycjwatson: that sounds about right22:11
cjwatsonbasically make it the most hostile likely implementation :)22:12
barry:)22:12
barryokay, i'm out.  see you guys tomorrow.22:12
cjwatson... lambda msg: os.abort()22:12
cjwatsonmaybe not22:12
cjwatsonsee you!22:12
* slangasek waves to barry22:12
cjwatsonI'd better head off as well, I think.  The kids are starting some kind of riot.22:12
slangasekbdmurray: untested, since I'm getting build-deps reinstalled for running the test suite, but maybe this?: http://paste.ubuntu.com/894367/22:16
cjwatsonyou missed one instance - perhaps move that side_effect function out an indentation level or two so you can easily use it in both places22:17
slangasekyeah, sorry - was still prototyping :)22:17
cjwatsonor else move the patching to setUp22:17
cjwatson(examples of that elsewhere in ubiquity's test suite)22:17
cjwatsone.g. test_misc.py:GrubDefaultTests.setUp which I wrote today22:18
cjwatsonanyway, gone ...22:19
* slangasek waves22:20
slangasekAttributeError: 'file' object attribute 'write' is read-only22:32
slangasekthat seems unhelpful22:32
bdmurraythat's what I ran into also22:32
slangasekI get the same thing when I try to do it cjwatson's way22:39
bdmurraywhat's the point of using sys.stderr in the test now if we are changing how write works?22:39
slangasekwell, because sys.stderr is what the code we're testing uses22:39
slangasekso the test has to somehow emulate sys.stderr usefully22:39
slangasekI think I'm going to punt on this one for today... let's wait until someone who knows mock better can advise22:42
stgraberok, I have a fix/workaround/hack for the indicator corruption bug22:44
stgraberbasically the problem is when dealing with labels, with the easiest way to "fix" it being to do just like lxpanel and not deal with the labels, just with icons22:45
* bdmurray heads off22:45
* slangasek waves22:46
CIA-32ubiquity: stgraber * r5311 ubiquity/ (debian/changelog src/panel/panel.c): panel: Stop dealing with labels, only use the icons22:57
dokoI'm offline now, maybe back later in the evening23:26
cjwatsonslangasek,bdmurray: well, in that case, carry on mock.patching sys.stderr itself, but then add a write attribute to it23:34
CIA-32ubiquity: stgraber * r5312 ubiquity/ (debian/changelog src/panel/panel.c): Add a indicator_order list to the panel to lock the position of the known ones.23:37
stgraberfinally!23:37
stgrabergetting ready for release + upload now23:37
CIA-32ubiquity: stgraber * r5313 ubiquity/ (d-i/manifest debian/changelog): Automatic update of included source packages: migration-assistant 0.6.11.23:42
CIA-32ubiquity: stgraber * r5314 ubiquity/debian/changelog: releasing version 2.9.3223:49
stgraberuploaded23:54

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