[Pkg-linaro-lava-devel] Bug#1013508: django-testscenarios: FTBFS: ImportError: cannot import name 'reorder_suite' from 'django.test.runner' (/usr/lib/python3/dist-packages/django/test/runner.py)

Lucas Nussbaum lucas at debian.org
Fri Jun 24 08:14:06 BST 2022


Source: django-testscenarios
Version: 0.10-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220624 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> # Run the bundled tests when building the package
> LC_ALL=C python3 setup.py test
> running test
> WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
> running egg_info
> creating django_testscenarios.egg-info
> writing django_testscenarios.egg-info/PKG-INFO
> writing dependency_links to django_testscenarios.egg-info/dependency_links.txt
> writing requirements to django_testscenarios.egg-info/requires.txt
> writing top-level names to django_testscenarios.egg-info/top_level.txt
> writing manifest file 'django_testscenarios.egg-info/SOURCES.txt'
> reading manifest file 'django_testscenarios.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no files found matching '*.html' under directory 'django_testproject/templates'
> adding license file 'COPYING'
> writing manifest file 'django_testscenarios.egg-info/SOURCES.txt'
> running build_ext
> Creating test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
> Found 30 test(s).
> Operations to perform:
>   Synchronize unmigrated apps: django_testscenarios
>   Apply all migrations: (none)
> Synchronizing apps without migrations:
>   Creating tables...
>     Creating table django_testscenarios_testmodel
>     Running deferred SQL...
> Running migrations:
>   No migrations to apply.
> System check identified some issues:
> 
> WARNINGS:
> django_testscenarios.TestModel: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'.
> 	HINT: Configure the DEFAULT_AUTO_FIELD setting or the AppConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
> 
> System check identified 1 issue (0 silenced).
> test_plain_scenarios_test_case_is_moved_to_be_first (django_testscenarios.tests.TestReorderingNotBroken) ... ERROR
> test_plain_scenarios_test_case_stays_first (django_testscenarios.tests.TestReorderingNotBroken) ... ERROR
> test_plain_test_case_is_moved_to_be_first (django_testscenarios.tests.TestReorderingNotBroken) ... ERROR
> test_plain_test_case_stays_first (django_testscenarios.tests.TestReorderingNotBroken) ... ERROR
> test_transaction_scenarios_test_case_is_moved_to_be_last (django_testscenarios.tests.TestReorderingNotBroken) ... ERROR
> test_transaction_scenarios_test_case_stays_last (django_testscenarios.tests.TestReorderingNotBroken) ... ERROR
> test_transaction_test_case_is_moved_to_be_last (django_testscenarios.tests.TestReorderingNotBroken) ... ERROR
> test_transaction_test_case_stays_last (django_testscenarios.tests.TestReorderingNotBroken) ... ERROR
> test_database_is_empty_at_start_of_test_first (django_testscenarios.tests.TestsWorkWithPlainDjangoTestCase) ... ok
> test_database_is_empty_at_start_of_test_second (django_testscenarios.tests.TestsWorkWithPlainDjangoTestCase) ... ok
> test_database_is_empty_at_start_of_test_first (django_testscenarios.tests.TestsWorkWithTestScenariosTestCaseAndNoScenarios)
> test_database_is_empty_at_start_of_test_first (django_testscenarios.tests.TestsWorkWithTestScenariosTestCaseAndNoScenarios) ... ok
> test_database_is_empty_at_start_of_test_second (django_testscenarios.tests.TestsWorkWithTestScenariosTestCaseAndNoScenarios)
> test_database_is_empty_at_start_of_test_second (django_testscenarios.tests.TestsWorkWithTestScenariosTestCaseAndNoScenarios) ... ok
> test_attr_is_set (django_testscenarios.tests.TestsWorkWithTestScenariosTestCaseAndSomeScenarios) (scenario_a)
> test_attr_is_set (django_testscenarios.tests.TestsWorkWithTestScenariosTestCaseAndSomeScenarios) (scenario_a) ... ok
> test_attr_is_set (django_testscenarios.tests.TestsWorkWithTestScenariosTestCaseAndSomeScenarios) (scenario_b)
> test_attr_is_set (django_testscenarios.tests.TestsWorkWithTestScenariosTestCaseAndSomeScenarios) (scenario_b) ... ok
> test_database_is_empty_at_start_of_test_first (django_testscenarios.tests.TestsWorkWithTestScenariosTestCaseAndSomeScenarios) (scenario_a)
> test_database_is_empty_at_start_of_test_first (django_testscenarios.tests.TestsWorkWithTestScenariosTestCaseAndSomeScenarios) (scenario_a) ... ok
> test_database_is_empty_at_start_of_test_first (django_testscenarios.tests.TestsWorkWithTestScenariosTestCaseAndSomeScenarios) (scenario_b)
> test_database_is_empty_at_start_of_test_first (django_testscenarios.tests.TestsWorkWithTestScenariosTestCaseAndSomeScenarios) (scenario_b) ... ok
> test_database_is_empty_at_start_of_test_second (django_testscenarios.tests.TestsWorkWithTestScenariosTestCaseAndSomeScenarios) (scenario_a)
> test_database_is_empty_at_start_of_test_second (django_testscenarios.tests.TestsWorkWithTestScenariosTestCaseAndSomeScenarios) (scenario_a) ... ok
> test_database_is_empty_at_start_of_test_second (django_testscenarios.tests.TestsWorkWithTestScenariosTestCaseAndSomeScenarios) (scenario_b)
> test_database_is_empty_at_start_of_test_second (django_testscenarios.tests.TestsWorkWithTestScenariosTestCaseAndSomeScenarios) (scenario_b) ... ok
> test_database_is_empty_at_start_of_test_first (django_testscenarios.tests.TestsWorkWithTestToolsTestCase)
> test_database_is_empty_at_start_of_test_first (django_testscenarios.tests.TestsWorkWithTestToolsTestCase) ... ok
> test_database_is_empty_at_start_of_test_second (django_testscenarios.tests.TestsWorkWithTestToolsTestCase)
> test_database_is_empty_at_start_of_test_second (django_testscenarios.tests.TestsWorkWithTestToolsTestCase) ... ok
> test_database_is_empty_at_start_of_test_first (django_testscenarios.tests.TransactionsWorkWithPlainDjangoTestCase) ... ok
> test_database_is_empty_at_start_of_test_second (django_testscenarios.tests.TransactionsWorkWithPlainDjangoTestCase) ... ok
> test_transaction_handling (django_testscenarios.tests.TransactionsWorkWithPlainDjangoTestCase) ... ok
> test_database_is_empty_at_start_of_test_first (django_testscenarios.tests.TransactionsWorkWithTestScenariosTestCaseAndNoScenarios)
> test_database_is_empty_at_start_of_test_first (django_testscenarios.tests.TransactionsWorkWithTestScenariosTestCaseAndNoScenarios) ... ok
> test_database_is_empty_at_start_of_test_second (django_testscenarios.tests.TransactionsWorkWithTestScenariosTestCaseAndNoScenarios)
> test_database_is_empty_at_start_of_test_second (django_testscenarios.tests.TransactionsWorkWithTestScenariosTestCaseAndNoScenarios) ... ok
> test_transaction_handling (django_testscenarios.tests.TransactionsWorkWithTestScenariosTestCaseAndNoScenarios)
> test_transaction_handling (django_testscenarios.tests.TransactionsWorkWithTestScenariosTestCaseAndNoScenarios) ... ok
> test_attr_is_set (django_testscenarios.tests.TransactionsWorkWithTestScenariosTestCaseAndSomeScenarios) (scenario_a)
> test_attr_is_set (django_testscenarios.tests.TransactionsWorkWithTestScenariosTestCaseAndSomeScenarios) (scenario_a) ... ok
> test_attr_is_set (django_testscenarios.tests.TransactionsWorkWithTestScenariosTestCaseAndSomeScenarios) (scenario_b)
> test_attr_is_set (django_testscenarios.tests.TransactionsWorkWithTestScenariosTestCaseAndSomeScenarios) (scenario_b) ... ok
> test_database_is_empty_at_start_of_test_first (django_testscenarios.tests.TransactionsWorkWithTestScenariosTestCaseAndSomeScenarios) (scenario_a)
> test_database_is_empty_at_start_of_test_first (django_testscenarios.tests.TransactionsWorkWithTestScenariosTestCaseAndSomeScenarios) (scenario_a) ... ok
> test_database_is_empty_at_start_of_test_first (django_testscenarios.tests.TransactionsWorkWithTestScenariosTestCaseAndSomeScenarios) (scenario_b)
> test_database_is_empty_at_start_of_test_first (django_testscenarios.tests.TransactionsWorkWithTestScenariosTestCaseAndSomeScenarios) (scenario_b) ... ok
> test_database_is_empty_at_start_of_test_second (django_testscenarios.tests.TransactionsWorkWithTestScenariosTestCaseAndSomeScenarios) (scenario_a)
> test_database_is_empty_at_start_of_test_second (django_testscenarios.tests.TransactionsWorkWithTestScenariosTestCaseAndSomeScenarios) (scenario_a) ... ok
> test_database_is_empty_at_start_of_test_second (django_testscenarios.tests.TransactionsWorkWithTestScenariosTestCaseAndSomeScenarios) (scenario_b)
> test_database_is_empty_at_start_of_test_second (django_testscenarios.tests.TransactionsWorkWithTestScenariosTestCaseAndSomeScenarios) (scenario_b) ... ok
> test_transaction_handling (django_testscenarios.tests.TransactionsWorkWithTestScenariosTestCaseAndSomeScenarios) (scenario_a)
> test_transaction_handling (django_testscenarios.tests.TransactionsWorkWithTestScenariosTestCaseAndSomeScenarios) (scenario_a) ... ok
> test_transaction_handling (django_testscenarios.tests.TransactionsWorkWithTestScenariosTestCaseAndSomeScenarios) (scenario_b)
> test_transaction_handling (django_testscenarios.tests.TransactionsWorkWithTestScenariosTestCaseAndSomeScenarios) (scenario_b) ... ok
> test_database_is_empty_at_start_of_test_first (django_testscenarios.tests.TransactionsWorkWithTestToolsTestCase)
> test_database_is_empty_at_start_of_test_first (django_testscenarios.tests.TransactionsWorkWithTestToolsTestCase) ... ok
> test_database_is_empty_at_start_of_test_second (django_testscenarios.tests.TransactionsWorkWithTestToolsTestCase)
> test_database_is_empty_at_start_of_test_second (django_testscenarios.tests.TransactionsWorkWithTestToolsTestCase) ... ok
> test_transaction_handling (django_testscenarios.tests.TransactionsWorkWithTestToolsTestCase)
> test_transaction_handling (django_testscenarios.tests.TransactionsWorkWithTestToolsTestCase) ... ok
> 
> ======================================================================
> ERROR: test_plain_scenarios_test_case_is_moved_to_be_first (django_testscenarios.tests.TestReorderingNotBroken)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/django_testscenarios/tests.py", line 299, in test_plain_scenarios_test_case_is_moved_to_be_first
>     self.ensure_proper_order(
>   File "/<<PKGBUILDDIR>>/django_testscenarios/tests.py", line 255, in ensure_proper_order
>     from django.test.runner import reorder_suite
> ImportError: cannot import name 'reorder_suite' from 'django.test.runner' (/usr/lib/python3/dist-packages/django/test/runner.py)
> 
> ======================================================================
> ERROR: test_plain_scenarios_test_case_stays_first (django_testscenarios.tests.TestReorderingNotBroken)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/django_testscenarios/tests.py", line 304, in test_plain_scenarios_test_case_stays_first
>     self.ensure_proper_order(
>   File "/<<PKGBUILDDIR>>/django_testscenarios/tests.py", line 255, in ensure_proper_order
>     from django.test.runner import reorder_suite
> ImportError: cannot import name 'reorder_suite' from 'django.test.runner' (/usr/lib/python3/dist-packages/django/test/runner.py)
> 
> ======================================================================
> ERROR: test_plain_test_case_is_moved_to_be_first (django_testscenarios.tests.TestReorderingNotBroken)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/django_testscenarios/tests.py", line 289, in test_plain_test_case_is_moved_to_be_first
>     self.ensure_proper_order(
>   File "/<<PKGBUILDDIR>>/django_testscenarios/tests.py", line 255, in ensure_proper_order
>     from django.test.runner import reorder_suite
> ImportError: cannot import name 'reorder_suite' from 'django.test.runner' (/usr/lib/python3/dist-packages/django/test/runner.py)
> 
> ======================================================================
> ERROR: test_plain_test_case_stays_first (django_testscenarios.tests.TestReorderingNotBroken)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/django_testscenarios/tests.py", line 294, in test_plain_test_case_stays_first
>     self.ensure_proper_order(
>   File "/<<PKGBUILDDIR>>/django_testscenarios/tests.py", line 255, in ensure_proper_order
>     from django.test.runner import reorder_suite
> ImportError: cannot import name 'reorder_suite' from 'django.test.runner' (/usr/lib/python3/dist-packages/django/test/runner.py)
> 
> ======================================================================
> ERROR: test_transaction_scenarios_test_case_is_moved_to_be_last (django_testscenarios.tests.TestReorderingNotBroken)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/django_testscenarios/tests.py", line 279, in test_transaction_scenarios_test_case_is_moved_to_be_last
>     self.ensure_proper_order(
>   File "/<<PKGBUILDDIR>>/django_testscenarios/tests.py", line 255, in ensure_proper_order
>     from django.test.runner import reorder_suite
> ImportError: cannot import name 'reorder_suite' from 'django.test.runner' (/usr/lib/python3/dist-packages/django/test/runner.py)
> 
> ======================================================================
> ERROR: test_transaction_scenarios_test_case_stays_last (django_testscenarios.tests.TestReorderingNotBroken)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/django_testscenarios/tests.py", line 274, in test_transaction_scenarios_test_case_stays_last
>     self.ensure_proper_order(
>   File "/<<PKGBUILDDIR>>/django_testscenarios/tests.py", line 255, in ensure_proper_order
>     from django.test.runner import reorder_suite
> ImportError: cannot import name 'reorder_suite' from 'django.test.runner' (/usr/lib/python3/dist-packages/django/test/runner.py)
> 
> ======================================================================
> ERROR: test_transaction_test_case_is_moved_to_be_last (django_testscenarios.tests.TestReorderingNotBroken)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/django_testscenarios/tests.py", line 269, in test_transaction_test_case_is_moved_to_be_last
>     self.ensure_proper_order(
>   File "/<<PKGBUILDDIR>>/django_testscenarios/tests.py", line 255, in ensure_proper_order
>     from django.test.runner import reorder_suite
> ImportError: cannot import name 'reorder_suite' from 'django.test.runner' (/usr/lib/python3/dist-packages/django/test/runner.py)
> 
> ======================================================================
> ERROR: test_transaction_test_case_stays_last (django_testscenarios.tests.TestReorderingNotBroken)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/django_testscenarios/tests.py", line 264, in test_transaction_test_case_stays_last
>     self.ensure_proper_order(
>   File "/<<PKGBUILDDIR>>/django_testscenarios/tests.py", line 255, in ensure_proper_order
>     from django.test.runner import reorder_suite
> ImportError: cannot import name 'reorder_suite' from 'django.test.runner' (/usr/lib/python3/dist-packages/django/test/runner.py)
> 
> ----------------------------------------------------------------------
> Ran 37 tests in 0.090s
> 
> FAILED (errors=8)
> Destroying test database for alias 'default' ('file:memorydb_default?mode=memory&cache=shared')...
> make[1]: *** [debian/rules:17: override_dh_auto_test] Error 8


The full build log is available from:
http://qa-logs.debian.net/2022/06/24/django-testscenarios_0.10-2_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220624;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220624&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Pkg-linaro-lava-devel mailing list