/srv/irclogs.ubuntu.com/2014/11/07/#ubuntu-quality.txt

elfybut yea, don't think that autopkgtest would be the thing here00:00
elfyballoons: any reason you can think of that a testcase couldn't be - make this bash file and run it? these apps should open in this order?00:01
balloonselfy, totally doable, but that's the realm of semi-automated00:01
elfyyea ... but we don't have a semi-automated test set-up that I know of :)00:02
balloonsi see no reason it can't be completely automated00:02
balloonsno user input required00:02
elfyyou think?00:02
elfyso that could be autopilot?00:02
elfyhi AlbertoSN_ :)00:03
AlbertoSN_Hi!00:03
balloonselfy, when I said you could write it in bash I didn't mean it couldn't be automated00:03
elfyballoons: probably not - but you forgot my well known antipathy to code :D00:03
elfyheh00:03
elfyballoons: so I am willing to learn - what, where and how for something like this?00:04
AlbertoSN_Holah00:04
wxloh hai00:04
AlbertoSN_Hahaha00:05
balloonsautopilot allows you to introspect specific apps, but you don't need to do that here with what you've described I don't think00:05
elfyok00:06
balloonshow to learn? Well write it in bash all with basic linux commands00:06
elfyyea done that almost :)00:06
balloonslaunch the app, check the process tree to see it launched, kill it and move on00:06
elfyoic00:06
wxlelfy: if you need bash help, let me know00:07
elfywxl: at the moment I think we're looking at the same thing from different ends of the stick :)00:07
alesageballoons, quick adt question: I need to run on the device as root, using the 'Restriction' field just results in "SKIP test: needs root", do you know how to supply?00:08
elfyballoons: I don't want to open an app and check it runs foo00:08
elfyI want to check default for bar IS foo00:08
balloonsalesage, wow, that's interesting and wild.. by default you do not run as root for various reasons00:08
elfyhttp://pastebin.com/EjXpVvSe00:09
alesageballoons, understandable--this is for LRT, need to wipe crashes, e.g.00:09
balloonsthat might be a pitti question as even running adt itself won't run as root. You can certainly hand-tweak the script I guess, but again I think there would be unintended consequences00:09
alesageballoons, ok good answer thanks00:09
elfyballoons: ^^ basically does it , makes a file then opens said file with xdg-open00:09
balloonsalesage, I know originally they did run as root and it borked some things.. you never know, it might all just work00:10
alesageballoons, know how to supply root via adt-run? (again I'm already using the Restriction: needs-root)00:10
elfywxl: that ^^ - what I'd like to do is close them as well :)00:10
alesageballoons, else I'll ask pitti and report00:10
balloonsalesage, let me try something00:11
* elfy really dislikes coding .. 00:12
balloons-s is an option for lxc, but not for adb ssh00:12
wxlyou want to close them all at the end or one at a time elfy?00:12
alesageI see, I'm learning, cool00:12
balloonsalesage, there is something useful in there.. you can specify the ssh user login00:13
elfywxl: in the order they open would be best perhaps after x secs open so you can see they've opened00:13
balloonsso, passing -l or --login of root perhaps :-)00:13
balloonsalesage, ^^00:13
alesageballoons ok intriguing00:13
elfywxl but it really is just a basic test to make sure that foo opens in bar00:13
balloonsalesage, play with /usr/share/autopkgtest/ssh-setup/adb00:14
wxlelfy: yeah well it's kind of difficult to find the process idea in a general way00:14
elfywxl: bug 1382977 was why I'm looking at it00:14
ubot5bug 1382977 in thunar (Ubuntu Utopic) "[SRU] Thunar open default not respecting mimetype" [Undecided,Fix committed] https://launchpad.net/bugs/138297700:14
wxlelfy: e.g. killall xdg-open isn't goingf to work00:14
alesageballoons ok thanks00:14
balloons66 :-)00:14
elfywxl - then people just have to manually close I guess00:14
wxloh wait elfy00:15
elfythey're all likely to be error'd apps00:15
wxlyou can see if $! gives you the right pid00:15
wxle.g. run xdg-open file &00:15
wxlthen run $!00:15
wxluh00:15
wxlno00:15
wxlecho $!00:15
elfyevince WILL open foo.pdf but stops as it is an empty file00:15
wxlthen you can use top or whatever to see if it gives you the right pid00:16
elfyI JUST want to check that the right app opens00:16
elfywxl well at that point you can just press X in the corner :)00:16
wxlif it reliably does, then you can just use "sleep x; kill $!" after every xdg-open00:16
wxlelfy: no i'm talking about testing before writing it :รพ00:16
elfy:)00:17
elfysee why balloons runs a mile when I ask a question lol00:17
wxlah it forks poop00:17
* elfy is running out of people who'll say "Yea" after I've said got a minute :D00:17
wxlhahahha00:18
elfysee how quiet balloons is :p00:18
wxlyeah well i'm not sure what to tell you00:18
balloonslol00:18
elfyha ha ha00:18
balloonsit's dinner time here00:18
elfylove you all :D00:18
balloonspast actually00:19
balloonselfy, I think writing the script would be easier, then walking through it00:19
elfyballoons: go eat - important task :D00:19
balloonswxl sounds like he gets it as well :-)00:19
balloonsI imagine anyone with a little scripting skills could whip something up.. improvements would be many of course00:19
elfyballoons: of course, but I'm code atheist though willing to make it to agnostic00:20
wxlwell i do a fair amount of scripting but i normally don't have a want of saving PIDs00:20
wxland that's what you need to do is get the PID of the forked process00:20
wxli'm sure there's a way to do ti with C00:20
elfyballoons: yea - but I would kinda like to just force my way through on this one :)00:20
* wxl watches elfy run screaming out of the building00:20
balloonsk, I'm disconnecting.. my nick will turn grey.. and then.. then there is only darkness until the morning light00:20
elfyheh00:20
* balloons floats away00:21
elfyballoons: cya tomorrow then :)00:21
elfywxl: what I am trying to achieve here is probably closer to what *you~* would like00:21
elfybeing as how we don't don't have paid people lol00:22
wxlhahahahah00:22
wxlmaybe there's a form somewhere on the ubuntu site where we could request paid people00:22
* wxl jokes, clearly00:22
elfyyea00:23
elfyI made that form - sent it in :D00:23
wxlhahahah00:23
wxlmaybe we should write a bug report about that00:23
* wxl is sad to find that bug 1 is closed00:23
ubot5bug 1 in Ubuntu Malaysia LoCo Team "Microsoft has a majority market share" [Critical,In progress] https://launchpad.net/bugs/100:23
wxloh i HEARD it was closed00:24
elfyit got closed00:25
elfythen opened00:25
elfythen closed00:26
elfy...00:26
* wxl facepalms00:26
elfywell you know ;)00:27
elfywas a good bug then - now ...00:27
* elfy isn't good with zealots whatever the colour - much too old for that :)00:28
wxli kind of liked the notion of it all00:28
wxlit was humorous00:28
wxltrue but humorous00:28
wxlbut then people got a little to ridiculous abou tit00:28
wxlwhich is sort of how i feel about rms00:29
wxli don't have time for all that complaining and pedantry :)00:29
elfyyep00:29
elfysame world we live in then ;)00:30
wxlhehehe yep00:30
* wxl uses Google Chrome 00:30
wxlNOT chromium00:31
wxlyes, if i were captain open source, i woudln't but, hey, it works.00:31
elfywell00:32
elfyI like neither so don't use them :)00:33
wxlyeah well that's your problem XD00:33
elfyha00:34
elfyno00:34
elfyit's not00:34
elfywe don't seed either lol00:34
wxlwell neither do we honestly00:34
wxlhttps://twitter.com/wxl/status/52857496129254195200:35
elfyyea00:37
elfynot doing that one lol00:38
wxlhehe00:38
elfywxl: so do you think that the simplest method of doing that test ^^ would be to do it in a live session, no worries about someone's oddly named data00:39
wxlyeah i think that makes sense00:40
elfyand then just physically closing the apps after you've checked the right apps have opened00:40
wxlyeah i think that would be best00:40
wxlor get someone to write proper python code for it :)00:40
elfyLMAO00:42
elfyI just did the 'does this work' bit :D00:43
elfywxl you do know I hope that before PHP there was "small green gents"00:44
elfyhttp://www.planetgong.co.uk/cgi-bin/gasmain.cgi?dept=cosmo&title=Code%20Glossary&page=code_glossary&menu=menu00:45
wxli think you're officially scaring me now elfy00:46
elfywell you know ... http://ubuntuforums.org/member.php?u=61042800:46
elfyPHP code was probably written by a grand kid of the early 70s00:47
wxlah00:47
elfyso yea - that could all be made prettier in code, but I'm not sure that for the end result we actually need do more than00:49
elfybuild this (it's safe)00:49
elfymake it executable00:49
elfyrun it00:49
elfyclose apps00:49
elfydelete the files (which we could probably rm anyway)00:50
elfyif nothing else that's a better place to start than right click in a file manager00:51
elfyand I guess would be DE agnostic00:51
elfysurely wouldn't matter what xdg-open file.mp3 did as long as it works for FAMILY00:53
elfywxl: ^^ does that last bit make sense to you?00:53
AlbertoSN_Bye bye01:08
=== chihchun_afk is now known as chihchun
pittiGood morning06:44
pittialesage: adt-run root> you probably have a password other than "0000", so to get sudo you need to tell it its password: adt-run --click what.ever -- ssh -s adb -- -p s3kr1t06:47
pittiballoons: ^06:47
dkesselmorning pitti :)07:30
=== vrruiz_ is now known as rvr
=== chihchun is now known as chihchun_afk
balloonspitti, you think him not setting the password was it? he seemed to want to run the actually test as roo14:50
pittiballoons: yes, very likely; and due to dropping autopilot one now always needs sudo on the device for regenerating the apparmor profile14:54
alesagepitti many thanks, just caught this scrollback as I was about to ask :)15:57
pittihey alesage, good morning15:57
alesagepitti hiya o/15:58
* alesage tries to think of any other questions about adt15:58
balloonsmorning alesage16:05
alesageballoons hiya o/ how are things?16:05
balloonsfeeling a bit anxious.. ready to get on with things.. yourself?16:08
=== ara is now known as Guest54796
alesageballoons, your feeling anxious is making me feel a bit anxious but otherwise cool calm and collected :)16:20
balloonsalesage, hehe!16:25
=== roadmr is now known as roadmr_afk
Letozaf_balloons, hi20:24
balloonsLetozaf_, evening to you20:25
balloonshappy friday!20:25
Letozaf_balloons, :-) happy friday to you too20:25
Letozaf_balloons, just wanted to tell you that adt-run works now that I flashed my device20:25
Letozaf_balloons, but is there a way to launch only one test at a time with adt-run ?20:26
balloonsLetozaf_, ahh indeed20:27
Letozaf_balloons, :O how ?20:27
balloonsLetozaf_, for example:20:27
balloonsADT_AUTOPILOT_MODULE="-v calendar_app.tests.test_custom_proxy_objects.NewEventFormTestCase.test_fill_form" adt-run ubuntu-calendar-app/ --click=com.ubuntu.calendar --- ssh -s adb20:27
balloonspass the args for autopilot into ADT_AUTOPILOT_MODUL20:28
balloonsso in this case, I passed a single test and -v20:28
Letozaf_balloons, cool thanks a lot20:28
balloonsubuntu-qa a quick review? https://code.launchpad.net/~nskaggs/ubuntu-calendar-app/fix-ap-jenkins-runs/+merge/24114321:03
Letozaf_balloons, In filemanager there are more than one Page11 objects so I get errors in my tests : "raise ValueError("More than one item was returned for query"21:11
balloonsLetozaf_, on that bug report there was a workaround nik90 found21:11
balloonsif you find the bug, he detailed it21:12
* balloons looks too21:12
Letozaf_balloons, ok let me search21:12
balloonsLetozaf_, https://bugs.launchpad.net/autopilot-qt/+bug/134167121:18
ubot5Ubuntu bug 1341671 in Autopilot Qt Support "Versioned QML classes are not recognized by their public type name" [High,Confirmed]21:18
Letozaf_balloons, thank you, couldn't find it21:19
elfyevening balloons Letozaf_21:19
Letozaf_elfy, good evening to you :)21:19
balloonsLetozaf_, so the key as he points out is to add a property string to the object in question. That seems to fix it21:19
balloonsso I would add a note referencing the bug, and add property strings to the qml. This does mean you'll have to build it though! (or at least replace the qml file)21:20
balloonsgiven your issues, I would just focus on having it work on the desktop and let jenkins test also21:20
Letozaf_balloons, the test is quite different on the desktop, so it surely will work on the desktop, but doesn't mean it will on the phone21:22
balloonselfy, oh I totally forgot21:22
balloonselfy, isotracker has dkessel's fixes now21:22
balloonscan you attempt to break it?21:23
balloonsLetozaf_, I know. First things first21:23
balloonsbut yea, once that's done we can give building a try again21:23
Letozaf_balloons, yes, I will add the property and after try building21:24
balloonsLetozaf_, well I mean you can create desktop builds easy enough so I assume that should let you continue21:24
=== roadmr_afk is now known as roadmr
elfyballoons: thanks and you dkessel21:25
Letozaf_balloons, ok21:25
elfybut ... would it not be better when looking at historical data to filter before it went off and got 6 months worth for you21:25
balloonsLetozaf_, I did speak with arto as well about being able to run in phone mode on the desktop; he should be working on it. I'll followup with him21:27
Letozaf_balloons, ok thanks21:27
elfyballoons: can't see that's going to make much difference in the loading time when we get to the end of a cycle21:29
balloonselfy, what do you mean? it defaults to a month21:30
balloonsyou want 6 months anyway?21:30
balloonstry grabbing all of utopic21:30
elfyoh21:30
elfyhang on I'll go look at utopic then :)21:30
elfyballoons: aah cool - yep that's awesome :)21:31
elfywasn't easy to tell with vivid :D21:31
elfydkessel: \o/ thank you :)21:32
dkesselelfy balloons glad I could help :)21:58

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