[Pkg-puppet-devel] Bug#1062330: puppetdb: fails to build from source

Vladimir Petko vpa1977 at gmail.com
Thu Feb 1 04:15:29 GMT 2024


Source: puppetdb
Version: 7.12.1-4
Severity: important

Dear Maintainer,

When building puppetdb from source, the following test failures occur causing
the build failure:

lein test :only puppetlabs.puppetdb.http.reports-test/query-with-projection

FAIL in (query-with-projection) (reports_test.clj:108)
Testing case [[:v4 "/v4/reports"] :get] group by function result
expected: (= (query-result method endpoint ["extract" [["function" "to_string"
"producer_timestamp" "FMDAY"] ["function" "count"]] ["group_by" ["function"
"to_string" "producer_timestamp" "FMDAY"]]]) #{{:to_string "SATURDAY", :count
2}})
  actual: (not (= #{{:to_string "SUNDAY", :count 2}} #{{:to_string "SATURDAY",
:count 2}}))

lein test :only puppetlabs.puppetdb.http.reports-test/query-with-projection

FAIL in (query-with-projection) (reports_test.clj:116)
Testing case [[:v4 "/v4/reports"] :get] group by function result and a column
expected: (= (query-result method endpoint ["extract" ["certname" ["function"
"to_string" "producer_timestamp" "FMDAY"] ["function" "count"]] ["group_by"
"certname" ["function" "to_string" "producer_timestamp" "FMDAY"]]]) #{{:count
1, :certname "foo.local", :to_string "SATURDAY"} {:count 1, :certname
"bar.local", :to_string "SATURDAY"}})
  actual: (not (= #{{:to_string "SUNDAY", :count 1, :certname "bar.local"}
{:to_string "SUNDAY", :count 1, :certname "foo.local"}} #{{:count 1, :certname
"foo.local", :to_string "SATURDAY"} {:count 1, :certname "bar.local",
:to_string "SATURDAY"}}))
2024-02-01 17:07:05.113 NZDT [1210627] LOG:  checkpoint starting: immediate
force wait
2024-02-01 17:07:05.173 NZDT [1210627] LOG:  checkpoint complete: wrote 18
buffers (0.0%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.009 s,
sync=0.012 s, total=0.060 s; sync files=9, longest=0.007 s, average=0.002 s;
distance=5422 kB, estimate=5738 kB; lsn=0/B63979D8, redo lsn=0/B63979A0
2024-02-01 17:07:05.294 NZDT [1235425] ERROR:  relation "reports_20110101z"
does not exist at character 13
2024-02-01 17:07:05.294 NZDT [1235425] STATEMENT:  INSERT INTO
reports_20110101Z ( status_id, environment_id, catalog_uuid, receive_time,
hash, transaction_uuid, puppet_version, noop, logs, report_format, start_time,
producer_timestamp, cached_catalog_status, end_time, producer_id, report_type,
configuration_version, code_id, noop_pending, certname, metrics, job_id )
VALUES ( $1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16,
$17, $18, $19, $20, $21, $22 )
        RETURNING *

lein test :only puppetlabs.puppetdb.http.reports-test/query-with-projection

FAIL in (query-with-projection) (reports_test.clj:108)
Testing case [[:v4 "/v4/reports"] :post] group by function result
expected: (= (query-result method endpoint ["extract" [["function" "to_string"
"producer_timestamp" "FMDAY"] ["function" "count"]] ["group_by" ["function"
"to_string" "producer_timestamp" "FMDAY"]]]) #{{:to_string "SATURDAY", :count
2}})
  actual: (not (= #{{:to_string "SUNDAY", :count 2}} #{{:to_string "SATURDAY",
:count 2}}))

lein test :only puppetlabs.puppetdb.http.reports-test/query-with-projection

FAIL in (query-with-projection) (reports_test.clj:116)
Testing case [[:v4 "/v4/reports"] :post] group by function result and a column
expected: (= (query-result method endpoint ["extract" ["certname" ["function"
"to_string" "producer_timestamp" "FMDAY"] ["function" "count"]] ["group_by"
"certname" ["function" "to_string" "producer_timestamp" "FMDAY"]]]) #{{:count
1, :certname "foo.local", :to_string "SATURDAY"} {:count 1, :certname
"bar.local", :to_string "SATURDAY"}})
  actual: (not (= #{{:to_string "SUNDAY", :count 1, :certname "bar.local"}
{:to_string "SUNDAY", :count 1, :certname "foo.local"}} #{{:count 1, :certname
"foo.local", :to_string "SATURDAY"} {:count 1, :certname "bar.local",
:to_string "SATURDAY"}}))


-- System Information:
Debian Release: trixie/sid
  APT prefers mantic-updates
  APT policy: (500, 'mantic-updates'), (500, 'mantic-security'), (500, 'mantic'), (100, 'mantic-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-15-generic (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
-------------- next part --------------
A non-text attachment was scrubbed...
Name: puppetdb_7.12.1-4_amd64-2024-02-01T04:00:02Z.build.gz
Type: application/gzip
Size: 165486 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-puppet-devel/attachments/20240201/fea87ecd/attachment-0001.gz>


More information about the Pkg-puppet-devel mailing list