Merge ~paelzer/ubuntu/+source/chrony:bug-1836929-1836882-test-fails-disco into ubuntu/+source/chrony:ubuntu/disco-devel

Proposed by Christian Ehrhardt 
Status: Merged
Approved by: Christian Ehrhardt 
Approved revision: 9d71f68912f4fe13d0c648007499dc4253809236
Merged at revision: 9d71f68912f4fe13d0c648007499dc4253809236
Proposed branch: ~paelzer/ubuntu/+source/chrony:bug-1836929-1836882-test-fails-disco
Merge into: ubuntu/+source/chrony:ubuntu/disco-devel
Diff against target: 88 lines (+44/-5)
5 files modified
debian/changelog (+14/-0)
debian/patches/series (+1/-0)
debian/patches/update_processing_of_packet_log.patch (+23/-0)
debian/tests/control (+1/-1)
debian/tests/upstream-simulation-test-suite (+5/-4)
Reviewer Review Type Date Requested Status
Rafael David Tinoco (community) Approve
Canonical Server packageset reviewers Pending
git-ubuntu developers Pending
Review via email: mp+370292@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Without fixes both tests fail:
- simulation due to clksim changes
- service checks due to (non critical) stderr output

Checking my fixes:
1. build time self tests not affected (to be expected but I wanted to be sure)
2. autpkgtest fixed
   111-knownclient .................... PASS
   112-port .................... PASS

Builds succeed in PPA [1] and I later have started a Bileto PPA [2] hoping I might do the LP infra testing via ticket [3] check on this to be sure.

[1]: https://launchpad.net/~paelzer/+archive/ubuntu/bug-1836929-1836882-test-fails-disco
[2]: https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/3759
[3]: https://bileto.ubuntu.com/#/ticket/3759

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Tests complete and (with the fix) all green now:
https://bileto.ubuntu.com/excuses/3759/disco.html

Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

+1. Reviewed and good!

review: Approve
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Thanks, tagged pushed and uploaded.

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 2995a8c..83c4a20 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,17 @@
6+chrony (3.4-1ubuntu1.1) disco; urgency=medium
7+
8+ * Fix recently degraded autopkgtests:
9+ - d/t/control: allow stderr for recent changes in other packages causing a non
10+ critical stderr output in the test (LP: #1836882)
11+ - Backport fixes from 3.5-2 to clksim execution (Thanks to Vincent Blut)
12+ (LP: #1836929)
13+ + d/t/upstream-simulation-test-suite: Fix make call
14+ + d/t/upstream-simulation-test-suite: Fix unability to launch run script
15+ + d/t/upstream-simulation-test-suite: Use a known good clknetsim commit
16+ + d/p/: Add update_processing_of_packet_log.patch for changed output
17+
18+ -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Thu, 18 Jul 2019 07:42:03 +0200
19+
20 chrony (3.4-1ubuntu1) disco; urgency=medium
21
22 * Merge with Debian unstable (LP: #1802886). Remaining changes:
23diff --git a/debian/patches/series b/debian/patches/series
24index e69de29..b2982a5 100644
25--- a/debian/patches/series
26+++ b/debian/patches/series
27@@ -0,0 +1 @@
28+update_processing_of_packet_log.patch
29diff --git a/debian/patches/update_processing_of_packet_log.patch b/debian/patches/update_processing_of_packet_log.patch
30new file mode 100644
31index 0000000..812b2f2
32--- /dev/null
33+++ b/debian/patches/update_processing_of_packet_log.patch
34@@ -0,0 +1,23 @@
35+From 62d6aed6a64b887c9e3b7f03d9e0db1deaa2696a Mon Sep 17 00:00:00 2001
36+From: Miroslav Lichvar <mlichvar@redhat.com>
37+Date: Tue, 18 Jun 2019 15:41:50 +0200
38+Subject: test: update processing of packet log
39+
40+Two new fields have been added to the packet log, which broke some
41+of the simulation tests.
42+
43+Applied-Upstream: https://git.tuxfamily.org/chrony/chrony.git/commit/?id=62d6aed6a64b887c9e3b7f03d9e0db1deaa2696a
44+--- a/test/simulation/test.common
45++++ b/test/simulation/test.common
46+@@ -391,9 +391,9 @@ check_packet_port() {
47+ for i in $(seq 1 $(get_chronyd_nodes)); do
48+ test_message 3 0 "node $i:"
49+
50+- grep -E -q " $port [0-9]+\$" tmp/log.packets && \
51++ grep -E -q "^([0-9e.+-]+ ){5}$port " tmp/log.packets && \
52+ ! grep -E "^[0-9e.+-]+ $i " tmp/log.packets | \
53+- grep -E -q -v " $port [0-9]+\$" && \
54++ grep -E -q -v "^([0-9e.+-]+ ){5}$port " && \
55+ test_ok || test_bad
56+ [ $? -eq 0 ] || ret=1
57+ done
58diff --git a/debian/tests/control b/debian/tests/control
59index fb124dc..18d31c5 100644
60--- a/debian/tests/control
61+++ b/debian/tests/control
62@@ -4,4 +4,4 @@ Restrictions: isolation-container, needs-root, allow-stderr, rw-build-tree, buil
63
64 Tests: time-sources-from-dhcp-servers
65 Depends: @, isc-dhcp-server, isc-dhcp-client, iproute2, kmod
66-Restrictions: isolation-machine, needs-root
67+Restrictions: isolation-machine, needs-root, allow-stderr
68diff --git a/debian/tests/upstream-simulation-test-suite b/debian/tests/upstream-simulation-test-suite
69index f2a5947..b9cfb4a 100644
70--- a/debian/tests/upstream-simulation-test-suite
71+++ b/debian/tests/upstream-simulation-test-suite
72@@ -14,11 +14,12 @@ fi
73 cd test/simulation
74
75 if [ ! -d clknetsim ]; then
76- git clone https://github.com/mlichvar/clknetsim
77+ git clone https://github.com/mlichvar/clknetsim && cd clknetsim && \
78+ git checkout 156b8e4
79 fi
80
81-if [ ! -x "clknetsim/clknetsim" ] && [ ! -e "clknetsim/clknetsim.so" ]; then
82- make -C clknetsim
83+if [ ! -x "clknetsim" ] && [ ! -e "clknetsim.so" ]; then
84+ make
85 fi
86
87-./run -i 20 -m 2
88+cd .. && ./run -i 20 -m 2

Subscribers

People subscribed via source and target branches