#1143428 towncrier: FTBFS: E twisted.trial.unittest.FailTest: 0 != 1 : Loading template...

#1143428#5
Date:
2026-08-01 22:39:41 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202608/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:towncrier, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --with python3 --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary
dh binary --with python3 --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
   dh_auto_build -O--buildsystem=pybuild
I: pybuild plugin_pyproject:142: Building wheel for python3.14 with "build" module
I: pybuild base:385: python3.14 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14
* Building wheel...
Successfully built towncrier-24.8.0-py3-none-any.whl
I: pybuild plugin_pyproject:168: Unpacking wheel built for python3.14 with "installer" module
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:385: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build; python3.14 -m pytest "/<<PKGBUILDDIR>>"/src/
============================= test session starts ==============================
platform linux -- Python 3.14.6, pytest-9.1.1, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>
configfile: pyproject.toml
collected 148 items

../../../src/towncrier/test/test_build.py .....FF........FF............. [ 20%]
............                                                             [ 28%]
../../../src/towncrier/test/test_builder.py .................            [ 39%]
../../../src/towncrier/test/test_check.py ..................F.           [ 53%]
../../../src/towncrier/test/test_create.py ............................. [ 72%]
                                                                         [ 72%]
../../../src/towncrier/test/test_format.py ......                        [ 77%]
../../../src/towncrier/test/test_git.py .                                [ 77%]
../../../src/towncrier/test/test_project.py .............                [ 86%]
../../../src/towncrier/test/test_settings.py ...............             [ 96%]
../../../src/towncrier/test/test_write.py .....                          [100%]

=================================== FAILURES ===================================

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3/dist-packages/twisted/trial/_synctest.py:432: in assertEqual
    super().assertEqual(first, second, msg)
E   twisted.trial.unittest.FailTest: 0 != 1 : Loading template...
E   Finding news fragments...
E   Rendering news fragments...
E   Writing to newsfile...
E   Staging newsfile...
E   I want to remove the following files:
E   /tmp/tmplkml2kph/foo/newsfragments/123.feature
E   Is it okay if I remove those files? [Y/n]:Aborted!
----------------------------- Captured stderr call -----------------------------
fatal: not a git repository (or any of the parent directories): .git
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3/dist-packages/twisted/trial/_synctest.py:432: in assertEqual
    super().assertEqual(first, second, msg)
E   twisted.trial.unittest.FailTest: 0 != 1 : Loading template...
E   Finding news fragments...
E   Rendering news fragments...
E   Writing to newsfile...
E   Staging newsfile...
E   I want to remove the following files:
E   /tmp/tmpn79fm9i_/foo/newsfragments/123.feature
E   Is it okay if I remove those files? [Y/n]:Aborted!
----------------------------- Captured stderr call -----------------------------
fatal: not a git repository (or any of the parent directories): .git
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3/dist-packages/twisted/trial/_synctest.py:432: in assertEqual
    super().assertEqual(first, second, msg)
E   twisted.trial.unittest.FailTest: 0 != 1 : Loading template...
E   Finding news fragments...
E   Rendering news fragments...
E   Writing to newsfile...
E   Staging newsfile...
E   I want to remove the following files:
E   /tmp/tmp0xvl8fos/foo/newsfragments/123.feature
E   Is it okay if I remove those files? [Y/n]:Aborted!
----------------------------- Captured stderr call -----------------------------
fatal: not a git repository (or any of the parent directories): .git
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3/dist-packages/twisted/trial/_synctest.py:432: in assertEqual
    super().assertEqual(first, second, msg)
E   twisted.trial.unittest.FailTest: 0 != 1 : Loading template...
E   Finding news fragments...
E   Rendering news fragments...
E   Writing to newsfile...
E   Staging newsfile...
E   I want to remove the following files:
E   /tmp/tmponbez02s/changes/123.feature
E   Is it okay if I remove those files? [Y/n]:Aborted!
----------------------------- Captured stderr call -----------------------------
fatal: not a git repository (or any of the parent directories): .git
../../../src/towncrier/test/test_check.py:260: TypeError
----------------------------- Captured stdout call -----------------------------
Initialized empty Git repository in /tmp/tmp4a2j6z3p/.git/
[master (root-commit) 4dcfed8] Initial Commit
 3 files changed, 4 insertions(+)
 create mode 100644 foo/__init__.py
 create mode 100644 foo/newsfragments/123.feature
 create mode 100644 pyproject.toml
[otherbranch 929bc48] add a newsfragment
 1 file changed, 1 insertion(+)
 create mode 100644 foo/newsfragments/1234.feature
----------------------------- Captured stderr call -----------------------------
Switched to a new branch 'otherbranch'
=========================== short test summary info ============================
FAILED ../../../src/towncrier/test/test_build.py::TestCli::test_default_start_string
FAILED ../../../src/towncrier/test/test_build.py::TestCli::test_default_start_string_markdown
FAILED ../../../src/towncrier/test/test_build.py::TestCli::test_markdown_injected_after_header
FAILED ../../../src/towncrier/test/test_build.py::TestCli::test_markdown_no_name_title
FAILED ../../../src/towncrier/test/test_check.py::TestChecker::test_none_stdout_encoding_works
======================== 5 failed, 143 passed in 1.51s =========================
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build; python3.14 -m pytest "{dir}"/src/
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.14 --parallel=2 returned exit code 13
make: *** [debian/rules:31: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1143428#10
Date:
2026-08-11 16:23:30 UTC
From:
To:
Hi bignose,

Experimental version fix towncrier, could you upload it ?

If needed I can do a NMU

rouca

#1143428#15
Date:
2026-08-18 01:23:19 UTC
From:
To:
The upload to “unstable” has been pending for some time, waiting for
bug#1138673 <URL: https://bugs.debian.org/1138673> to be resolved.

Yesterday that bug was resolved, and today I have uploaded
‘towncrier/25.8.0-2’ to “unstable”.

#1143428#20
Date:
2026-08-18 01:48:13 UTC
From:
To:
Control: fixed -1 towncrier/25.8.0-1

Thank you for noting this. I am recording that fact, and closing this bug
report.

#1143428#31
Date:
2026-08-20 12:47:16 UTC
From:
To:
Hi Ben,

thanks a lot for uploading the fix. Could you please do a source only
upload so the package can migrate to testing?

excuses:
Migration status for towncrier (24.8.0-2 to 25.8.0-2): BLOCKED: Rejected/violates migration policy/introduces a regression
Issues preventing migration:
∙ ∙ Not built on buildd: arch all binaries uploaded by ben@benfinney.id.au, a new source-only upload is needed to allow migration
∙ ∙ Autopkgtest for sphinxcontrib-towncrier: s390x: Test triggered
∙ ∙ Autopkgtest for towncrier/25.8.0-2: amd64: No tests, superficial or marked flaky ♻ (reference ♻), arm64: No tests, superficial or marked flaky ♻, armhf: No tests, superficial or marked flaky ♻ (reference ♻), i386: No tests, superficial or marked flaky ♻, ppc64el: No tests, superficial or marked flaky ♻ (reference ♻), s390x: Test triggered
∙ ∙ Too young, only 2 of 5 days old
Additional info (not blocking):
∙ ∙ Updating towncrier will fix bugs in testing: #1143428
∙ ∙ Piuparts tested OK - https://piuparts.debian.org/sid/source/t/towncrier.html
∙ ∙ Reproduced on amd64 - info
∙ ∙ Reproduced on arm64 - info
∙ ∙ Reproduced on armhf - info
∙ ∙ Reproduced on i386 - info
Not considered

https://tracker.debian.org/pkg/towncrier

Cheers Jochen