Merge lp:~diegosarmentero/ubuntuone-client/menu-progress into lp:ubuntuone-client

Proposed by Diego Sarmentero on 2012-08-16
Status: Merged
Approved by: Diego Sarmentero on 2012-08-20
Approved revision: 1294
Merged at revision: 1292
Proposed branch: lp:~diegosarmentero/ubuntuone-client/menu-progress
Merge into: lp:ubuntuone-client
Diff against target: 90 lines (+11/-9)
4 files modified
tests/status/test_aggregator.py (+4/-3)
ubuntuone/platform/ipc/ipc_client.py (+1/-1)
ubuntuone/platform/ipc/perspective_broker.py (+2/-2)
ubuntuone/status/aggregator.py (+4/-3)
To merge this branch: bzr merge lp:~diegosarmentero/ubuntuone-client/menu-progress
Reviewer Review Type Date Requested Status
dobey (community) Approve on 2012-08-17
Roberto Alsina (community) 2012-08-16 Approve on 2012-08-16
Review via email: mp+119930@code.launchpad.net

Commit Message

- Fixing ipc signals in windows and changing deque size to 5

To post a comment you must log in.
Roberto Alsina (ralsina) :
review: Approve
dobey (dobey) :
review: Approve
Ubuntu One Auto Pilot (otto-pilot) wrote :
Download full text (254.1 KiB)

The attempt to merge lp:~diegosarmentero/ubuntuone-client/menu-progress into lp:ubuntuone-client failed. Below is the output from the failed tests.

/usr/bin/gnome-autogen.sh
checking for autoconf >= 2.53...
  testing autoconf2.50... not found.
  testing autoconf... found 2.69
checking for automake >= 1.10...
  testing automake-1.11... found 1.11.5
checking for libtool >= 1.5...
  testing libtoolize... found 2.4.2
checking for intltool >= 0.30...
  testing intltoolize... found 0.50.2
checking for pkg-config >= 0.14.0...
  testing pkg-config... found 0.26
checking for gtk-doc >= 1.0...
  testing gtkdocize... found 1.18
Checking for required M4 macros...
Checking for forbidden M4 macros...
Processing ./configure.ac
Running libtoolize...
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
Running intltoolize...
Running gtkdocize...
Running aclocal-1.11...
Running autoconf...
Running autoheader...
Running automake-1.11...
Running ./configure --enable-gtk-doc --enable-debug ...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs....

Ubuntu One Auto Pilot (otto-pilot) wrote :
Download full text (254.1 KiB)

The attempt to merge lp:~diegosarmentero/ubuntuone-client/menu-progress into lp:ubuntuone-client failed. Below is the output from the failed tests.

/usr/bin/gnome-autogen.sh
checking for autoconf >= 2.53...
  testing autoconf2.50... not found.
  testing autoconf... found 2.69
checking for automake >= 1.10...
  testing automake-1.11... found 1.11.5
checking for libtool >= 1.5...
  testing libtoolize... found 2.4.2
checking for intltool >= 0.30...
  testing intltoolize... found 0.50.2
checking for pkg-config >= 0.14.0...
  testing pkg-config... found 0.26
checking for gtk-doc >= 1.0...
  testing gtkdocize... found 1.18
Checking for required M4 macros...
Checking for forbidden M4 macros...
Processing ./configure.ac
Running libtoolize...
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
Running intltoolize...
Running gtkdocize...
Running aclocal-1.11...
Running autoconf...
Running autoheader...
Running automake-1.11...
Running ./configure --enable-gtk-doc --enable-debug ...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs....

1293. By Diego Sarmentero on 2012-08-20

fixing test

1294. By Diego Sarmentero on 2012-08-20

merge

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/status/test_aggregator.py'
2--- tests/status/test_aggregator.py 2012-08-13 15:01:52 +0000
3+++ tests/status/test_aggregator.py 2012-08-20 13:43:24 +0000
4@@ -827,9 +827,10 @@
5 def test_file_uploading(self):
6 """Check that it returns a list with the path, size, and progress."""
7 fc = FakeCommand(path='testfile.txt')
8+ fc.size = 200
9 self.status_frontend.upload_started(fc)
10 uploading = self.status_frontend.files_uploading()
11- expected = [('testfile.txt', 0, 0)]
12+ expected = [('testfile.txt', 200, 0)]
13 self.assertEqual(uploading, expected)
14 menu_data = self.listener.menu_data()
15 self.assertEqual(menu_data,
16@@ -1382,12 +1383,12 @@
17 self.assertEqual(len(self.aggregator.recent_transfers), 1)
18
19 def test_max_recent_files(self):
20- """Check that the queue doesn't exceed the 10 items."""
21+ """Check that the queue doesn't exceed the 5 items."""
22 for i in range(15):
23 fc = FakeCommand()
24 self.status_frontend.upload_started(fc)
25 self.status_frontend.upload_finished(fc)
26- self.assertEqual(len(self.aggregator.recent_transfers), 10)
27+ self.assertEqual(len(self.aggregator.recent_transfers), 5)
28
29 def test_progress_made(self):
30 """Progress on up and downloads is tracked."""
31
32=== modified file 'ubuntuone/platform/ipc/ipc_client.py'
33--- ubuntuone/platform/ipc/ipc_client.py 2012-08-13 14:34:36 +0000
34+++ ubuntuone/platform/ipc/ipc_client.py 2012-08-20 13:43:24 +0000
35@@ -250,7 +250,7 @@
36 """Emit UploadFileProgress."""
37
38 @signal
39- def on_upload_finished(self, upload, **info):
40+ def on_upload_finished(self, upload, *info):
41 """Emit UploadFinished."""
42
43 @signal
44
45=== modified file 'ubuntuone/platform/ipc/perspective_broker.py'
46--- ubuntuone/platform/ipc/perspective_broker.py 2012-08-07 19:31:54 +0000
47+++ ubuntuone/platform/ipc/perspective_broker.py 2012-08-20 13:43:24 +0000
48@@ -305,7 +305,7 @@
49 """Fire a signal to notify about a download progress."""
50
51 @signal
52- def DownloadFinished(self, path, info):
53+ def DownloadFinished(self, path, *info):
54 """Fire a signal to notify that a download has finished."""
55
56 @signal
57@@ -317,7 +317,7 @@
58 """Fire a signal to notify about an upload progress."""
59
60 @signal
61- def UploadFinished(self, path, info):
62+ def UploadFinished(self, path, *info):
63 """Fire a signal to notify that an upload has finished."""
64
65 @signal
66
67=== modified file 'ubuntuone/status/aggregator.py'
68--- ubuntuone/status/aggregator.py 2012-08-13 15:01:52 +0000
69+++ ubuntuone/status/aggregator.py 2012-08-20 13:43:24 +0000
70@@ -624,7 +624,7 @@
71 self.finished_delay = 10
72 self.progress = {}
73 self.to_do = {}
74- self.recent_transfers = deque(maxlen=10)
75+ self.recent_transfers = deque(maxlen=5)
76
77 def get_notification(self):
78 """Create a new toggleable notification object."""
79@@ -816,8 +816,9 @@
80 """Return a list with the files being uploading."""
81 uploading = []
82 for upload in self.aggregator.files_uploading:
83- uploading.append((upload.path, upload.size,
84- upload.n_bytes_written))
85+ if upload.size != 0:
86+ uploading.append((upload.path, upload.size,
87+ upload.n_bytes_written))
88 return uploading
89
90 def file_published(self, public_url):

Subscribers

People subscribed via source and target branches