Package: src:python-django-test-migrations
Version: 1.3.0-2
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
 debian/rules binary
dh binary --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:129: Building wheel for python3.12 with "build" 
module
I: pybuild base:311: python3.12 -m build --skip-dependency-check --no-isolation --wheel 
--outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-test-migrations
* Building wheel...
Successfully built django_test_migrations-1.3.0-py3-none-any.whl
I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.12 with 
"installer" module
I: pybuild plugin_pyproject:129: Building wheel for python3.11 with "build" 
module
I: pybuild base:311: python3.11 -m build --skip-dependency-check --no-isolation --wheel 
--outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_django-test-migrations
* Building wheel...
Successfully built django_test_migrations-1.3.0-py3-none-any.whl
I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.11 with 
"installer" module
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:311: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-test-migrations/build; 
python3.12 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.12.3, pytest-8.2.1, pluggy-1.5.0
django: settings: django_test_app.settings (from ini)
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-test-migrations/build
configfile: setup.cfg
plugins: django-test-migrations-1.3.0, django-4.5.2, cov-5.0.0, asyncio-0.20.3, 
mock-3.12.0
asyncio: mode=Mode.STRICT
collected 81 items / 1 error

==================================== ERRORS ====================================
______________________ ERROR collecting tests/conftest.py ______________________
import file mismatch:
imported module 'conftest' has this __file__ attribute:
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-test-migrations/build/tests/test_plan/conftest.py
which is not the same as the test file we want to collect:
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-test-migrations/build/tests/conftest.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your 
test file modules
=============================== warnings summary ===============================
../../../../../../usr/lib/python3/dist-packages/django/conf/__init__.py:267
  /usr/lib/python3/dist-packages/django/conf/__init__.py:267: 
RemovedInDjango50Warning: The USE_L10N setting is deprecated. Starting with 
Django 5.0, localized formatting of data will always be enabled. For example 
Django will display numbers and dates using the format of the current locale.
    warnings.warn(USE_L10N_DEPRECATED_MSG, RemovedInDjango50Warning)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

---------- coverage: platform linux, python 3.12.3-final-0 -----------
Name                                                             Stmts   Miss 
Branch BrPart  Cover   Missing
------------------------------------------------------------------------------------------------------------
django_test_migrations/plan.py                                      44     29   
  16      0    25%   40-51, 56, 68-69, 76-86, 112-116, 120-128, 135-136
django_test_migrations/sql.py                                       17     10   
   4      0    33%   15-34, 48-49
django_test_migrations/db/checks/statement_timeout.py               34     19   
   6      0    38%   22-25, 32-51, 63-64, 83-87
django_test_migrations/logic/migrations.py                           6      3   
   2      0    38%   8-10
django_test_migrations/checks/autonames.py                          31     16   
   8      0    38%   28-30, 37-47, 58-84
django_test_migrations/migrator.py                                  34     17   
   4      0    45%   35-39, 43-61, 65-66, 76, 83-84
django_test_migrations/signals.py                                   11      7   
   2      0    46%   9-15
django_test_migrations/db/backends/mysql/configuration.py           14      6   
   6      0    50%   18-25
django_test_migrations/db/backends/postgresql/configuration.py      14      6   
   6      0    50%   18-29
django_test_migrations/db/backends/registry.py                      13      6   
   0      0    54%   32-37
django_test_migrations/contrib/unittest_case.py                     30     12   
   2      0    62%   35-41, 52-55, 58-64
django_test_migrations/exceptions.py                                 6      2   
   0      0    67%   8, 12
django_test_migrations/logic/datetime.py                             3      1   
   0      0    67%   6
django_test_migrations/db/backends/exceptions.py                    10      2   
   0      0    80%   17, 29
django_test_migrations/db/backends/base/configuration.py            18      2      
6      1    88%   23->exit, 28, 38
------------------------------------------------------------------------------------------------------------
TOTAL                                                              307    138   
  70      1    50%

12 files skipped due to complete coverage.
Coverage HTML written to dir htmlcov
Coverage XML written to file coverage.xml

