=== chihchun_afk is now known as chihchun [09:15] ubuntu-qa, ping, build errors in uitk sphinx docs https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1431749 [09:16] Ubuntu bug 1431749 in ubuntu-ui-toolkit (Ubuntu) "ImportError while building sphinx UITK Autopilot docs" [High,Confirmed] [09:19] kalikiana, thanks, I'll log that issue and have a look [09:20] thanks, rhuddie! [09:58] kalikiana, I used sphinx-build to build the doc from trunk, it worked fine for me. how did you run it? [09:59] rhuddie: CI does https://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-vivid-i386-ci/273/console [10:01] kalikiana, do you know if this is a new problem? [10:02] rhuddie: not really. I just noticed while checking the logs for unit test results [10:02] so it may or may not have been there for some time [10:07] kalikiana, ok. the fact it builds ok locally, suggests to me its a ci environment issue, but I'll check to see if anyone else has any clue on it [10:27] kalikiana, from this it looks like the tests/autopilot folder needs to be on sys.path, so ubuntuuitoolkit module can be found and imported: http://sphinx-doc.org/ext/autodoc.html#directive-automodule [10:31] rhuddie: oh, I guess it's run before install… and needs to set the build folder [10:31] kalikiana, yeah. it says you add it to the conf.py file in: ubuntu-ui-toolkit/documentation/autopilot-helpers/conf.py [10:32] aha! there's a comment mentioning that in fact [10:33] kalikiana, ah yes, right at the top :) [10:34] I haven't really done anything with sphinx… I just got worried when I see fatal errors :-D [10:34] I'll give that a try and see if I can make ci work [10:34] thank you for the pointers! [10:35] kalikiana, yeah, hopefully that should sort it out, no prob. === chihchun is now known as chihchun_afk [13:26] ubuntu-qa, ping, how can an Autopilot test be run using upstart? we need a way to test URI handling API in context of https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1429899 [13:26] Ubuntu bug 1429899 in ubuntu-ui-toolkit (Ubuntu) "StateSaver should not restore when app launched from content-hub" [High,In progress] [13:29] kalikiana: hello. [13:30] kalikiana: autopilot has a method to launch the apps with upstart [13:30] two actually. Give me a second... [13:30] http://people.canonical.com/~nskaggs/autopilot/api/autopilot.testcase.html [13:31] launch_click_package and launch_upstart_application. [13:32] on the toolkit, when we define the application as a QML and use the base class UbuntuUIToolkitWithFakeAppRunningTestCase, it is using launch_upstart_application. [13:34] hmmm so you're saying it already is upstart? [13:35] elopio: so for sending URIs is it required to be a click package? [13:35] looking at the docs atm [13:36] kalikiana: no, you can do it with launch_upstart_application. [13:36] kalikiana: now, the problem with URI handling is that url-dispatcher gets configured only when mir is running. Currently we have no qpa other than the one in mir client. [13:36] so if you are running this on desktop without mir, url-dispatcher will not handle the uris. [13:38] okay. so this would be phone-only for now - I can live with that for the moment, considering right now we have 0 testing for it in the uitk [13:39] "it" being UriHandler API in QML and StateSaver being affected by ContentHub behavior [13:39] elopio: how do you pass an URI then? [13:40] hmm there's launch_upstart_application vs. launch_test_application, the former has uris=[] [13:41] kalikiana: I would try to add some QML tests in there that don't require a QPA. Maybe putting a mock in http://doc.qt.io/qt-5/qml-qtqml-qt.html#openUrlExternally-method [13:41] kalikiana: hm, wait, maybe we are talking about different things in here. [13:42] can you describe the test that you want for me? [13:42] elopio: that unfortunately is completely different [13:43] elopio: so, we have UriHandler which takes URIs via DBus. but it relies on upstart implementing org.freeDesktop.application which the uitk merely listens to [13:43] that means we can only test it if upstart is actually running [13:44] elopio: on a desktop right now nothing is registered at all if you just launch an app [13:44] since there's no object there [13:44] I believe libnih is implementing the application object [13:46] I don't see any uri service on dbus on my desktop. [13:46] could it be the problem that the service is not installed? [13:47] that's what I was trying to say - as far as I understand upstart is implementing that service [13:47] (you got me lost, and now it's me asking the question, that's good customer support :) [13:47] and UriHandler piggypacks on that via the pid [13:47] which is part of the object path [13:47] kalikiana: upstart is running on desktop, and with ubuntu_application_launch you are using it. tedg is the one I would ask about it. [13:48] in fact the app_id, not pid [13:48] elopio: well, upstart doesn't launch anything on a current desktop, though ;-) [13:49] so autopilot has to do whatever is needed to make up for it [13:49] kalikiana: autopilot is using upstart to launch the application when you call launch_upstart_application. [13:50] okay, so in theory it might be as simple as passing a URI to launch_upstart_application [13:52] kalikiana: that's where I get lost. What kind of URI are you talking about? [13:53] the "uri" parameter that method receives is documented as: [13:53] app_uris – Parameters used to launch the click package. This parameter will be left empty if not used. [13:53] for example file:///home/phablet/Pictures/nyancat.png [13:55] kalikiana: I see. I haven't tried that, but if the docs are correct, it should work. [13:58] except on desktop, where we seem to be missing a dependency. [13:59] I have libnih-dbus1 installed, but I don't see the service. [14:03] elopio: uris don't seem to be passed [14:03] elopio: a related problem might be that APP_ID is never set [14:05] kalikiana: how do you pass the uris on the command line? [14:05] I don't, I'm using the API [14:06] hmmmm os.environ['APP_ID'] = application_name should work, right? [14:06] kalikiana: I'm lost. sorry. [14:07] elopio: I'm passing uris via launch_upstart_application and verifying that they show up in the QML [14:07] except they don't [14:07] kalikiana: in the phone? [14:07] elopio: no, on the desktop [14:07] as you suggested only upstart should be needed [14:13] kalikiana: yes, but I really don't know how this works so you shouldn't pay a lot of attention to me. [14:13] I thought that ubuntu-app-launch could not pass parameters to the apps. [14:14] kalikiana: do you have an example I could use to check it in the phone? I would like to see what happens in there. [14:15] I wouldn't know how you would use an example that's not a test - the point is to pass URIs [14:16] and really why doesn't it take my environment variable? [14:18] kalikiana: if it uses upstart, then you need to set the variable with inictl set-env. [14:18] kalikiana: I want to give a try to the test in the phone. That's the example I meant. [14:18] I think there must be some fundamental problem here, it "runs" syntax errors happily [14:21] aha! [14:21] so for some odd reason file-based tests use launch_test_application [14:21] that explains it [14:23] elopio: was this forgotten by any chance? we have two entirely different launch setups [14:23] and the second one can't use uris [14:24] kalikiana: ah, sorry, I thought it was the other way around. [14:24] kalikiana: not forgotten, just pending: https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1305190 [14:24] Ubuntu bug 1305190 in ubuntu-ui-toolkit (Ubuntu) "Launch Autopilot fake applications with upstart" [Medium,Confirmed] [14:26] I'll try a string base dtest for now === chihchun_afk is now known as chihchun [14:35] interestingly all string-based tests fail for me now [14:35] unchanged [14:38] kalikiana: with something like autopilot.exceptions.ProcessSearchError: Search criteria (pid = 24498, object path = '/com/canonical/Autopilot/Introspection') returned no results ? [14:39] elopio: no, rather http://ix.io/gSi [14:39] even staging with no changes does that for me [14:40] elopio: could it be because I'm running systemd as init? [14:40] kalikiana: could be. I don't see that in the latest staging tests. [14:43] elopio: this is my branch in any case https://code.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/uriPassingPOC/+merge/252906 [14:44] kalikiana: I will give it a try in the phone. If it doesn't work, I'll report a bug to autopilot. [14:44] thanks! [14:45] I need a break now, bbl [15:02] elopio: i just noticed you were interested in a quassel client for ubuntu phones in 2014 - have you found one yet? [15:02] dkessel: nop. Still waiting. [15:02] too bad [15:07] dkessel: yes, the web clients that we have on the phone don't work well. [15:08] they don't keep the connection open. === roadmr is now known as roadmr_afk === roadmr_afk is now known as roadmr [20:49] elopio: whoot! so with the little fix to ubuntu-app-test i landed a couple hours ago, the pay-ui autopilot tests all pass in jenkins now on a real device, along with my pay-ui MP :) [20:57] dobey: awesome! [20:57] what was the fix about? [20:58] ubuntu-app-test was always exiting with 0, and we need to verify that pay-ui exits with certain exit codes; so i had to fix it to exit with the same status code as the child process [20:59] and the pay-ui MP is to make it use ubuntu-app-test when mir is the display server (and depend on ubuntu-app-test in the autopkgtest config) [21:00] dobey: thank you! [21:01] but now i have to wait to land that in trunk until after the other pay-ui bit is tested/released though, i think