Merge lp:~mterry/hud/optional-bustle into lp:hud/13.04

Proposed by Michael Terry
Status: Merged
Approved by: Mathieu Trudel-Lapierre
Approved revision: 245
Merged at revision: 244
Proposed branch: lp:~mterry/hud/optional-bustle
Merge into: lp:hud/13.04
Diff against target: 103 lines (+21/-9)
4 files modified
debian/changelog (+12/-0)
debian/control (+0/-2)
tests/Makefile.am (+6/-6)
tests/test-dbus-message-count.in (+3/-1)
To merge this branch: bzr merge lp:~mterry/hud/optional-bustle
Reviewer Review Type Date Requested Status
Mathieu Trudel-Lapierre Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+149771@code.launchpad.net

Commit message

Don't require bustle and gtester2xunit for building or testing.

Description of the change

HUD shouldn't need bustle and gtester2xunit just for optional bits of its tests. They are difficult packages to MIR, so just don't use them if not available.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Approve.

review: Approve
Revision history for this message
Ted Gould (ted) wrote :

So this has now broken the daily builds as the test results, which are xunit, aren't available:

https://jenkins.qa.ubuntu.com/job/hud-daily/build=pbuilder,distribution=raring,flavor=i386/

The bustle results are used to do the performance testing which is still on the TODO list, but we'd also like to get into Jenkins as well.

Revision history for this message
Michael Terry (mterry) wrote :