FAIL Required test coverage of 100% not reached. Total coverage: 50.40%
=========================== short test summary info ============================
ERROR tests/conftest.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
========================= 1 warning, 1 error in 0.50s ==========================
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=2: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_django-test-migrations/build; 
python3.12 -m pytest tests
I: pybuild base:311: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_django-test-migrations/build; 
python3.11 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.11.9, pytest-8.2.1, pluggy-1.5.0
django: settings: django_test_app.settings (from ini)
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_django-test-migrations/build
configfile: setup.cfg
plugins: django-test-migrations-1.3.0, django-4.5.2, cov-5.0.0, asyncio-0.20.3, 
mock-3.12.0
asyncio: mode=Mode.STRICT
collected 81 items / 1 error

==================================== ERRORS ====================================
______________________ ERROR collecting tests/conftest.py ______________________
import file mismatch:
imported module 'conftest' has this __file__ attribute:
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_django-test-migrations/build/tests/test_plan/conftest.py
which is not the same as the test file we want to collect:
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_django-test-migrations/build/tests/conftest.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your 
test file modules
=============================== warnings summary ===============================
../../../../../../usr/lib/python3/dist-packages/django/conf/__init__.py:267
  /usr/lib/python3/dist-packages/django/conf/__init__.py:267: 
RemovedInDjango50Warning: The USE_L10N setting is deprecated. Starting with 
Django 5.0, localized formatting of data will always be enabled. For example 
Django will display numbers and dates using the format of the current locale.
    warnings.warn(USE_L10N_DEPRECATED_MSG, RemovedInDjango50Warning)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

---------- coverage: platform linux, python 3.11.9-final-0 -----------
Name                                                             Stmts   Miss 
Branch BrPart  Cover   Missing
------------------------------------------------------------------------------------------------------------
django_test_migrations/plan.py                                      44     29   
  20      0    23%   40-51, 56, 68-69, 76-86, 112-116, 120-128, 135-136
django_test_migrations/sql.py                                       17     10   
   6      0    30%   15-34, 48-49
django_test_migrations/db/checks/statement_timeout.py               34     19   
   6      0    38%   22-25, 32-51, 63-64, 83-87
django_test_migrations/logic/migrations.py                           6      3   
   2      0    38%   8-10
django_test_migrations/checks/autonames.py                          31     16   
   8      0    38%   28-30, 37-47, 58-84
django_test_migrations/migrator.py                                  34     17   
   4      0    45%   35-39, 43-61, 65-66, 76, 83-84
django_test_migrations/signals.py                                   11      7   
   2      0    46%   9-15
django_test_migrations/db/backends/mysql/configuration.py           14      6   
   6      0    50%   18-25
django_test_migrations/db/backends/postgresql/configuration.py      14      6   
   6      0    50%   18-29
django_test_migrations/db/backends/registry.py                      13      6   
   0      0    54%   32-37
django_test_migrations/contrib/unittest_case.py                     30     12   
   2      0    62%   35-41, 52-55, 58-64
django_test_migrations/exceptions.py                                 6      2   
   0      0    67%   8, 12
django_test_migrations/logic/datetime.py                             3      1   
   0      0    67%   6
django_test_migrations/db/backends/exceptions.py                    10      2   
   0      0    80%   17, 29
django_test_migrations/db/backends/base/configuration.py            18      2      
6      1    88%   23->exit, 28, 38
------------------------------------------------------------------------------------------------------------
TOTAL                                                              307    138   
  76      1    50%

12 files skipped due to complete coverage.
Coverage HTML written to dir htmlcov
Coverage XML written to file coverage.xml

FAIL Required test coverage of 100% not reached. Total coverage: 49.61%
=========================== short test summary info ============================
ERROR tests/conftest.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
========================= 1 warning, 1 error in 0.53s ==========================
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=2: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_django-test-migrations/build; 
python3.11 -m pytest tests
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 
3.11" returned exit code 13
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

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

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

If you could not 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 affects, so that this is still visible in the BTS web
page for this package.

Thanks.

Reply via email to