8000 tests.unit.test__dataframe.Test__build_dataframe: test_multiple_labels_with_just_one failed · Issue #328 · googleapis/python-monitoring · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.
This repository was archived by the owner on Dec 31, 2023. It is now read-only.
tests.unit.test__dataframe.Test__build_dataframe: test_multiple_labels_with_just_one failed #328
Closed
@flaky-bot

Description

@flaky-bot

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 78cbcf5
buildURL: Build Status, Sponge
status: failed

Test output
self = 
def test_multiple_labels_with_just_one(self):
    NAME = "instance_id"
    NAMES = [NAME]

    iterable = generate_query_results()
  dataframe = self._call_fut(iterable, labels=NAMES)

tests/unit/test__dataframe.py:136:


tests/unit/test__dataframe.py:88: in _call_fut
return _dataframe._build_dataframe(*args, **kwargs)
google/cloud/monitoring_v3/_dataframe.py:101: in _build_dataframe
data=[_extract_value(point.value) for point in time_series.points],
google/cloud/monitoring_v3/_dataframe.py:101: in
data=[_extract_value(point.value) for point in time_series.points],
google/cloud/monitoring_v3/_dataframe.py:54: in _extract_value
value_type = monitoring_v3.TypedValue.pb(typed_value).WhichOneof("value")


cls = <class 'google.cloud.monitoring_v3.types.common.TypedValue'>
obj = double_value: 0

def pb(cls, obj=None, *, coerce: bool = False):
    """Return the underlying protobuf Message class or instance.

    Args:
        obj: If provided, and an instance of ``cls``, return the
            underlying protobuf instance.
        coerce (bool): If provided, will attempt to coerce ``obj`` to
            ``cls`` if it is not already an instance.
    """
    if obj is None:
        return cls.meta.pb
    if not isinstance(obj, cls):
        if coerce:
            obj = cls(obj)
        else:
          raise TypeError(
                "%r is not an instance of %s"
                % (
                    obj,
                    cls.__name__,
                )
            )

E TypeError: double_value: 0
E is not an instance of TypedValue

.nox/unit-3-8/lib/python3.8/site-packages/proto/message.py:323: TypeError

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: monitoringIssues related to the googleapis/python-monitoring API.flakybot: issueAn issue filed by the Flaky Bot. Should not be added manually.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0