Skip to content
This repository has been 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 bot opened this issue May 26, 2022 · 0 comments
Labels
api: monitoring Issues related to the googleapis/python-monitoring API. flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@flaky-bot
Copy link

flaky-bot bot commented May 26, 2022

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

@flaky-bot flaky-bot bot added flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels May 26, 2022
@product-auto-label product-auto-label bot added the api: monitoring Issues related to the googleapis/python-monitoring API. label May 26, 2022
@parthea parthea closed this as completed May 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: monitoring Issues related to the googleapis/python-monitoring API. flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

1 participant