[postgis-tickets] [PostGIS] #5014: flatgeobuf test failure

PostGIS trac at osgeo.org
Sat Oct 30 21:40:08 PDT 2021


#5014: flatgeobuf test failure
-----------------------------+---------------------------
  Reporter:  Bas Couwenberg  |      Owner:  pramsey
      Type:  defect          |     Status:  new
  Priority:  blocker         |  Milestone:  PostGIS 3.2.0
 Component:  postgis         |    Version:  master
Resolution:                  |   Keywords:
-----------------------------+---------------------------

Comment (by Bas Couwenberg):

 > Is it possible for you to send a backtrace for this or if there is a way
 for me to test this via some container thing.

 You can setup a cowbuilder chroot to reproduce the issue, see:

  https://debian-gis-team.pages.debian.net/policy/packaging.html#git-
 pbuilder

 After configuring `sudo` as documented:
 {{{
 sudo cowbuilder --create \
                 --distribution=sid \
                 --basepath=/var/cache/pbuilder/base-sid.cow
 sudo cowbuilder --login --basepath /var/cache/pbuilder/base-sid.cow

 # Inside the chroot

 ## Add apt sources
 echo "deb http://deb.debian.org/debian/ experimental main contrib non-
 free" >> /etc/apt/sources.list
 echo "deb-src http://deb.debian.org/debian/ experimental main contrib non-
 free" >> /etc/apt/sources.list
 sed -i 's/^#deb-src/deb-src/' /etc/apt/sources.list
 apt update

 ## Install tools you need (vim, less, gdb, etc)

 ## Get postgis source package
 cd /tmp/buildd
 apt source -t experimental postgis
 cd postgis-*/

 ## Install build dependencies
 apt build-dep postgis

 ## Delete patch which skips the failing test
 apt install quilt
 quilt delete flatgeobuff.patch

 ## Build the package
 DEB_BUILD_OPTIONS="parallel=3" dpkg-buildpackage -uc -uc 2>&1 | tee
 ../postgis.build
 }}}

 > I see you are using pg_virtualenv but not sure what that is.

 It creates a throw-away PostgreSQL environment for running regression
 tests, see its manpage:

  https://manpages.debian.org/unstable/postgresql-
 common/pg_virtualenv.1.en.html

 You can use its `-s` option to launch a shell when the command fails,
 e.g.:
 {{{
 pg_virtualenv -v 14 -s make check RUNTESTFLAGS="-v"
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5014#comment:3>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list