Merge ~athos-ribeiro/ubuntu/+source/nut:skip-flaky-tests into ubuntu/+source/nut:ubuntu/devel

Proposed by Athos Ribeiro
Status: Merged
Approved by: git-ubuntu bot
Approved revision: not available
Merged at revision: 5b71cd401c4afd81606862ed60479235e2edce46
Proposed branch: ~athos-ribeiro/ubuntu/+source/nut:skip-flaky-tests
Merge into: ubuntu/+source/nut:ubuntu/devel
Diff against target: 48 lines (+10/-1)
3 files modified
debian/changelog (+6/-0)
debian/control (+2/-1)
debian/tests/test-nut.py (+2/-0)
Reviewer Review Type Date Requested Status
git-ubuntu bot Approve
Bryce Harrington (community) Approve
Canonical Server Reporter Pending
Review via email: mp+435205@code.launchpad.net

Description of the change

This is a temporary fix for LP: #1998481. The mentioned bug points to an upstream bug where sd_notify support is being implemented. When that is complete, we can apply the patch attached to that bug to the nut package. Until then, Let's skip these flaky tests to avoid blocking other package migrations.

PPA: https://launchpad.net/~athos-ribeiro/+archive/ubuntu/nut-flaky-tests/+packages

Local test run result summary:

autopkgtest [11:22:15]: test nut: [-----------------------
test_CVE_2012_2944 (__main__.BasicTest)
Test CVE-2012-2944 ... ok
test_daemons_pid (__main__.BasicTest)
Test daemons using PID files ... ok
test_daemons_service (__main__.BasicTest)
Test daemons using "service status" ... ok
test_upsc_device_list (__main__.BasicTest)
Test NUT client interface (upsc): device(s) listing ... ok
test_upsd_IPv4 (__main__.BasicTest)
Test upsd IPv4 reachability ... ok
test_upsd_IPv6 (__main__.BasicTest)
Test upsd IPv6 reachability ... ok
test_upsmon_notif (__main__.BasicTest)
Test upsmon notifications ... skipped 'Skip flaky test. See LP: #1998481 for further reference.'
test_upsrw (__main__.BasicTest)
Test upsrw ... skipped 'Skip flaky test. See LP: #1998481 for further reference.'

----------------------------------------------------------------------
Ran 8 tests in 118.815s

OK (skipped=2)
Skipping private tests
autopkgtest [11:24:15]: test nut: -----------------------]
autopkgtest [11:24:15]: test nut: - - - - - - - - - - results - - - - - - - - - -
nut PASS
autopkgtest [11:24:16]: @@@@@@@@@@@@@@@@@@@@ summary
nut PASS

To post a comment you must log in.
Revision history for this message
Bryce Harrington (bryce) wrote :

LGTM, thanks for including the LP#'s for the skips.

I triggered autopkgtests against the PPA:

$ ppa tests ppa:athos-ribeiro/nut-flaky-tests
* Triggers:
  - Source nut/2.8.0-6ubuntu1~ppa1: Published
    + Trigger basic @amd64♻️ Trigger all-proposed @amd64💍
    + Trigger basic @arm64♻️ Trigger all-proposed @arm64💍
    + Trigger basic @armhf♻️ Trigger all-proposed @armhf💍
    + Trigger basic @i386♻️ Trigger all-proposed @i386💍
    + Trigger basic @ppc64el♻️ Trigger all-proposed @ppc64el💍
    + Trigger basic @s390x♻️ Trigger all-proposed @s390x💍

* Results:
* Running:
  # time pkg release arch ppa trigger
  - 20 nut lunar ppc64el athos-ribeiro/nut-flaky-tests nut/2.8.0-6ubuntu1~ppa1
  - 20 nut lunar armhf athos-ribeiro/nut-flaky-tests nut/2.8.0-6ubuntu1~ppa1
  - 20 nut lunar arm64 athos-ribeiro/nut-flaky-tests nut/2.8.0-6ubuntu1~ppa1
* Waiting:
  # Q-num pkg release arch ppa trigger
  - 1 nut lunar s390x athos-ribeiro/nut-flaky-tests nut/2.8.0-6ubuntu1~ppa1
  - 1 nut lunar amd64 athos-ribeiro/nut-flaky-tests nut/2.8.0-6ubuntu1~ppa1

review: Approve
Revision history for this message
git-ubuntu bot (git-ubuntu-bot) wrote :

Approvers: athos-ribeiro, bryce
Uploaders: athos-ribeiro, bryce
MP auto-approved

review: Approve
Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

Thanks, Bryce!

Uploaded

Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading nut_2.8.0-6ubuntu1.dsc: done.
  Uploading nut_2.8.0-6ubuntu1.debian.tar.xz: done.
  Uploading nut_2.8.0-6ubuntu1_source.buildinfo: done.
  Uploading nut_2.8.0-6ubuntu1_source.changes: done.
Successfully uploaded packages.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index ac49687..d48b6ea 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,9 @@
6+nut (2.8.0-6ubuntu1) lunar; urgency=medium
7+
8+ * Skip flaky tests. (LP: #1998481)
9+
10+ -- Athos Ribeiro <athos.ribeiro@canonical.com> Thu, 05 Jan 2023 10:23:48 -0300
11+
12 nut (2.8.0-6) unstable; urgency=medium
13
14 * debian/patches/appdata-launchable.patch: Add launchable tag
15diff --git a/debian/control b/debian/control
16index c1c0b10..3577e16 100644
17--- a/debian/control
18+++ b/debian/control
19@@ -1,7 +1,8 @@
20 Source: nut
21 Section: admin
22 Priority: optional
23-Maintainer: Laurent Bigonville <bigon@debian.org>
24+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
25+XSBC-Original-Maintainer: Laurent Bigonville <bigon@debian.org>
26 Build-Depends: asciidoc <!nodoc>,
27 debhelper (>= 12),
28 dh-python,
29diff --git a/debian/tests/test-nut.py b/debian/tests/test-nut.py
30index 3197c14..32e43df 100644
31--- a/debian/tests/test-nut.py
32+++ b/debian/tests/test-nut.py
33@@ -338,6 +338,7 @@ class BasicTest(NutTestCommon, PrivateNutTest):
34 # Result == Main ; dummy-dev1 ; $hostname
35 # self.assertTrue('dummy-dev1' in report, 'dummy-dev1 should be present in device(s) listing: ' + report)
36
37+ @unittest.skip("Skip flaky test. See LP: #1998481 for further reference.")
38 def test_upsrw(self):
39 '''Test upsrw'''
40 # Set ups.status to OB (On Battery)...
41@@ -351,6 +352,7 @@ class BasicTest(NutTestCommon, PrivateNutTest):
42 #def test_upscmd(self):
43 # '''Test upscmd'''
44
45+ @unittest.skip("Skip flaky test. See LP: #1998481 for further reference.")
46 def test_upsmon_notif(self):
47 '''Test upsmon notifications'''
48 # Set ups.status to OB (On Battery)...

Subscribers

People subscribed via source and target branches