Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 564250 - dev-python/django-celery-3.1.16: fails python test suites
Summary: dev-python/django-celery-3.1.16: fails python test suites
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL: https://github.com/celery/django-cele...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-27 09:18 UTC by Sam Jorna (wraeth) (RETIRED)
Modified: 2015-10-27 09:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,36.47 KB, text/plain)
2015-10-27 09:18 UTC, Sam Jorna (wraeth) (RETIRED)
Details
Upstream patch to resolve test failures (django-celery-3.1.16-py3-test-failures.patch,1.51 KB, patch)
2015-10-27 09:19 UTC, Sam Jorna (wraeth) (RETIRED)
Details | Diff
django-celery-3.1.16.ebuild.patch (django-celery-3.1.16.ebuild.patch,1.29 KB, patch)
2015-10-27 09:20 UTC, Sam Jorna (wraeth) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Jorna (wraeth) (RETIRED) gentoo-dev 2015-10-27 09:18:01 UTC
Created attachment 415576 [details]
build.log

As per upstream issue report, when built with FEATURES=test the following tests fail for python3:

test_list_registered_tasks
test_apply

Additionally, missing dependency on dev-lang/python[sqlite] and further failed tests when built against dev-python/django-1.8.5.
Comment 1 Sam Jorna (wraeth) (RETIRED) gentoo-dev 2015-10-27 09:19:18 UTC
Created attachment 415578 [details, diff]
Upstream patch to resolve test failures

Patch sourced from upstream issue report in this bugs URL.
Comment 2 Sam Jorna (wraeth) (RETIRED) gentoo-dev 2015-10-27 09:20:46 UTC
Created attachment 415580 [details, diff]
django-celery-3.1.16.ebuild.patch

Patch for ebuild that applies django-celery-3.1.16-py3-test-failures.patch and corrects dependencies.
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2015-10-27 09:32:58 UTC
....................................EEEEEEEEEE.E..................
======================================================================
ERROR: test_all_as_schedule (djcelery.tests.test_schedulers.test_DatabaseScheduler)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/tests/test_schedulers.py", line 115, in setUp
    obj.save()
  File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/models.py", line 273, in save
    super(PeriodicTask, self).save(*args, **kwargs)
  File "/usr/lib64/python3.4/site-packages/django/db/models/base.py", line 685, in save
    "unsaved related object '%s'." % field.name
ValueError: save() prohibited to prevent data loss due to unsaved related object 'interval'.

======================================================================
ERROR: test_constructor (djcelery.tests.test_schedulers.test_DatabaseScheduler)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/tests/test_schedulers.py", line 115, in setUp
    obj.save()
  File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/models.py", line 273, in save
    super(PeriodicTask, self).save(*args, **kwargs)
  File "/usr/lib64/python3.4/site-packages/django/db/models/base.py", line 685, in save
    "unsaved related object '%s'." % field.name
ValueError: save() prohibited to prevent data loss due to unsaved related object 'interval'.

======================================================================
ERROR: test_reserve (djcelery.tests.test_schedulers.test_DatabaseScheduler)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/tests/test_schedulers.py", line 115, in setUp
    obj.save()
  File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/models.py", line 273, in save
    super(PeriodicTask, self).save(*args, **kwargs)
  File "/usr/lib64/python3.4/site-packages/django/db/models/base.py", line 685, in save
    "unsaved related object '%s'." % field.name
ValueError: save() prohibited to prevent data loss due to unsaved related object 'interval'.

======================================================================
ERROR: test_schedule_changed (djcelery.tests.test_schedulers.test_DatabaseScheduler)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/tests/test_schedulers.py", line 115, in setUp
    obj.save()
  File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/models.py", line 273, in save
    super(PeriodicTask, self).save(*args, **kwargs)
  File "/usr/lib64/python3.4/site-packages/django/db/models/base.py", line 685, in save
    "unsaved related object '%s'." % field.name
ValueError: save() prohibited to prevent data loss due to unsaved related object 'interval'.

======================================================================
ERROR: test_should_sync (djcelery.tests.test_schedulers.test_DatabaseScheduler)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/tests/test_schedulers.py", line 115, in setUp
    obj.save()
  File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/models.py", line 273, in save
    super(PeriodicTask, self).save(*args, **kwargs)
  File "/usr/lib64/python3.4/site-packages/django/db/models/base.py", line 685, in save
    "unsaved related object '%s'." % field.name
ValueError: save() prohibited to prevent data loss due to unsaved related object 'interval'.

======================================================================
ERROR: test_sync_not_dirty (djcelery.tests.test_schedulers.test_DatabaseScheduler)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/tests/test_schedulers.py", line 115, in setUp
    obj.save()
  File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/models.py", line 273, in save
    super(PeriodicTask, self).save(*args, **kwargs)
  File "/usr/lib64/python3.4/site-packages/django/db/models/base.py", line 685, in save
    "unsaved related object '%s'." % field.name
ValueError: save() prohibited to prevent data loss due to unsaved related object 'interval'.

======================================================================
ERROR: test_sync_object_gone (djcelery.tests.test_schedulers.test_DatabaseScheduler)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/tests/test_schedulers.py", line 115, in setUp
    obj.save()
  File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/models.py", line 273, in save
    super(PeriodicTask, self).save(*args, **kwargs)
  File "/usr/lib64/python3.4/site-packages/django/db/models/base.py", line 685, in save
    "unsaved related object '%s'." % field.name
ValueError: save() prohibited to prevent data loss due to unsaved related object 'interval'.

======================================================================
ERROR: test_sync_rollback_on_save_error (djcelery.tests.test_schedulers.test_DatabaseScheduler)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/tests/test_schedulers.py", line 115, in setUp
    obj.save()
  File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/models.py", line 273, in save
    super(PeriodicTask, self).save(*args, **kwargs)
  File "/usr/lib64/python3.4/site-packages/django/db/models/base.py", line 685, in save
    "unsaved related object '%s'." % field.name
ValueError: save() prohibited to prevent data loss due to unsaved related object 'interval'.

======================================================================
ERROR: test_sync_saves_last_run_at (djcelery.tests.test_schedulers.test_DatabaseScheduler)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/tests/test_schedulers.py", line 115, in setUp
    obj.save()
  File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/models.py", line 273, in save
    super(PeriodicTask, self).save(*args, **kwargs)
  File "/usr/lib64/python3.4/site-packages/django/db/models/base.py", line 685, in save
    "unsaved related object '%s'." % field.name
ValueError: save() prohibited to prevent data loss due to unsaved related object 'interval'.

======================================================================
ERROR: test_sync_syncs_before_save (djcelery.tests.test_schedulers.test_DatabaseScheduler)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/tests/test_schedulers.py", line 115, in setUp
    obj.save()
  File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/models.py", line 273, in save
    super(PeriodicTask, self).save(*args, **kwargs)
  File "/usr/lib64/python3.4/site-packages/django/db/models/base.py", line 685, in save
    "unsaved related object '%s'." % field.name
ValueError: save() prohibited to prevent data loss due to unsaved related object 'interval'.

======================================================================
ERROR: test_track_changes (djcelery.tests.test_schedulers.test_model_PeriodicTasks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/tests/test_schedulers.py", line 286, in test_track_changes
    m1.save()
  File "/var/tmp/portage/dev-python/django-celery-3.1.16-r1/work/django-celery-3.1.16/djcelery/models.py", line 273, in save
    super(PeriodicTask, self).save(*args, **kwargs)
  File "/usr/lib64/python3.4/site-packages/django/db/models/base.py", line 685, in save
    "unsaved related object '%s'." % field.name
ValueError: save() prohibited to prevent data loss due to unsaved related object 'interval'.

----------------------------------------------------------------------
Ran 66 tests in 0.164s
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2015-10-27 09:55:14 UTC
commit 919a19fb17521df84f592cf4a7227edf88b2ba76
Author: Ian Delaney <idella4@gentoo.org>
Date:   Tue Oct 27 17:53:43 2015 +0800

    dev-python/django-celery: patch to fix broken tests
    
    patch from upstream submitted via the gentoo bug and runtested
    by 'wraeth', drop py3.3 support, add missed PYTHON_REQ_USE value
    for sqlite, set required bordering to django subsequent to
    runtesting, fixes the gentoo bug
    
    Gentoo bug: #564250