jalcineWhich sound server should I develop with if I'm targeting Ubuntu?11:39
jalcineAlsa or Pulse?11:39
jalcineOr rather, should I let GStreamer handle that?11:39
jo-erlendjalcine, letting GStreamer handle it, sounds correct to me.12:41
jo-erlendotherwise, I'd go with PulseAudio.12:41
=== jalcine is now known as jacky
aquariusmterry, ping17:45
mterryaquarius, heyo.  in a meeting now17:46
aquariusmterry, no rush. Shall list the question and you can answer or not at your leisure ;)17:47
aquariusmterry, quickly has tests now (yay!). I've been fixing up the ubuntu-flash-game template (it needs to use gtk2, tragically, because that's what flash is linked against). I'd like to write a test that confirms that flash loads correctly (so that the test will break if someone modifies the code to use gi.repository without testing that that works, for example), but that would make the test suite depend on flas17:48
aquariushplayer. Is that a no-no? Do you have any suggestions for what I might do in that situation?17:48
mterryaquarius, heyo19:37
mterryaquarius, yeah, I realized that flash-game template i think is broken on 12.04?19:37
mterryBecause it uses pygi but doesn't specifically request GTK 219:37
mterryaquarius, having the test suite depend on flash is OK I think...  it'd mean developers of quickly itself need to install it and added as a build-dependency19:38
mterryis flash still in univerese?19:38
mterryor just partner19:38
mterryhrm, multiverse19:39
mterryaquarius, nope, it might be a problem after all19:39
mterryaquarius, it can be added as a test that doesn't get run automatically.  we don't have easy support for that right now I think19:40
mterryaquarius, and before release, I can just run it manually19:40
* mterry waits19:40
aquariusmterry, hey, sorry, was getting tea :)19:43
aquariusmterry, so, in order19:43
aquarius1. is it possible to use pygi and request gtk2?19:43
aquariusI've just changed it to use the old static bindings19:43
mterryaquarius, yes, let me rediscover syntax19:44
aquariusbut obviously it'd be better to still use pygi :)19:44
aquarius2. I am fine with creating the test however you'd like me to19:44
aquariusmy thought was this: have a test which creates an19:44
aquariuscreates a flash-game app, wrapping a tiny swf19:44
aquariusand have that swf just return a value to javascript19:45
aquariusand have the javascript console.log its success19:45
aquariusso that "running the test" would just check for that success log... so it'd be entirely non-interactive19:45
aquariusexcept that the test would obviously require all the bits to work, so you'd need flash, you'd need X in order to create the webkit window, and so on19:46
aquariusand these things are not conducive to automatically-run tests on some headless QA server somewhere, hence me asking about it ;)19:46
mterryaquarius, before importing Gtk, call gi.require_version("Gtk", "2.0")19:46
mterryaquarius, sure, I'd love to see the test, but ideally you'd add it *as well as* a way to run any manual tests in the tree too, ala the current automatic test framework, if that makes sense19:47
* mterry looks at aquarius19:48
aquariusit does make sense19:48
mterrythat's a lot of work just to add one test19:48
aquariusI don't actually understand the current framework (it's all bash!)19:48
aquariusbut I can probably work it out19:48
mterryaquarius, the current framework is magic19:48
aquariusindeed it is19:48
aquariusundocumented magic, to boot :P19:48
aquariuswhich is the best kind :)19:48
mterryaquarius, if it's looking like a bundle of work, just add a manual test that doesn't get run by the automatic suite and I can remember to run it before release19:49
mterryaquarius, it's self documenting!19:49
* aquarius gives mterry a fishy look19:49
aquariusif I can understand the test framework well enough to add a generic "run manual tests" thing, I shall do so19:49
aquariusimport gi19:51
aquariusgi.require_version("Gtk", "2.0")19:51
aquariusfrom gi.repository import WebKit, Gtk, Gio19:51
aquariusgi.RepositoryError: Requiring namespace 'Gtk' version '2.0', but '3.0' is already loaded19:51
aquariusah, maybe I need to do gtk first.19:51
aquariusah, again19:52
aquariusmterry, how do I find out which version of webkit corresponds with gi's Gtk 2.0?19:53
aquariusalthough I fear there will be no success here...19:53
mterryaquarius, I believe it's 1.019:53
mterryaquarius, there are two of them, 1.0 and 3.019:53
aquariusValueError: Namespace WebKit not available for version 1.019:53
mterryaquarius, install gir1.2-webkit-1.019:54
mterryaquarius, which will need to be added to the dependency list of the quickly package19:54
aquariusthat'll cheer people up.19:54
mterryaquarius, this should be SRU'd too19:54
aquariusyay! that fixes it.19:54
* mterry thinks it is criminal that gi.repository does not require a version -- users will have all sorts of broken packages as soon as Gtk-4.0 comes out19:56
aquariusmterry, finger in the air guess: how long would you expect the test suite to take to run?20:09
mterryaquarius, forever20:09
mterryaquarius, it is slower than you think20:10
aquariusand do I run it with tests/run.sh ?20:10
aquariusah, it's supposed to take ages, got it20:10
mterryover 10 minutes20:10
aquariusI ran it yesterday and aborted it 'cos I thought it was broken :P20:10
aquariuschrist on a hula hoop, the test suite runs a shell script and then parses that very same shell script for comments to get the expected output?20:12
aquariuswhat evil impulse caused you to write this rather than just using nosetests or something? :)20:13
aquariusactually, no, I lie, it creates a shell script on the fly which runs a shell script and then parses the script for comments to get the expected output20:14
aquariusmterry, this is weird magic :)20:14
aquariusmterry, ping21:01
aquariusoh, darn, he's gone21:01
ajmitchaquarius: I think you scared him off with your 'weird magic' comments21:05
aquariusI fear so21:06
aquariushave dropped him an email21:06
aquariusmterry, re :)21:27
aquariusmterry, sorry if I was offensive about the quickly test suite :)21:27
mterryaquarius, no!  not at all.  It's dog-slow and terrible21:27
mterryYou were arguably not offensive enough21:28
aquariusI don't mind it being dog slow, I just mind it being weird enough that I don't understand it enough to fiddle with it ;)21:28
aquariussee email for complaint number 1: it hangs forever if you haven't authed launchpadlib, and I don't know how to check in the test suite whether that's done and fail the test if it isn't ;)21:28
mterryemail?  i don't have my email client open...  why is that...21:29
mterryThat was a couple hours of undistracted bliss21:30
aquariusI assume it's not open so that you can get some work done21:30
aquariusI noticed that this was the case and decided to put a stop to that by bothering you about test suites :P21:30
mterryaquarius, if you're having troubles with existing suite, don't stress it.  just add a new test somewhere that tests what you want.  It doesn't even have to be same format as rest of tests right now21:33
mterryaquarius, test suite is known to be a little crazy21:33
aquariusoh, OK. I was trying to be a good boy and integrate :-)21:33
mterryDespite being blase about it, I would rather have a nice robust test suite21:34
mterryBut eh21:34
mterryaquarius, I appreciate it!  But it's not worth consuming your life to make the suite sensible21:34
aquariuson the launchpadlib thing... I don't believe there's any sensible way to conditionally skip a test right now, correct?21:34
mterryaquarius, not now21:51
aquariuscool, OK21:51
mterryaquarius, move it out of the way?21:51
aquariusthat's my plan, so I can run the test suite; just checking there's not a smarter way :)21:51
aquariusmterry, ping; I fear I need bash instruction. What does &> do?22:17
mterryaquarius, you mean >&?22:18
mterryaquarius, OK, then it is two statements:  one is the & which backgrounds the process and one is >, a redirection of standard out22:19
aquariusI thought that a line in a sourced bash script "somecmd &> output.log" was the same as "somecmd & > output.log", that is, it'd run somecmd in the background and redirect the output22:19
mterryaquarius, yeah.  it's not?22:19
aquariusbut then I do not understand why source blocks until the command finishes running.22:19
* mterry needs bash instruction too22:19
aquariusline 75 of one-test.sh in quickly/test :)22:19
mterryaquarius, oh, that's likely because the test suite is *insane*!22:19
* mterry looks22:19
mterryWe do some weird things with backgrounding22:19
aquariusif I source a script with content "sleep 5 &" then the source command finishes immediately (i.e., it's not blocking waiting for the sleep)22:20
aquariusif I source a script with content "sleep 5 &> output.log" then the source blocks and doesn't finish for 5 seconds22:20
aquariusthis is contrary to what I think ought to happen, so clearly I misunderstand somehow ;)22:21
mterryaquarius, oh oh oh, this might be shorthand for redirecting both stdout and stderr22:21
aquariusso "&>" and "& >" are totally different things>?22:21
aquariusbloody bash22:21
* mterry recalls that22:21
aquarius"&>" is obviously completely ungoogleable ;-)22:21
mterryaquarius, yeah think so.  let me test22:21
mterryaquarius, sorry, forgot about that oddity.  :)  I had assumed bash was sane for a second too22:22
aquariusthanks :)22:25

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