Debian Bug report logs - #850236
python-django: FTBFS (AssertionError)

version graph

Package: src:python-django; Maintainer for src:python-django is Debian Python Team <[email protected]>;

Reported by: Santiago Vila <[email protected]>

Date: Thu, 5 Jan 2017 10:09:19 UTC

Severity: serious

Found in version python-django/1:1.10.3-2

Fixed in version 1:1.10.5-1

Done: Raphael Hertzog <[email protected]>

Bug is archived. No further changes may be made.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], [email protected], Debian Python Modules Team <[email protected]>:
Bug#850236; Package src:python-django. (Thu, 05 Jan 2017 10:09:21 GMT) (full text, mbox, link).


Acknowledgement sent to Santiago Vila <[email protected]>:
New Bug report received and forwarded. Copy sent to [email protected], Debian Python Modules Team <[email protected]>. (Thu, 05 Jan 2017 10:09:21 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

Image
From: Santiago Vila <[email protected]>
To: Debian BTS <[email protected]>
Subject: python-django: FTBFS (AssertionError)
Date: Thu, 05 Jan 2017 10:05:32 +0000
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.



Reply sent to Raphael Hertzog <[email protected]>:
You have taken responsibility. (Thu, 05 Jan 2017 14:27:03 GMT) (full text, mbox, link).


Notification sent to Santiago Vila <[email protected]>:
Bug acknowledged by developer. (Thu, 05 Jan 2017 14:27:03 GMT) (full text, mbox, link).


Message #10 received at [email protected] (full text, mbox, reply):

Image
From: Raphael Hertzog <[email protected]>
To: Santiago Vila <[email protected]>, [email protected]
Subject: Re: Bug#850236: python-django: FTBFS (AssertionError)
Date: Thu, 5 Jan 2017 15:25:50 +0100
Version: 1:1.10.5-1

This is https://code.djangoproject.com/ticket/27637 and has been fixed
in version 1.10.5 that just got uploaded. The failure only happens during
one week every 4 years. So it's not really release critical but we
still want the new version to migrate in testing so it doesn't change
much.

Cheers,

On Thu, 05 Jan 2017, Santiago Vila wrote:
> ======================================================================
> 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'
-- 
Raphaël Hertzog ◈ Debian Developer

Support Debian LTS: http://www.freexian.com/services/debian-lts.html
Learn to master Debian: http://debian-handbook.info/get/



Information forwarded to [email protected], Debian Python Modules Team <[email protected]>:
Bug#850236; Package src:python-django. (Thu, 05 Jan 2017 14:48:06 GMT) (full text, mbox, link).


Acknowledgement sent to Santiago Vila <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian Python Modules Team <[email protected]>. (Thu, 05 Jan 2017 14:48:06 GMT) (full text, mbox, link).


Message #15 received at [email protected] (full text, mbox, reply):

Image
From: Santiago Vila <[email protected]>
To: Raphael Hertzog <[email protected]>
Cc: [email protected]
Subject: Re: Bug#850236: python-django: FTBFS (AssertionError)
Date: Thu, 5 Jan 2017 15:45:32 +0100
On Thu, Jan 05, 2017 at 03:25:50PM +0100, Raphael Hertzog wrote:

> This is https://code.djangoproject.com/ticket/27637 and has been fixed
> in version 1.10.5 that just got uploaded. The failure only happens during
> one week every 4 years.

A whole week? I am not sure the security team would be happy with
being unable to fix critical a bug in a whole week, if such thing ever
happens.

> So it's not really release critical but we still want the new
> version to migrate in testing so it doesn't change much.

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.

Thanks.



Information forwarded to [email protected], Debian Python Modules Team <[email protected]>:
Bug#850236; Package src:python-django. (Thu, 05 Jan 2017 15:09:03 GMT) (full text, mbox, link).


Acknowledgement sent to Raphael Hertzog <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian Python Modules Team <[email protected]>. (Thu, 05 Jan 2017 15:09:03 GMT) (full text, mbox, link).


Message #20 received at [email protected] (full text, mbox, reply):

Image
From: Raphael Hertzog <[email protected]>
To: Santiago Vila <[email protected]>
Cc: [email protected]
Subject: Re: Bug#850236: python-django: FTBFS (AssertionError)
Date: Thu, 5 Jan 2017 16:07:58 +0100
On Thu, 05 Jan 2017, Santiago Vila wrote:
> 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%

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Support Debian LTS: http://www.freexian.com/services/debian-lts.html
Learn to master Debian: http://debian-handbook.info/get/



Information forwarded to [email protected], Debian Python Modules Team <[email protected]>:
Bug#850236; Package src:python-django. (Thu, 05 Jan 2017 15:24:02 GMT) (full text, mbox, link).


Acknowledgement sent to Santiago Vila <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian Python Modules Team <[email protected]>. (Thu, 05 Jan 2017 15:24:02 GMT) (full text, mbox, link).


Message #25 received at [email protected] (full text, mbox, reply):

Image
From: Santiago Vila <[email protected]>
To: Raphael Hertzog <[email protected]>
Cc: [email protected]
Subject: Re: Bug#850236: python-django: FTBFS (AssertionError)
Date: Thu, 5 Jan 2017 16:21:22 +0100
On Thu, Jan 05, 2017 at 04:07:58PM +0100, Raphael Hertzog wrote:
> On Thu, 05 Jan 2017, Santiago Vila wrote:
> > 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.



Bug archived. Request was from Debbugs Internal Request <[email protected]> to [email protected]. (Sun, 12 Feb 2017 07:29:24 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Wed Jan 14 22:18:47 2026; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.