I thought the jenkins builds included the extra packages (vs the PPA builds which don't). I believe fginther set that up. Maybe a job is just misconfigured.

Revision history for this message
Ted Gould (ted) wrote :

On Thu, 2013-02-28 at 03:36 +0000, Michael Terry wrote:

> I thought the jenkins builds included the extra packages (vs the PPA builds which don't). I believe fginther set that up. Maybe a job is just misconfigured.

They could, but it seems like what we really want is Jenkins to work as
closely to the same as the PPA builders. If they're different I'm not
sure that we're doing good testing.

Revision history for this message
Michael Terry (mterry) wrote :

Agreed in principle. But until bustle is in main (which is unlikely to happen as long as it's written in haskell), this is the best we can do for ya.

Could you perhaps get the same results without using bustle?

Revision history for this message
Ted Gould (ted) wrote :

On Thu, 2013-02-28 at 15:37 +0000, Michael Terry wrote:

> Agreed in principle. But until bustle is in main (which is unlikely to happen as long as it's written in haskell), this is the best we can do for ya.
>
> Could you perhaps get the same results without using bustle?

Sure, Bustle isn't as much a problem as gtester2xunit is. I think we
can work around bustle, but probably not the other.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2013-02-20 02:01:55 +0000
3+++ debian/changelog 2013-02-21 09:55:29 +0000
4@@ -1,3 +1,15 @@
5+hud (13.04.0daily13.02.20-0ubuntu2) raring; urgency=low
6+
7+ * debian/control:
8+ - Remove some Build-Depends that aren't in main yet and are used for the
9+ test suite. We'll add tests back very soon as dep8 or without
10+ bustle. This is just a brown-paper-bag release to fix component
11+ mismatch.
12+ * debian/hud-tools.install:
13+ - Don't ship hud-gtk stuff, since that's only built when tests are.
14+
15+ -- Michael Terry <mterry@ubuntu.com> Wed, 20 Feb 2013 17:49:47 +0000
16+
17 hud (13.04.0daily13.02.20-0ubuntu1) raring; urgency=low
18
19 [ Ted Gould ]
20
21=== modified file 'debian/control'
22--- debian/control 2013-01-24 16:46:58 +0000
23+++ debian/control 2013-02-21 09:55:29 +0000
24@@ -21,9 +21,7 @@
25 indicator-appmenu,
26 bamfdaemon,
27 gnome-doc-utils,
28- bustle (>= 0.4.2),
29 dbus-test-runner,
30- gtester2xunit,
31 metacity,
32 sqlite3,
33 valac-0.18,
34
35=== modified file 'tests/Makefile.am'
36--- tests/Makefile.am 2012-11-29 21:23:48 +0000
37+++ tests/Makefile.am 2013-02-21 09:55:29 +0000
38@@ -27,7 +27,7 @@
39 @echo "#!/bin/bash" > $@
40 @echo $(XVFB_RUN) >> $@
41 @echo gtester --verbose -k -o $(DISTANCE_XML_REPORT) $(builddir)/test-distance >> $@
42- @echo gtester2xunit $(DISTANCE_XML_REPORT) >> $@
43+ @echo "if which gtester2xunit; then gtester2xunit $(DISTANCE_XML_REPORT); fi" >> $@
44 @chmod +x $@
45
46 test_distance_SOURCES = \
47@@ -65,7 +65,7 @@
48 @echo "#!/bin/bash" > $@
49 @echo $(XVFB_RUN) >> $@
50 @echo gtester --verbose -k -o $(RESULT_XML_REPORT) $(builddir)/test-result-highlighting >> $@
51- @echo gtester2xunit $(RESULT_XML_REPORT) >> $@
52+ @echo "if which gtester2xunit; then gtester2xunit $(RESULT_XML_REPORT); fi" >> $@
53 @chmod +x $@
54
55 test_result_highlighting_SOURCES = \
56@@ -110,7 +110,7 @@
57 @echo gtester --verbose -k -o $(abs_builddir)/$(USAGE_DB_SIMPLE_XML_REPORT) $(abs_builddir)/test-usage-db-simple >> $@
58 @echo cd .. >> $@
59 @echo rm -rf test-usage-db-simple.dir.\* >> $@
60- @echo gtester2xunit $(abs_builddir)/$(USAGE_DB_SIMPLE_XML_REPORT) >> $@
61+ @echo "if which gtester2xunit; then gtester2xunit $(abs_builddir)/$(USAGE_DB_SIMPLE_XML_REPORT); fi" >> $@
62 @chmod +x $@
63
64 test_usage_db_simple_SOURCES = \
65@@ -158,7 +158,7 @@
66 @echo gtester --verbose -k -o $(abs_builddir)/$(USAGE_DB_OLD_XML_REPORT) $(abs_builddir)/test-usage-db-old >> $@
67 @echo cd .. >> $@
68 @echo rm -rf test-usage-db-old.dir.\* >> $@
69- @echo gtester2xunit $(abs_builddir)/$(USAGE_DB_OLD_XML_REPORT) >> $@
70+ @echo "if which gtester2xunit; then gtester2xunit $(abs_builddir)/$(USAGE_DB_OLD_XML_REPORT); fi" >> $@
71 @chmod +x $@
72
73 test_usage_db_old_SOURCES = \
74@@ -254,7 +254,7 @@
75 @echo gtester --verbose -k -o $(abs_builddir)/$(USAGE_TESTAPP_XML_REPORT) $(abs_builddir)/test-usage-db-testapp >> $@
76 @echo cd .. >> $@
77 @echo rm -rf test-usage-db-testapp.dir.\* >> $@
78- @echo gtester2xunit $(abs_builddir)/$(USAGE_TESTAPP_XML_REPORT) >> $@
79+ @echo "if which gtester2xunit; then gtester2xunit $(abs_builddir)/$(USAGE_TESTAPP_XML_REPORT); fi" >> $@
80 @chmod +x $@
81
82 test_usage_db_testapp_SOURCES = \
83@@ -303,7 +303,7 @@
84 @echo test \! -e indicator-appmenu/hud-usage-log.sqlite >> $@
85 @echo cd .. >> $@
86 @echo rm -rf test-usage-db-off.dir.\* >> $@
87- @echo gtester2xunit $(abs_builddir)/$(USAGE_OFF_XML_REPORT) >> $@
88+ @echo "if which gtester2xunit; then gtester2xunit $(abs_builddir)/$(USAGE_OFF_XML_REPORT); fi" >> $@
89 @chmod +x $@
90
91 DISTCLEANFILES += \
92
93=== modified file 'tests/test-dbus-message-count.in'
94--- tests/test-dbus-message-count.in 2012-12-12 18:10:51 +0000
95+++ tests/test-dbus-message-count.in 2013-02-21 09:55:29 +0000
96@@ -15,4 +15,6 @@
97 --task @srcdir@/test-dbus-message-count-send-query --wait-for com.canonical.AppMenu.Registrar --task-name query
98
99 sleep 1
100-bustle --count test-dbus-message-count.bustle
101+if which bustle; then
102+ bustle --count test-dbus-message-count.bustle
103+fi

Subscribers

People subscribed via source and target branches