Merge ~pushkarnk/ubuntu/+source/puppetdb:puppetdb-fixes into ubuntu/+source/puppetdb:ubuntu/devel

Proposed by Pushkar Kulkarni
Status: Needs review
Proposed branch: ~pushkarnk/ubuntu/+source/puppetdb:puppetdb-fixes
Merge into: ubuntu/+source/puppetdb:ubuntu/devel
Diff against target: 193 lines (+85/-11)
6 files modified
debian/changelog (+16/-0)
debian/control (+4/-1)
debian/patches/0001_Lein_Local.patch (+7/-10)
debian/patches/series (+1/-0)
debian/patches/skip-failing-command-tests.patch (+38/-0)
debian/tests/common.sh (+19/-0)
Reviewer Review Type Date Requested Status
Ubuntu Sponsors Pending
git-ubuntu import Pending
Review via email: mp+496485@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Pushkar Kulkarni (pushkarnk) wrote :

Built and tested in ppa:pushkarnk/ppa-12-2025

    + ✅ puppetdb on resolute for amd64 @ 27.11.25 13:51:33
      • Log: https://autopkgtest.ubuntu.com/results/autopkgtest-resolute-pushkarnk-ppa-12-2025/resolute/amd64/p/puppetdb/20251127_135133_3ca18@/log.gz
    + ✅ puppetdb on resolute for arm64 @ 27.11.25 13:58:53
      • Log: https://autopkgtest.ubuntu.com/results/autopkgtest-resolute-pushkarnk-ppa-12-2025/resolute/arm64/p/puppetdb/20251127_135853_a9696@/log.gz
    + ✅ puppetdb on resolute for armhf @ 27.11.25 13:35:33
      • Log: https://autopkgtest.ubuntu.com/results/autopkgtest-resolute-pushkarnk-ppa-12-2025/resolute/armhf/p/puppetdb/20251127_133533_3670f@/log.gz
    + ✅ puppetdb on resolute for i386 @ 27.11.25 13:51:41
      • Log: https://autopkgtest.ubuntu.com/results/autopkgtest-resolute-pushkarnk-ppa-12-2025/resolute/i386/p/puppetdb/20251127_135141_e225d@/log.gz
    + ✅ puppetdb on resolute for ppc64el @ 27.11.25 13:31:28
      • Log: https://autopkgtest.ubuntu.com/results/autopkgtest-resolute-pushkarnk-ppa-12-2025/resolute/ppc64el/p/puppetdb/20251127_133128_488e2@/log.gz
    + ✅ puppetdb on resolute for s390x @ 27.11.25 13:52:04
      • Log: https://autopkgtest.ubuntu.com/results/autopkgtest-resolute-pushkarnk-ppa-12-2025/resolute/s390x/p/puppetdb/20251127_135204_75337@/log.gz

The tests fail with all-proposed=1 because of installability issues with puppetserver.

Unmerged commits

5065a3b... by Pushkar Kulkarni

update maintainer

4f7f927... by Pushkar Kulkarni

update changelog

9895cfc... by Pushkar Kulkarni

d/control: add explicit b-d postgresql-common-dev for tests

54c54b9... by Pushkar Kulkarni

Disable squid proxy for URLs used by puppetdb tests

4de7dc8... by Pushkar Kulkarni

d/control: add b-d junit5 to satisfy junit-bom dependency

77e5cd7... by Pushkar Kulkarni

d/patches: Avoid snakeyaml version conflict

50e9f4a... by Pushkar Kulkarni

