Merge lp:~3v1n0/bamf/libbamf-dont-duplicate-apps into lp:bamf/0.4

Proposed by Marco Trevisan (Treviño)
Status: Merged
Approved by: Marco Trevisan (Treviño)
Approved revision: 498
Merged at revision: 501
Proposed branch: lp:~3v1n0/bamf/libbamf-dont-duplicate-apps
Merge into: lp:bamf/0.4
Diff against target: 18 lines (+5/-2)
1 file modified
lib/libbamf/bamf-matcher.c (+5/-2)
To merge this branch: bzr merge lp:~3v1n0/bamf/libbamf-dont-duplicate-apps
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
Łukasz Zemczak Approve
Review via email: mp+134203@code.launchpad.net

Commit message

libbamf, BamfMatcher: avoid to return the same app twice in bamf_matcher_get_applications

Description of the change

When bamfdaemon is under high stress it could return different paths for the same application, so libbamf can be confused and returning the same application twice in bamf_matcher_get_applications.

Fixes failures in lp:~3v1n0/unity/launcher-controller-tests-fix/+merge/134202

To post a comment you must log in.
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

+1

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Francis Ginther (fginther) wrote :

There are two different failures here. amd64 failed while running tests.

The i386 failed due to the addition of bamf_view_is_user_visible in revision 496. It is failing now because DPKG_GENSYMBOLS_CHECK_LEVEL=4 has just been enforced by the autolanding job:

dpkg-gensymbols: warning: some new symbols appeared in the symbols file: see diff output below
dpkg-gensymbols: warning: debian/libbamf0/DEBIAN/symbols doesn't match completely debian/libbamf0.symbols
--- debian/libbamf0.symbols (libbamf0_0.3.4bzr498pkg0quantal18_i386)
+++ dpkg-gensymbols7h07HF 2012-11-14 10:34:42.000000000 +0000
@@ -63,6 +63,7 @@
  bamf_view_is_running@Base 0.2.20
  bamf_view_is_sticky@Base 0.2.60
  bamf_view_is_urgent@Base 0.2.20
+ bamf_view_is_user_visible@Base 0.3.4bzr498pkg0quantal18
...

I'm going to disable DPKG_GENSYMBOLS_CHECK_LEVEL=4 for this job and re-approve this MP to make sure this extra check is not preventing merge of this MP.

Revision history for this message
Francis Ginther (fginther) wrote :

Update... The gensymbols issue should be resolved after https://code.launchpad.net/~mterry/bamf/c4/+merge/134313 lands. So, I will approve this MP after the c4 change has merged.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Francis Ginther (fginther) wrote :

The c4 merge has landed, re-approving.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Francis Ginther (fginther) wrote :

This is a new failure (see amd64 log):
make test;
make[6]: Entering directory `/tmp/buildd/bamf-0.4.0bzr501pkg0quantal26/build/gtk2/tests/bamfdaemon'
TEST: ./test-bamf... (pid=11693)

(test-bamf:11693): Gtk-WARNING **: cannot open display: :101
FAIL: ./test-bamf
make[6]: *** [test] Error 1

I'm going to approve again to try and land this MP.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Francis Ginther (fginther) wrote :

The latest failure is once again:
PASS: ./test-bamf
make[6]: Leaving directory `/tmp/buildd/bamf-0.4.0bzr501pkg0quantal27/build/gtk2/tests/bamfdaemon'
/bin/bash: line 1: kill: (6197) - No such process

Filed https://bugs.launchpad.net/bamf/+bug/1079329

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Isn't this merged now?

the problem here is that I can't reproduce the failure locally...

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/libbamf/bamf-matcher.c'
2--- lib/libbamf/bamf-matcher.c 2012-10-12 10:30:22 +0000
3+++ lib/libbamf/bamf-matcher.c 2012-11-13 21:02:20 +0000
4@@ -613,9 +613,12 @@
5 view = _bamf_factory_view_for_path_type (factory, array[i], BAMF_FACTORY_APPLICATION);
6
7 if (BAMF_IS_APPLICATION (view))
8- result = g_list_prepend (result, view);
9+ {
10+ if (!g_list_find (result, view))
11+ result = g_list_prepend (result, view);
12+ }
13 }
14-
15+
16 g_strfreev (array);
17 return result;
18 }

Subscribers

People subscribed via source and target branches