Discussion:
Bug#850236: python-django: FTBFS (AssertionError)
Add Reply
Santiago Vila
2017-01-05 10:10:01 UTC
Reply
Permalink
Raw Message
Package: src:python-django
Version: 1:1.10.3-2
Severity: serious

Dear maintainer:

I tried to build this package in stretch with "dpkg-buildpackage -A"
(which is what the "Arch: all" autobuilder would do to build it)
but it failed:

--------------------------------------------------------------------------------
[...]
debian/rules build-indep
dh build-indep --with sphinxdoc,python2,python3 --buildsystem=pybuild
dh_testdir -i -O--buildsystem=pybuild
dh_update_autotools_config -i -O--buildsystem=pybuild
dh_auto_configure -i -O--buildsystem=pybuild
I: pybuild base:184: python2.7 setup.py config
running config
I: pybuild base:184: python3.5 setup.py config
running config
debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_build
I: pybuild base:184: /usr/bin/python setup.py build

[... snipped ...]

test_options (generic_views.test_base.ViewTest) ... ok
test_options_for_get_and_post_view (generic_views.test_base.ViewTest) ... ok
test_options_for_get_view (generic_views.test_base.ViewTest) ... ok
test_options_for_post_view (generic_views.test_base.ViewTest) ... ok
test_pathological_http_method (generic_views.test_base.ViewTest) ... ok
test_response_without_messages (messages_tests.test_middleware.MiddlewareTest) ... ok
test_script_prefix_set_in_commands (user_commands.tests.CommandRunTests) ... ok

======================================================================
FAIL: test_timesince07 (template_tests.filter_tests.test_timesince.TimesinceTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/<<PKGBUILDDIR>>/django/test/utils.py", line 205, in inner
return func(*args, **kwargs)
File "/<<PKGBUILDDIR>>/tests/template_tests/utils.py", line 61, in inner
func(self)
File "/<<PKGBUILDDIR>>/tests/template_tests/filter_tests/test_timesince.py", line 67, in test_timesince07
self.assertEqual(output, '1\xa0week')
AssertionError: u'6\xa0days' != u'1\xa0week'

======================================================================
FAIL: test_timesince08 (template_tests.filter_tests.test_timesince.TimesinceTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/<<PKGBUILDDIR>>/django/test/utils.py", line 205, in inner
return func(*args, **kwargs)
File "/<<PKGBUILDDIR>>/tests/template_tests/utils.py", line 61, in inner
func(self)
File "/<<PKGBUILDDIR>>/tests/template_tests/filter_tests/test_timesince.py", line 74, in test_timesince08
self.assertEqual(output, '1\xa0week')
AssertionError: u'6\xa0days' != u'1\xa0week'

----------------------------------------------------------------------
Ran 11263 tests in 245.226s

FAILED (failures=2, skipped=1064, expected failures=5)
OK
Destroying test database for alias 'default' (':memory:')...
Destroying test database for alias 'other' (':memory:')...
debian/rules:24: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:12: recipe for target 'build-indep' failed
make: *** [build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------

This is just how the build ends, not necessarily the relevant part.

I've put several build logs here:

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

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 page for this package.

The bug should be reproducible with sbuild on a single CPU virtual machine.
It always fail for me (I tried 10 times in different autobuilders), and it
also fails here:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/python-django.html

Thanks.
Debian Bug Tracking System
2017-01-05 14:30:02 UTC
Reply
Permalink
Raw Message
Your message dated Thu, 5 Jan 2017 15:25:50 +0100
with message-id <***@home.ouaza.com>
and subject line Re: Bug#850236: python-django: FTBFS (AssertionError)
has caused the Debian Bug report #850236,
regarding python-django: FTBFS (AssertionError)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ***@bugs.debian.org
immediately.)
--
850236: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=850236
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Santiago Vila
2017-01-05 15:30:01 UTC
Reply
Permalink
Raw Message
It depends. My goal is to build 25000 source packages in a row and have
0.5 failures on average in total (i.e. closer to 0 than to 1).
If we have 50 packages which FTBFS randomly, they should fail less
than 1% on average.
One week every 4 years is more than 7% of the time. Too much for my taste.
Your mathematics are broken :-)
52 weeks per year, 1 week out of 4 years = 1 / (4*52) = 0.0048 < 0.5%
Ooops! You are right. I did 7/365.25*4 by mistake, not 7/(365.25*4)...

Thanks a lot.

Loading...