[PostGIS] #6111: Don't run test_check_news.py when not using git
PostGIS
trac at osgeo.org
Mon Aug 10 05:22:52 PDT 2026
#6111: Don't run test_check_news.py when not using git
----------------------------+---------------------------
Reporter: Bas Couwenberg | Owner: robe
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 3.7.0
Component: documentation | Version: master
Keywords: |
----------------------------+---------------------------
The Debian package build for 3.7.0beta2 failed because git is not
available in the build environment (it uses the release tarballs):
{{{
make -C doc check
make[3]: Entering directory '/build/postgis-3.7.0~beta2+dfsg/doc'
/usr/bin/python3
/build/postgis-3.7.0~beta2+dfsg/utils/docs/tests/test_docbook_qa.py
.......................................
----------------------------------------------------------------------
Ran 39 tests in 0.064s
OK
make[3]: Leaving directory '/build/postgis-3.7.0~beta2+dfsg/doc'
! find . -name '*.c' -o -name '*.h' -o -name '*.proto' | \
grep -v lwin_wkt_lex.c | \
grep -v lwin_wkt_parse | \
grep -v lookup3 | \
grep -v vector_tile.pb-c | \
grep -v postgis/sqldefines.h | \
grep -v deps/ | \
xargs grep -n '[[:space:]]$'
...E/usr/lib/python3.14/tempfile.py:961: ResourceWarning: Implicitly
cleaning up <TemporaryDirectory '/tmp/tmpiz932xzj'>
_warnings.warn(warn_message, ResourceWarning)
E/usr/lib/python3.14/tempfile.py:961: ResourceWarning: Implicitly cleaning
up <TemporaryDirectory '/tmp/tmpvly8rpy7'>
_warnings.warn(warn_message, ResourceWarning)
E/usr/lib/python3.14/tempfile.py:961: ResourceWarning: Implicitly cleaning
up <TemporaryDirectory '/tmp/tmpj3m9u7f2'>
_warnings.warn(warn_message, ResourceWarning)
E/usr/lib/python3.14/tempfile.py:961: ResourceWarning: Implicitly cleaning
up <TemporaryDirectory '/tmp/tmpgs8yeuqx'>
_warnings.warn(warn_message, ResourceWarning)
E/usr/lib/python3.14/tempfile.py:961: ResourceWarning: Implicitly cleaning
up <TemporaryDirectory '/tmp/tmpu9306zm9'>
_warnings.warn(warn_message, ResourceWarning)
E/usr/lib/python3.14/tempfile.py:961: ResourceWarning: Implicitly cleaning
up <TemporaryDirectory '/tmp/tmpkif2coxd'>
_warnings.warn(warn_message, ResourceWarning)
E/usr/lib/python3.14/tempfile.py:961: ResourceWarning: Implicitly cleaning
up <TemporaryDirectory '/tmp/tmpb3k3_pe5'>
_warnings.warn(warn_message, ResourceWarning)
E/usr/lib/python3.14/tempfile.py:961: ResourceWarning: Implicitly cleaning
up <TemporaryDirectory '/tmp/tmpmzi7ukke'>
_warnings.warn(warn_message, ResourceWarning)
E/usr/lib/python3.14/tempfile.py:961: ResourceWarning: Implicitly cleaning
up <TemporaryDirectory '/tmp/tmp5t3lrgj4'>
_warnings.warn(warn_message, ResourceWarning)
E/usr/lib/python3.14/tempfile.py:961: ResourceWarning: Implicitly cleaning
up <TemporaryDirectory '/tmp/tmpobfyb42i'>
_warnings.warn(warn_message, ResourceWarning)
E/usr/lib/python3.14/tempfile.py:961: ResourceWarning: Implicitly cleaning
up <TemporaryDirectory '/tmp/tmpeavqleg4'>
_warnings.warn(warn_message, ResourceWarning)
E/usr/lib/python3.14/tempfile.py:961: ResourceWarning: Implicitly cleaning
up <TemporaryDirectory '/tmp/tmpu4czyaas'>
_warnings.warn(warn_message, ResourceWarning)
E/usr/lib/python3.14/tempfile.py:961: ResourceWarning: Implicitly cleaning
up <TemporaryDirectory '/tmp/tmprxgqpydx'>
_warnings.warn(warn_message, ResourceWarning)
======================================================================
ERROR: test_duplicate_released_entry_fails
(__main__.NewsValidationTest.test_duplicate_released_entry_fails)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/build/postgis-3.7.0~beta2+dfsg/./utils/docs/tests/test_check_news.py",
line 103, in setUp
self.fixture = NewsFixture()
~~~~~~~~~~~^^
File
"/build/postgis-3.7.0~beta2+dfsg/./utils/docs/tests/test_check_news.py",
line 62, in __init__
self.git("init", "--initial-branch=main")
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/build/postgis-3.7.0~beta2+dfsg/./utils/docs/tests/test_check_news.py",
line 74, in git
return subprocess.run(
~~~~~~~~~~~~~~^
["git", *args],
^^^^^^^^^^^^^^^
...<3 lines>...
capture_output=True,
^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/lib/python3.14/subprocess.py", line 555, in run
with Popen(*popenargs, **kwargs) as process:
~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.14/subprocess.py", line 1039, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pass_fds, cwd, env,
^^^^^^^^^^^^^^^^^^^
...<5 lines>...
gid, gids, uid, umask,
^^^^^^^^^^^^^^^^^^^^^^
start_new_session, process_group)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.14/subprocess.py", line 1990, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'git'
[...]
======================================================================
ERROR: test_x_placeholder_date_section_accepts_new_entries
(__main__.NewsValidationTest.test_x_placeholder_date_section_accepts_new_entries)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/build/postgis-3.7.0~beta2+dfsg/./utils/docs/tests/test_check_news.py",
line 103, in setUp
self.fixture = NewsFixture()
~~~~~~~~~~~^^
File
"/build/postgis-3.7.0~beta2+dfsg/./utils/docs/tests/test_check_news.py",
line 62, in __init__
self.git("init", "--initial-branch=main")
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/build/postgis-3.7.0~beta2+dfsg/./utils/docs/tests/test_check_news.py",
line 74, in git
return subprocess.run(
~~~~~~~~~~~~~~^
["git", *args],
^^^^^^^^^^^^^^^
...<3 lines>...
capture_output=True,
^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/lib/python3.14/subprocess.py", line 555, in run
with Popen(*popenargs, **kwargs) as process:
~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.14/subprocess.py", line 1039, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pass_fds, cwd, env,
^^^^^^^^^^^^^^^^^^^
...<5 lines>...
gid, gids, uid, umask,
^^^^^^^^^^^^^^^^^^^^^^
start_new_session, process_group)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.14/subprocess.py", line 1990, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'git'
----------------------------------------------------------------------
Ran 16 tests in 0.037s
FAILED (errors=13)
make[2]: *** [GNUmakefile:103: check-news] Error 1
make[2]: Leaving directory '/build/postgis-3.7.0~beta2+dfsg'
}}}
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/6111>
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