[03:40] jose, can you publish https://codein.withgoogle.com/dashboard/tasks/6308179252084736 [03:43] darkxst: is this for ubuntu gnome? [03:43] jose yes [03:43] all set [03:43] jose, thanks [03:43] np [03:51] jose, and another: https://codein.withgoogle.com/dashboard/tasks/6588980468383744 [03:52] published! [03:57] does 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] adueppen, yes [03:58] darkxst: would you be able to give me the information on https://errors.ubuntu.com/problem/e42912698bfcf8ccef0d970f37ca3d6a021d47aa ? [03:59] also the website keeps freezing on me which doesn't help with requesting access [03:59] adueppen, the stacktrace is incomplete, but I will paste it for you [04:00] darkxst: thanks. was there any other information on steps to reproduce? [04:01] the error tracker just contains the crash reports, but it is linked to https://launchpad.net/bugs/1531018 [04:01] maybe info in there? [04:01] Launchpad 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:02] darkxst: that's the bug I'm looking at, all it really has is a link to that error report [04:02] adueppen, look at the stacktrace I sent you (not that it will help reproduce it!) [04:05] darkxst: 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 confirm [04:08] adueppen, its crashing in the callback, see if you can find what fires that! [04:10] darkxst: seems to be either or __FUNCTION__ = "_exo_marshal_BOOLEAN__ENUM_INT" [04:11] there will be some signal or so connected to exo_icon_view_real_move_cursor [04:14] darkxst: hmm I might just go with a different bug since the task is to confirm a bug in Thunar [04:14] ok [05:16] anyone know where I can find Flocculant on IRC? [05:17] MatthewAllen: he's usually on ubuntu-quality [05:18] MatthewAllen: he has been idle for 11 hours though, so that's not great :) [05:19] wxl, ahhh - it' [05:19] it's not urgent, so I'm not worried [11:05] balloons: Left a few comments on https://codein.withgoogle.com/dashboard/task-instances/5458917932924928/?sp-page=1 === _salem is now known as salem_ [12:06] darkxst: I'm trying to set an environment for Ubuntu Packaging. [12:06] When I run sudo sbuild --dist=vivid --arch=amd64 -c vivid-proposed+restricted-amd64-sbuild [12:07] I get the following errors: tail: cannot open '/home/girish/debian/changelog' for reading: No such file or directory [12:07] dpkg-parsechangelog: error: tail of /home/girish/debian/changelog gave error exit status 1 [12:07] E: Could not parse /home/girish/debian/changelog: [12:07] Girish you need to give it something to build! [12:11] Girish, I need to sleep, will be back in the morning [12:11] Okay, Good Night! :) [12:12] MatthewAllen, what's it about? (re: finding focculant) [12:13] knome, It was about a merge on Launchpad, he's talked to me through the merge though - so I don't need him anymore [12:14] sure, and if you need something from him and he's not around, feel free to ask me [13:40] Girish, interesting designs. How much of that can actually be implemented? [13:47] balloons: Well the navbar can definitely be implemented. design.ubuntu.com has the same navbar. [13:48] Girish, I ask because I'd like to make sure we can actually implement the design -- and do so when we are ready [13:50] MatthewAllen, so no luck on condensing the vertical space? How about just in the add a result box? [13:50] I mean for https://code.launchpad.net/~whosdaz/ubuntu-qa-website/fix1531980/+merge/282043 [13:52] MatthewAllen, I can make the result box collapsible if you like - the testcase itself is not possible with the link in the title [13:53] balloons, I can do whatever you want - see my message above ^^ [13:53] MatthewAllen, I was more looking for condensing the UI elements, so they span horiziontally just a little bit, to make it less vertical [13:54] balloons, I was just following the report as Flocculant was requesting, I'm sure I can do that [13:55] MatthewAllen, I'd like to see that included if you don't mind :-) [13:55] balloons, so make the add a result collapisble? It's a tiny change - so no problem for me [13:56] MatthewAllen, well, sure. But What I'm really asking is to change the UI elements, not collapse them [13:56] perhaps a screenshot [13:56] balloons, any specific ideas? I'd probally chuck them in a diffrent merge request because that one is targetted directly at Flocculants bug report [14:02] MatthewAllen, http://imgur.com/ckk6hpW [14:03] I didn't edit it nice, but you get the idea. Notice the comment box vertical height is halved [14:03] ahh, will see what I can do [14:03] you can also move the submit result button to be next to the result radio icons [14:03] get it? [14:03] compress those things ;-) [14:04] yep, will have a look [14:04] If I make those changes, can I submit that as a CodeIn task? [14:05] Though not specified, I think it's part of the bug report you are working on :-) [14:06] It'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 up [14:06] so I'd like them on the same MP [14:14] mmk, I'll message you when I've submitted them [14:30] balloons: My idea of a mockup was to sketch out the basic elements and their position. [14:30] Do you think that my mockup is complicated? [14:32] Girish, 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:33] elopio: can you check this task: https://codein.withgoogle.com/dashboard/task-instances/5128575074172928/?sp-page=1 ? [14:33] Girish, 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 toegther [14:34] Girish, so a prototype never hurts to make sure your design can meet reality once you've finished the design concept [14:35] Girish, I'll leave some feedback on the task [14:35] Sure. [14:35] knome can too I'm sure ;-) [14:36] AS for if it's achievable or not, Drupal does have a theme for MDL: https://www.drupal.org/sandbox/rhormens/2532394 [14:37] MDL can be used for the hovering card effect: http://www.getmdl.io/components/index.html#cards-section [14:37] And the navbar is already implemented in design.ubuntu.com [14:40] brillant, so you've thought it through a bit [14:42] balloons, have a look at this - http://i.imgur.com/c8LmcZM.png [14:45] elopio: Who should I add as project manager? [14:48] MatthewAllen, 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:49] balloons, about 200px from chrome said [14:49] I'm having a look at moving the submit button now [14:49] ok; not sure how they will look once it's done, but it will grab some more real estate if so [14:50] either way, I'm going to be happy with the MP [14:51] balloons, the submit button doesn't seem to want to move - if I try to put it anywhere else it disapears [14:51] so I'm not 100% sure if it's gonna be able to be moved [14:52] MatthewAllen, that's fine then. What you have is a real nice improvement and meets the goal [14:52] fazer: that is Oliver Ries [14:52] balloons, I could shorten the comment box a little bit horizontally - and put the submit button on the right? [14:52] fazer: 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:57] balloons, 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 bottom [14:59] MatthewAllen, 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 key [15:01] balloons, 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 that [15:17] fyi to all those who've done qatracker work; going to attempt another production release today including the outstanding MP's [15:25] elopio: I don't exactly understand what you mean by 'testing through the get method'. [15:27] fazer: in python you mark a method as internal putting a _ in front. [15:27] The 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:28] the 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] oh ok. [15:28] what 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:29] so I will have to check that the valu of handler_class is correct right? [15:31] elopio ^^ [15:32] balloons: What about my task? [15:32] fazer: no, that's a variable you won't be able to access from the test. [15:32] fazer: you call get, and you check that halder.pull executed the right command. [15:33] ok. [15:33] for that, you patch subprocess.check_call to be able to spy on what parameter was passed to it. [15:33] What should I use for sourcedir and builddir ? [15:35] Girish, any thoughts on what other pages might look like? Also, I'm waiting for knome to review and give his feedback [15:35] Girish, 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 info [15:39] fazer: use something like 'testsourcedir' and 'testbuilddir'. [15:39] elopio: I meant can I leave them uninitialized? [15:40] fazer: you need to use values that you then check on the assertion. [15:40] I don't understand. [15:44] fazer: 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:46] elopio: using the assert_called_with() right? [15:47] fazer: right. [15:48] elopio, ok, I;m starting to understand. So do I need to mock when it calls handler.pull() or only subprocess.check_call()? [15:50] fazer: it's better to mock at the lower level. So subprocess.check_call. [15:50] that way you test all the code we control. [15:50] ok [15:55] elopio: 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:56] fazer: let me see. There are multiple options of how to do that. [15:58] fazer: 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:59] the test it's a lot smaller this way than what I proposed. :D sorry for the misdirection. [15:59] elopio ok cool. no problem. :) [16:24] elopio: what variable type is options? It can't be just a regular tuple/array [16:30] fazer: I think it's a dictionary. [16:48] elopio: how do I add attributes to it? none of the methods I try seem to work. [16:53] fazer: it's not a dictionary, it's an object. [16:53] take a look at how it's done in this test: https://github.com/ubuntu-core/snapcraft/blob/master/snapcraft/tests/test_base_plugin.py#L29 [16:54] python relies heavily on duck typing. So any object with the attributes that you require will work. [17:43] xcub, this updates for you. New leaderboard going up [17:45] done; http://people.canonical.com/~nskaggs/gcileaderboard.html [17:46] balloons, 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:54] elopio: why is this not correct: patcher = unittest.mock.patch('handler.pull') ? What am I doing wrong? I get an error that says no module handler [17:54] am I supposed to import it or something? [17:55] MatthewAllen, yes, sounds like it [17:59] fazer: take a look at the TestTar [18:00] @unittest.mock.patch('snapcraft.sources.Tar.provision'), I would use something like that. snapcraft.sources.Git.pull [18:02] and another option is to use @patch.object(snapcraft.sources.Git, 'pull') [18:07] where do I specify what variable I'm using for this? [18:08] like mock_pull or mock_run etc. elopio ^^ [18:09] fazer: when you use it as a decorator, with the @, the name of the variable comes from the method definition. [18:10] like in the TestTar, take a look at mock_prov [18:10] so mock_prov is the var for TestTar? [18:10] ok. [18:10] elopio: so just specify a variable as parameter? [18:17] elopio ^^ [18:17] fazer: yes. [18:18] elopio, it says TestUri has no attribute mock_pull [18:19] @unittest.mock.patch('snapcraft.sources.Git.pull') [18:19] def test_get_git_source_from_uri(self, mock_pull): [18:22] elopio ^^ [18:23] fazer: do not use it as TestUri.mock_pull. Just mock_pull, it's an argument local to the method. [18:49] elopio, I'm done. I pushed. [18:53] elopio, it fails: it calls it twice. That makes sense since I'm calling it in a loop that is expected to iterate twice. [18:55] fazer: ah, you need to reset the mock [18:55] or use testscenarios. [18:55] personally, I find testscenarios nicer. [18:57] I think sergiusens prefers subTests, so let me see how to reset. [18:57] fazer: call mock_pull.reset_mock() [19:09] elopio, where should I move the MockOptions class to? [19:10] fazer: to snapcraft/tests/__init__.py [19:10] ok [19:52] i 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=1 [20:02] elopio: I added the year to the copyright info. [21:31] wxl, I can't help -- the student should just resubmit. === salem_ is now known as _salem [22:36] thx balloons [22:37] 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 i386 [22:37] I looked here http://laptop.qa.ubuntu.com/qatracker/milestones/352/builds/108235/downloads can't find it [22:38] elopio, Most of the tests no longer work for some reason. idk why. I only modified 3 different files [22:44] I think i'll just grab the regular images from here http://cdimage.ubuntu.com/daily-live/current/