/srv/irclogs.ubuntu.com/2016/01/11/#ubuntu-google.txt

darkxstjose, can you publish https://codein.withgoogle.com/dashboard/tasks/630817925208473603:40
josedarkxst: is this for ubuntu gnome?03:43
darkxstjose yes03:43
joseall set03:43
darkxstjose, thanks03:43
josenp03:43
darkxstjose, and another: https://codein.withgoogle.com/dashboard/tasks/658898046838374403:51
josepublished!03:52
adueppendoes anyone here have access to https://errors.ubuntu.com ? I need access to a report on it for a task and don't feel comfortable with requesting access at this time.03:57
darkxstadueppen, yes03:57
adueppendarkxst: would you be able to give me the information on https://errors.ubuntu.com/problem/e42912698bfcf8ccef0d970f37ca3d6a021d47aa ?03:58
adueppenalso the website keeps freezing on me which doesn't help with requesting access03:59
darkxstadueppen, the stacktrace is incomplete, but I will paste it for you03:59
adueppendarkxst: thanks. was there any other information on steps to reproduce?04:00
darkxstthe error tracker just contains the crash reports, but it is linked to https://launchpad.net/bugs/153101804:01
darkxstmaybe info in there?04:01
ubot93Launchpad bug 1531018 in thunar (Ubuntu) "/usr/bin/thunar:11:exo_icon_view_get_item_needed_size:exo_icon_view_scroll_to_item:exo_icon_view_move_cursor_up_down:exo_icon_view_real_move_cursor:_exo_marshal_BOOLEAN__ENUM_INT" [Undecided,New]04:01
adueppendarkxst: that's the bug I'm looking at, all it really has is a link to that error report04:02
darkxstadueppen, look at the stacktrace I sent you (not that it will help reproduce it!)04:02
adueppendarkxst: hmm looks a bit like it's something with the tooltip for when you hover the mouse over folders on the desktop, but I can't seem to get a crash out of it. looks like I'll have to pick another bug to try and confirm04:05
darkxstadueppen, its crashing in the callback, see if you can find what fires that!04:08
adueppendarkxst: seems to be either <exo_icon_view_real_move_cursor> or __FUNCTION__ = "_exo_marshal_BOOLEAN__ENUM_INT"04:10
darkxstthere will be some signal or so connected to exo_icon_view_real_move_cursor04:11
adueppendarkxst: hmm I might just go with a different bug since the task is to confirm a bug in Thunar04:14
darkxstok04:14
MatthewAllenanyone know where I can find Flocculant on IRC?05:16
wxlMatthewAllen: he's usually on ubuntu-quality05:17
wxlMatthewAllen: he has been idle for 11 hours though, so that's not great :)05:18
MatthewAllenwxl, ahhh - it'05:19
MatthewAllenit's not urgent, so I'm not worried05:19
Girishballoons: Left a few comments on https://codein.withgoogle.com/dashboard/task-instances/5458917932924928/?sp-page=111:05
=== _salem is now known as salem_
Girishdarkxst: I'm trying to set an environment for Ubuntu Packaging.12:06
GirishWhen I run sudo  sbuild --dist=vivid --arch=amd64 -c vivid-proposed+restricted-amd64-sbuild12:06
GirishI get the following errors: tail: cannot open '/home/girish/debian/changelog' for reading: No such file or directory12:07
Girishdpkg-parsechangelog: error: tail of /home/girish/debian/changelog gave error exit status 112:07
GirishE: Could not parse /home/girish/debian/changelog:12:07
darkxstGirish you need to give it something to build!12:07
darkxstGirish, I need to sleep, will be back in the morning12:11
GirishOkay, Good Night! :)12:11
knomeMatthewAllen, what's it about? (re: finding focculant)12:12
MatthewAllenknome, It was about a merge on Launchpad, he's talked to me through the merge though - so I don't need him anymore12:13
knomesure, and if you need something from him and he's not around, feel free to ask me12:14
balloonsGirish, interesting designs. How much of that can actually be implemented?13:40
Girishballoons: Well the navbar can definitely be implemented. design.ubuntu.com has the same navbar.13:47
balloonsGirish, I ask because I'd like to make sure we can actually implement the design -- and do so when we are ready13:48
balloonsMatthewAllen, so no luck on condensing the vertical space? How about just in the add a result box?13:50
balloonsI mean for https://code.launchpad.net/~whosdaz/ubuntu-qa-website/fix1531980/+merge/28204313:50
MatthewAllenMatthewAllen, I can make the result box collapsible if you like - the testcase itself is not possible with the link in the title13:52
MatthewAllenballoons, I can do whatever you want - see my message above ^^13:53
balloonsMatthewAllen, I was more looking for condensing the UI elements, so they span horiziontally just a little bit, to make it less vertical13:53
MatthewAllenballoons, I was just following the report as Flocculant was requesting, I'm sure I can do that13:54
balloonsMatthewAllen, I'd like to see that included if you don't mind :-)13:55
MatthewAllenballoons, so make the add a result collapisble? It's a tiny change - so no problem for me13:55
balloonsMatthewAllen, well, sure. But What I'm really asking is to change the UI elements, not collapse them13:56
balloonsperhaps a screenshot13:56
MatthewAllenballoons, any specific ideas? I'd probally chuck them in a diffrent merge request because that one is targetted directly at Flocculants bug report13:56
balloonsMatthewAllen, http://imgur.com/ckk6hpW14:02
balloonsI didn't edit it nice, but you get the idea. Notice the comment box vertical height is halved14:03
MatthewAllenahh, will see what I can do14:03
balloonsyou can also move the submit result button to be next to the result radio icons14:03
balloonsget it?14:03
balloonscompress those things ;-)14:03
MatthewAllenyep, will have a look14:04
MatthewAllenIf I make those changes, can I submit that as a CodeIn task?14:04
balloonsThough not specified, I think it's part of the bug report you are working on :-)14:05
balloonsIt's not a major overhaul, but the idea was to reduce the existing page length and re-arrange things so the new bug table didn't eat all the space up14:06
balloonsso I'd like them on the same MP14:06
MatthewAllenmmk, I'll message you when I've submitted them14:14
Girishballoons: My idea of a mockup was to sketch out the basic elements and their position.14:30
GirishDo you think that my mockup is complicated?14:30
balloonsGirish, maybe, maybe not. I just wanted to make sure it's doable with what we have; it's drupal, and a php module + basic theme :-)14:32
fazerelopio: can you check this task: https://codein.withgoogle.com/dashboard/task-instances/5128575074172928/?sp-page=1 ?14:33
balloonsGirish, that said, I like the fresh approach alot. I was hoping to see radical changes from what we see now. What exists now is kind of cobbled toegther14:33
balloonsGirish, so a prototype never hurts to make sure your design can meet reality once you've finished the design concept14:34
balloonsGirish, I'll leave some feedback on the task14:35
GirishSure.14:35
balloonsknome can too I'm sure ;-)14:35
GirishAS for if it's achievable or not, Drupal does have a theme for MDL: https://www.drupal.org/sandbox/rhormens/253239414:36
GirishMDL can be used for the hovering card effect: http://www.getmdl.io/components/index.html#cards-section14:37
GirishAnd the navbar is already implemented in design.ubuntu.com14:37
balloonsbrillant, so you've thought it through a bit14:40
MatthewAllenballoons, have a look at this - http://i.imgur.com/c8LmcZM.png14:42
fazerelopio: Who should I add as project manager?14:45
balloonsMatthewAllen, looks nicer. We could do more with those elements I'm sure, but that should have shortened the page a good bit already right?14:48
MatthewAllenballoons, about 200px from chrome said14:49
MatthewAllenI'm having a look at moving the submit button now14:49
balloonsok; not sure how they will look once it's done, but it will grab some more real estate if so14:49
balloonseither way, I'm going to be happy with the MP14:50
MatthewAllenballoons, the submit button doesn't seem to want to move - if I try to put it anywhere else it disapears14:51
MatthewAllenso I'm not 100% sure if it's gonna be able to be moved14:51
balloonsMatthewAllen, that's fine then. What you have is a real nice improvement and meets the goal14:52
elopiofazer: that is Oliver Ries14:52
MatthewAllenballoons, I could shorten the comment box a little bit horizontally - and put the submit button on the right?14:52
elopiofazer: thanks for working on it. I left a comment about testing through the "public" interface. Let me know if you need a hand with that.14:52
MatthewAllenballoons, if you wanted to save a little bit more room we could tighten up the vertical spacing around the Submit button, as it has alot of padding on the top and bottom14:57
balloonsMatthewAllen, little tweaks like that sound just fine. I won't push for anything further from you, as I hope we can consider a more radical overhaul at some point. But simple things to make what we have better are most welcome. The vertical space is key14:59
MatthewAllenballoons, from what I can work out the vertical spacing is being handled by the css files inside the System module, and that seems to be overiding my attempts at changes - So I don't think I'm able to fix that15:01
balloonsfyi to all those who've done qatracker work; going to attempt another production release today including the outstanding MP's15:17
fazerelopio: I don't exactly understand what you mean by 'testing through the get method'.15:25
elopiofazer: in python you mark a method as internal putting a _ in front.15:27
elopioThe internal methods are likely to change a lot, and are considered an implementation detail. So when writing unit tests, it's better to only test the methods that don't have a _ in front.15:27
elopiothe get method in sources.py is the one that calls the _get_source_type_from_uri method. So that's the one you should use to test.15:28
fazeroh ok.15:28
elopiowhat we need to test in unit tests is the public interface, as much as possible. Sometimes we have to test the internal methods, but that's not common.15:28
fazerso I will have to check that the valu of handler_class is correct right?15:29
fazerelopio ^^15:31
Girishballoons: What about my task?15:32
elopiofazer: no, that's a variable you won't be able to access from the test.15:32
elopiofazer: you call get, and you check that halder.pull executed the right command.15:32
fazerok.15:33
elopiofor that, you patch subprocess.check_call to be able to spy on what parameter was passed to it.15:33
fazerWhat should I use for sourcedir and builddir ?15:33
balloonsGirish, any thoughts on what other pages might look like? Also, I'm waiting for knome to review and give his feedback15:35
balloonsGirish, I will say, I'd like to see the mockup include more data. We have pages with many results and many bugs. And one of the issues is you aren't showing the same amount of info15:35
elopiofazer: use something like 'testsourcedir' and 'testbuilddir'.15:39
fazerelopio: I meant can I leave them uninitialized?15:39
elopiofazer: you need to use values that you then check on the assertion.15:40
fazerI don't understand.15:40
elopiofazer: the value you select for sourcedir and builddir will be passed to the check_call. So in the final assertion, you will have to check that check_call received the same values you chose for the two parameters.15:44
fazerelopio: using the assert_called_with() right?15:46
elopiofazer: right.15:47
fazerelopio, ok, I;m starting to understand. So do I need to mock when it calls handler.pull() or only subprocess.check_call()?15:48
elopiofazer: it's better to mock at the lower level. So subprocess.check_call.15:50
elopiothat way you test all the code we control.15:50
fazerok15:50
fazerelopio: there are already tests for the Git.pull() method. So shouldn't I be assuming that that already works and only be testing the get() method?15:55
elopiofazer: let me see. There are multiple options of how to do that.15:56
elopiofazer: you are right. As git.pull is already tested mocking the subprocess call, I think a nice way to do it is to mock git.pull, as you suggested before.15:58
elopiothe test it's a lot smaller this way than what I proposed. :D sorry for the misdirection.15:59
fazerelopio ok cool. no problem. :)15:59
fazerelopio: what variable type is options? It can't be just a regular tuple/array16:24
elopiofazer: I think it's a dictionary.16:30
fazerelopio: how do I add attributes to it? none of the methods I try seem to work.16:48
elopiofazer: it's not a dictionary, it's an object.16:53
elopiotake a look at how it's done in this test: https://github.com/ubuntu-core/snapcraft/blob/master/snapcraft/tests/test_base_plugin.py#L2916:53
elopiopython relies heavily on duck typing. So any object with the attributes that you require will work.16:54
balloonsxcub, this updates for you. New leaderboard going up17:43
balloonsdone; http://people.canonical.com/~nskaggs/gcileaderboard.html17:45
MatthewAllenballoons, with the "Create an alternate tool via QATracker API" task, would a terminal application that allows the reporting of test image results be appropriate?17:46
fazerelopio: why is this not correct: patcher = unittest.mock.patch('handler.pull') ? What am I doing wrong? I get an error that says no module handler17:54
fazeram I supposed to import it or something?17:54
balloonsMatthewAllen, yes, sounds like it17:55
elopiofazer: take a look at the TestTar17:59
elopio@unittest.mock.patch('snapcraft.sources.Tar.provision'), I would use something like that. snapcraft.sources.Git.pull18:00
elopioand another option is to use @patch.object(snapcraft.sources.Git, 'pull')18:02
fazerwhere do I specify what variable I'm using for this?18:07
fazerlike mock_pull or mock_run etc. elopio ^^18:08
elopiofazer: when you use it as a decorator, with the @, the name of the variable comes from the method definition.18:09
elopiolike in the TestTar, take a look at mock_prov18:10
fazerso mock_prov is the var for TestTar?18:10
fazerok.18:10
fazerelopio: so just specify a variable as parameter?18:10
fazerelopio ^^18:17
elopiofazer: yes.18:17
fazerelopio, it says TestUri has no attribute mock_pull18:18
fazer@unittest.mock.patch('snapcraft.sources.Git.pull')18:19
fazer    def test_get_git_source_from_uri(self, mock_pull):18:19
fazerelopio ^^18:22
elopiofazer: do not use it as TestUri.mock_pull. Just mock_pull, it's an argument local to the method.18:23
fazerelopio, I'm done. I pushed.18:49
fazerelopio, it fails: it calls it twice. That makes sense since I'm calling it in a loop that is expected to iterate twice.18:53
elopiofazer: ah, you need to reset the mock18:55
elopioor use testscenarios.18:55
elopiopersonally, I find testscenarios nicer.18:55
elopioI think sergiusens prefers subTests, so let me see how to reset.18:57
elopiofazer: call mock_pull.reset_mock()18:57
fazerelopio, where should I move the MockOptions class to?19:09
elopiofazer: to snapcraft/tests/__init__.py19:10
fazerok19:10
wxli want to revert the "more work needed" on this and call it "approved." can an admin help? https://codein.withgoogle.com/dashboard/task-instances/5641788366782464/?sp-page=119:52
fazerelopio: I added the year to the copyright info.20:02
balloonswxl, I can't help -- the student should just resubmit.21:31
=== salem_ is now known as _salem
wxlthx balloons22:36
Bill_Hi I want to start working on the: Test Ubuntu live on your Laptop and report results on the laptop tracker task. I can't find the images for Ubuntu Desktop i38622:37
Bill_I looked here http://laptop.qa.ubuntu.com/qatracker/milestones/352/builds/108235/downloads can't find it22:37
fazerelopio, Most of the tests no longer work for some reason. idk why. I only modified 3 different files22:38
Bill_I think i'll just grab the regular images from here http://cdimage.ubuntu.com/daily-live/current/22:44

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