d/patches: Skip failing command tests

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 9c09a4e..421cca3 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,19 @@
6+puppetdb (8.8.1-1~exp1ubuntu1) resolute; urgency=medium
7+
8+ * d/control: add b-d junit5 to satisfy new junit-bom
9+ dependency of libpostgresql-jdbc-java 42.7.7-1
10+ * d/control: add b-d postgresql-common-dev because
11+ the postgresql-common->postgresql-common-dev
12+ dependency was dropped
13+ * d/patches: update patch to avoid snakeyaml version
14+ conflict
15+ * d/patches: add patch to skip command tests failing
16+ with libpostgresql-jdbc-java 42.7.7-1 and above
17+ * d/t/common.sh: disable proxy for URLs by puppetdb's
18+ dep8 tests (LP: #2072516).
19+
20+ -- Pushkar Kulkarni <pushkar.kulkarni@canonical.com> Thu, 27 Nov 2025 16:55:54 +0530
21+
22 puppetdb (8.8.1-1~exp1) unstable; urgency=medium
23
24 * New upstream version 8.8.1
25diff --git a/debian/control b/debian/control
26index b8449f3..de4ecf3 100644
27--- a/debian/control
28+++ b/debian/control
29@@ -1,7 +1,8 @@
30 Source: puppetdb
31 Section: admin
32 Priority: optional
33-Maintainer: Puppet Package Maintainers <pkg-puppet-devel@lists.alioth.debian.org>
34+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
35+XSBC-Original-Maintainer: Puppet Package Maintainers <pkg-puppet-devel@lists.alioth.debian.org>
36 Uploaders:
37 Apollon Oikonomopoulos <apoikos@debian.org>,
38 Jérôme Charaoui <jerome@riseup.net>,
39@@ -11,6 +12,7 @@ Build-Depends:
40 default-jdk-headless,
41 dh-exec,
42 javahelper,
43+ junit5,
44 leiningen,
45 libasm-java,
46 libat-at-clojure (>= 1.2.0),
47@@ -74,6 +76,7 @@ Build-Depends:
48 libyaml-snake-java <!nocheck>,
49 maven-repo-helper,
50 postgresql <!nocheck>,
51+ postgresql-common-dev <!nocheck>,
52 ruby <!nocheck>,
53 ruby-puppetserver-ca-cli <!nocheck>,
54 Standards-Version: 4.7.2
55diff --git a/debian/patches/0001_Lein_Local.patch b/debian/patches/0001_Lein_Local.patch
56index ebc04a8..5bcda1a 100644
57--- a/debian/patches/0001_Lein_Local.patch
58+++ b/debian/patches/0001_Lein_Local.patch
59@@ -7,11 +7,9 @@ Forwarded: not-needed
60 project.clj | 144 +++++++++++++++++++++++++++++++-----------------------------
61 1 file changed, 74 insertions(+), 70 deletions(-)
62
63-Index: puppetdb/project.clj
64-===================================================================
65---- puppetdb.orig/project.clj
66-+++ puppetdb/project.clj
67-@@ -44,19 +44,19 @@
68+--- a/project.clj
69++++ b/project.clj
70+@@ -44,19 +44,18 @@
71
72 (def pdb-dev-deps
73 (concat
74@@ -33,8 +31,7 @@ Index: puppetdb/project.clj
75 + [org.clojure/test.check "debian"]
76 + [com.gfredericks/test.chuck "debian"]
77 + [riddley "debian"]
78-+ [clj-commons/clj-yaml "debian"]
79-+ [org.yaml/snakeyaml "1.x"]]))
80++ [clj-commons/clj-yaml "debian"]]))
81
82 ;; Only needed for :integration tests
83 - [puppetlabs/trapperkeeper-filesystem-watcher nil]]))
84@@ -42,7 +39,7 @@ Index: puppetdb/project.clj
85
86 ;; Don't use lein :clean-targets so that we don't have to repeat
87 ;; ourselves, given that we need to remove some protected files, and
88-@@ -120,85 +120,88 @@
89+@@ -120,85 +119,88 @@
90
91 :min-lein-version "2.7.1"
92
93@@ -187,7 +184,7 @@ Index: puppetdb/project.clj
94 :lein-release {:scm :git
95 :deploy-via :lein-deploy}
96
97-@@ -234,8 +237,7 @@
98+@@ -234,8 +236,7 @@
99 :injections [(do
100 (require 'schema.core)
101 (schema.core/set-fn-validation! true))]}
102@@ -197,7 +194,7 @@ Index: puppetdb/project.clj
103 :jvm-opts ~(conj pdb-jvm-opts "-XX:-OmitStackTraceInFastThrow")}]
104
105 :fips [:defaults
106-@@ -333,4 +335,6 @@
107+@@ -333,4 +334,6 @@
108 "pdb-dataset" ^{:doc (clojure.string/join "" ["Restores an empty database from a pg_dump resulted backup"
109 " file and shifts all timestamps with the period between the most recent one in"
110 " the databse and the one you provide, or the current date."])}
111diff --git a/debian/patches/series b/debian/patches/series
112index 1189c33..18f844e 100644
113--- a/debian/patches/series
114+++ b/debian/patches/series
115@@ -8,3 +8,4 @@ skip-failing-networking-testcase.patch
116 resolve-ftbfs-with-java-21.patch
117 fix-tests-for-psql17.patch
118 regen_certs_script.patch
119+skip-failing-command-tests.patch
120diff --git a/debian/patches/skip-failing-command-tests.patch b/debian/patches/skip-failing-command-tests.patch
121new file mode 100644
122index 0000000..23d25e9
123--- /dev/null
124+++ b/debian/patches/skip-failing-command-tests.patch
125@@ -0,0 +1,38 @@
126+Description: Skip failing command tests
127+ Three sub-tests from command_tests.clj fail with libpostgresql-jdbc-java
128+ versions 42.7.7-1 and later. This failure is also reported with the upstream
129+ postgresql jdbc project in https://github.com/pgjdbc/pgjdbc/issues/3757. This
130+ patch skips the failing tests.
131+Author: Pushkar Kulkarni <pushkar.kulkarni@canonical.com>
132+Forwarded: no
133+Bug-Debian: https://bugs.debian.org/1109417
134+
135+--- a/test/puppetlabs/puppetdb/command_test.clj
136++++ b/test/puppetlabs/puppetdb/command_test.clj
137+@@ -1296,7 +1296,7 @@
138+ ;; PDB_TEST_ALWAYS_BROADCAST_COMMANDS case).
139+ :else (pg-serialization-failure-ex? (first (.getSuppressed ex))))))
140+
141+-(deftest concurrent-fact-updates
142++(deftest ^:skipped concurrent-fact-updates
143+ (testing "Should allow only one replace facts update for a given cert at a time"
144+ (with-message-handler {:keys [handle-message _dlo _delay-pool q command-chan]}
145+ (let [certname "some_certname"
146+@@ -1351,7 +1351,7 @@
147+ (is (true? @first-message?))
148+ (is (true? @second-message?))))))))
149+
150+-(deftest concurrent-catalog-updates
151++(deftest ^:skipped concurrent-catalog-updates
152+ (testing "Should allow only one replace catalogs update for a given cert at a time"
153+ (with-message-handler {:keys [handle-message command-chan dlo _delay-pool q]}
154+ (let [{certname :certname :as wire-catalog} (get-in wire-catalogs [6 :empty])
155+@@ -1394,7 +1394,7 @@
156+ (is (true? @first-message?))
157+ (is (true? @second-message?))))))))
158+
159+-(deftest concurrent-catalog-resource-updates
160++(deftest ^:skipped concurrent-catalog-resource-updates
161+ (testing "Should allow only one replace catalogs update for a given cert at a time"
162+ (with-message-handler {:keys [handle-message command-chan dlo _delay-pool q]}
163+ (let [{certname :certname :as wire-catalog} (get-in wire-catalogs [6 :empty])
164diff --git a/debian/tests/common.sh b/debian/tests/common.sh
165index 47de2ca..dc8578d 100644
166--- a/debian/tests/common.sh
167+++ b/debian/tests/common.sh
168@@ -3,6 +3,25 @@ QUERY_URL="http://localhost:8080/pdb/query/v4"
169
170 set -e
171
172+append_no_proxy_nodup() {
173+ local entry="$1"
174+ case ",$no_proxy," in
175+ *",$entry,"*) return;;
176+ *)
177+ if [ -z "$no_proxy" ]; then
178+ export no_proxy="$entry"
179+ else
180+ no_proxy="$no_proxy,$entry"
181+ fi
182+ ;;
183+ esac
184+}
185+
186+append_no_proxy_nodup "127.0.0.1"
187+append_no_proxy_nodup "localhost"
188+append_no_proxy_nodup ".local"
189+append_no_proxy_nodup ".lxd"
190+
191 cleanup () {
192 retval=$?
193 set +e

Subscribers

People subscribed via source and target branches