Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

test_metrics fails on both python 2.7 and 3.7 #4167

@pvagner

Description

@pvagner

Description

On both python 2.7 and python 3.7 test_metrics appear to fail for me since Synapse 0.33.8.

Steps to reproduce

  • Download a release
  • Make sure dependencies are installed
  • and run...
$ 	PYTHONPATH=. trial tests
tests.api.test_auth
  AuthTestCase
    test_blocking_mau ...                                                  [OK]
    test_single_insert_fetch ...                                           [OK]

===============================================================================
[SKIPPED]
Disabled by default because it's slow

tests.test_visibility.FilterEventsForServerTestCase.test_large_room
===============================================================================
[ERROR]
Traceback (most recent call last):
  File "/tmp/matrix-synapse/src/synapse-0.33.8/tests/test_metrics.py", line 44, in test_basic
    }, self.get_metrics_from_gauge(gauge))
  File "/tmp/matrix-synapse/src/synapse-0.33.8/tests/test_metrics.py", line 78, in get_metrics_from_gauge
    for _, labels, value in r.samples
  File "/tmp/matrix-synapse/src/synapse-0.33.8/tests/test_metrics.py", line 78, in <dictcomp>
    for _, labels, value in r.samples
exceptions.ValueError: too many values to unpack

tests.test_metrics.TestMauLimit.test_basic
-------------------------------------------------------------------------------
Ran 521 tests in 279.820s

FAILED (skips=1, errors=1, successes=519)

Version information

  • Version: 0.33.8
  • Install method: git clone
  • Platform: Arch linux witch patched glibc running as an OpenVZ container.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions