[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1004606: django-q: autopkgtest regression on armhf and i386



Source: django-q
Version: 1.3.9-2
X-Debbugs-CC: debian-ci@lists.debian.org
Severity: serious
User: debian-ci@lists.debian.org
Usertags: regression

Dear maintainer(s),

With a recent upload of django-q the autopkgtest of django-q fails in testing when that autopkgtest is run with the binary packages of django-q from unstable. It passes when run with only packages from testing. In tabular form:

                       pass            fail
django-q               from testing    1.3.9-2
versioned deps [0]     from testing    from unstable
all others             from testing    from testing

I copied some of the output at the bottom of this report.

Currently this regression is blocking the migration to testing [1]. Can you please investigate the situation and fix it?

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[0] You can see what packages were added from the second line of the log file quoted below. The migration software adds source package from unstable to the list if they are needed to install packages from django-q/1.3.9-2. I.e. due to versioned dependencies or breaks/conflicts.
[1] https://qa.debian.org/excuses.php?package=django-q

https://ci.debian.net/data/autopkgtest/testing/armhf/d/django-q/18808527/log.gz

=================================== FAILURES =================================== _________________________________ test_max_rss _________________________________

broker = <django_q.brokers.redis_broker.Redis object at 0xf44d7b20>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0xf44d7f28>

    @pytest.mark.django_db
    def test_max_rss(broker, monkeypatch):
        # set up the Sentinel
        broker.list_key = "test_max_rss_test:q"
        async_task("django_q.tests.tasks.multiply", 2, 2, broker=broker)
        start_event = Event()
        stop_event = Event()
        cluster_id = uuidlib.uuid4()
        # override settings
        monkeypatch.setattr(Conf, "MAX_RSS", 40000)
        monkeypatch.setattr(Conf, "WORKERS", 1)
        # set a timer to stop the Sentinel
        threading.Timer(3, stop_event.set).start()
s = Sentinel(stop_event, start_event, cluster_id=cluster_id, broker=broker)
        assert start_event.is_set()
        assert s.status() == Conf.STOPPED
      assert s.reincarnations == 1
E       assert 0 == 1
E + where 0 = <django_q.cluster.Sentinel object at 0xf568e640>.reincarnations

tests/test_cluster.py:424: AssertionError
----------------------------- Captured stderr call -----------------------------
02:12:56 [Q] INFO Enqueued 1
02:12:56 [Q] DEBUG Pushed ('eight-louisiana-pasta-summer', '8aef005e7ce344a6845dacd8b847476e')
02:12:56 [Q] INFO Process-1305 ready for work at 3677
02:12:56 [Q] INFO Process-1306 monitoring at 3678
02:12:56 [Q] INFO MainProcess guarding cluster winter-wisconsin-oscar-one
02:12:56 [Q] INFO Process-1307 pushing tasks at 3679
02:12:56 [Q] INFO Q Cluster winter-wisconsin-oscar-one running.
02:12:56 [Q] DEBUG queueing from test_max_rss_test:q
02:12:56 [Q] INFO Process-1305 processing [eight-louisiana-pasta-summer]
02:12:56 [Q] INFO Processed [eight-louisiana-pasta-summer]
02:12:59 [Q] INFO MainProcess stopping cluster processes
02:13:00 [Q] INFO Process-1307 stopped pushing tasks
02:13:00 [Q] INFO Process-1305 stopped doing work
02:13:00 [Q] INFO Process-1306 stopped monitoring results
02:13:00 [Q] INFO MainProcess waiting for the monitor.
=============================== warnings summary ===============================
../../../../usr/lib/python3/dist-packages/django_q/conf.py:139
/usr/lib/python3/dist-packages/django_q/conf.py:139: UserWarning: Retry and timeout are misconfigured. Set retry larger than timeout, failure to do so will cause the tasks to be retriggered before completion. See https://django-q.readthedocs.io/en/latest/configure.html#retry for details.
    warn(

tests/test_scheduler.py::test_scheduler_atomic_transaction_must_specify_a_database_when_no_replicas_are_used
tests/test_scheduler.py::test_scheduler_atomic_transaction_must_specify_no_database_when_read_write_replicas_are_used
tests/test_scheduler.py::test_scheduler_atomic_transaction_must_specify_the_database_based_on_router_redirection
/usr/lib/python3/dist-packages/django/test/utils.py:384: UserWarning: Overriding setting DATABASES can lead to unexpected behavior.
    with self as context:

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================
FAILED tests/test_cluster.py::test_max_rss - assert 0 == 1
======== 1 failed, 40 passed, 3 skipped, 4 warnings in 73.90s (0:01:13) ========
autopkgtest [02:13:09]: test python3-django-q

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Reply to: