pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bernhard M. Wiedemann <bwiedemann@suse.de>
To: pgsql-bugs@lists.postgresql.org
Subject: jsonb_jsonpath test fails after 2024-11-03
Date: Wed, 30 Oct 2024 15:55:26 +0100
Message-ID: <ba8e1bc0-8a99-45b7-8397-3f2e94415e03@suse.de> (raw)

While working on reproducible builds for openSUSE, I found that
our postgresql17 package fails the jsonb_jsonpath test
when building after 2024-11-03 (the US DST change).

Background:
As part of my work on reproducible builds for openSUSE, I check that 
software still gives identical build results in the future.
The usual offset is +16.1 years, because that is how long I expect some 
software will be used in some places.
This showed up failing tests in our package build.
See https://reproducible-builds.org/ for why this matters.

Here is the test log:

  # 1 of 221 tests failed.
  # The differences that caused some tests to fail can be viewed in the 
file 
"/home/abuild/rpmbuild/BUILD/postgresql-17.0/src/test/regress/regression.diffs".
  # A copy of the test summary that you see above is saved in the file 
"/home/abuild/rpmbuild/BUILD/postgresql-17.0/src/test/regress/regression.out".
[...snipped...]
  diff -U3 
/home/abuild/rpmbuild/BUILD/postgresql-17.0/src/test/regress/expected/jsonb_jsonpath.out 
/home/abuild/rpmbuild/BUILD/postgresql-17.0/src/test/regress/results/jsonb_jsonpath.out
  --- 
/home/abuild/rpmbuild/BUILD/postgresql-17.0/src/test/regress/expected/jsonb_jsonpath.out 
   2024-09-23 20:02:53.000000000 +0000
  +++ 
/home/abuild/rpmbuild/BUILD/postgresql-17.0/src/test/regress/results/jsonb_jsonpath.out 
    2040-11-25 10:30:31.159999999 +0000
  @@ -2637,7 +2637,7 @@
   select jsonb_path_query_tz('"12:34:56"', '$.time_tz().string()');
    jsonb_path_query_tz
   ---------------------
  - "12:34:56-07:00"
  + "12:34:56-08:00"
   (1 row)

   select jsonb_path_query('"12:34:56"', '$.time().string()');
  + exit 1


On Debian or openSUSE you can test it with
osc checkout openSUSE:Factory/postgresql17 && cd $_
osc build --vm-type=kvm --noservice --clean \
--build-opt=--vm-custom-opt="-rtc base=2024-11-04T00:00:00" standard

Tests should be designed to continue working into the far future.

Ciao
Bernhard M.


Attachments:

  OpenPGP_signature.asc (application/pgp-signature, 235B) download

view thread (2+ messages)  latest in thread

Message-ID: <ba8e1bc0-8a99-45b7-8397-3f2e94415e03@suse.de>
Permalink:  ../ba8e1bc0-8a99-45b7-8397-3f2e94415e03@suse.de/
Also on:    postgresql.org/message-id/ba8e1bc0-8a99-45b7-8397-3f2e94415e03@suse.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: bwiedemann@suse.de, pgsql-bugs@lists.postgresql.org
  Subject: Re: jsonb_jsonpath test fails after 2024-11-03
  In-Reply-To: <ba8e1bc0-8a99-45b7-8397-3f2e94415e03@suse.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox