Skip to content
This repository was archived by the owner on Aug 30, 2026. It is now read-only.
This repository was archived by the owner on Aug 30, 2026. It is now read-only.

tests.unit.test_policy.TestPolicy: test_from_pb_empty failed #262

Closed

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: 542737d
buildURL: Build Status, Sponge
status: failed

Test output
self = 
def test_from_pb_empty(self):
    from google.iam.v1 import policy_pb2

    empty = frozenset()
    message = policy_pb2.Policy()
    klass = self._get_target_class()
    policy = klass.from_pb(message)
    self.assertEqual(policy.etag, b"")
    self.assertEqual(policy.version, 0)
    self.assertEqual(policy.bigtable_admins, empty)
    self.assertEqual(policy.bigtable_readers, empty)
    self.assertEqual(policy.bigtable_users, empty)
    self.assertEqual(policy.bigtable_viewers, empty)
  self.assertEqual(len(policy), 0)

E AssertionError: 4 != 0

tests/unit/test_policy.py:103: AssertionError

Activity

  1. added
    flakybot: issue
    priority: p1
    type: bug
    on Mar 23, 2021
  2. added
    api: bigtable
    on Mar 23, 2021
  3. flaky-bot commented on Mar 24, 2021

    @flaky-bot
    Author

    commit: 0072732
    buildURL: Build Status, Sponge
    status: failed

    Test output
    self = 
    
    def test_from_pb_empty(self):
        from google.iam.v1 import policy_pb2
    
        empty = frozenset()
        message = policy_pb2.Policy()
        klass = self._get_target_class()
        policy = klass.from_pb(message)
        self.assertEqual(policy.etag, b"")
        self.assertEqual(policy.version, 0)
        self.assertEqual(policy.bigtable_admins, empty)
        self.assertEqual(policy.bigtable_readers, empty)
        self.assertEqual(policy.bigtable_users, empty)
        self.assertEqual(policy.bigtable_viewers, empty)
    
      self.assertEqual(len(policy), 0)
    

    E AssertionError: 4 != 0

    tests/unit/test_policy.py:103: AssertionError

  4. flaky-bot commented on Mar 24, 2021

    @flaky-bot
    Author

    commit: 7d5c7aa
    buildURL: Build Status, Sponge
    status: failed

    Test output
    self = 
    
    def test_from_pb_empty(self):
        from google.iam.v1 import policy_pb2
    
        empty = frozenset()
        message = policy_pb2.Policy()
        klass = self._get_target_class()
        policy = klass.from_pb(message)
        self.assertEqual(policy.etag, b"")
        self.assertEqual(policy.version, 0)
        self.assertEqual(policy.bigtable_admins, empty)
        self.assertEqual(policy.bigtable_readers, empty)
        self.assertEqual(policy.bigtable_users, empty)
        self.assertEqual(policy.bigtable_viewers, empty)
    
      self.assertEqual(len(policy), 0)
    

    E AssertionError: 4 != 0

    tests/unit/test_policy.py:103: AssertionError

  5. added
    priority: p2
    and removed
    priority: p1
    on Mar 29, 2021
  6. added
    flakybot: flaky
    on Mar 30, 2021
  7. flaky-bot commented on Mar 30, 2021

    @flaky-bot
    Author

    Looks like this issue is flaky. 😟

    I'm going to leave this open and stop commenting.

    A human should fix and close this.


    When run at the same commit (7d5c7aa), this test passed in one build (Build Status, Sponge) and failed in another build (Build Status, Sponge).

  8. kolea2 commented on Jun 2, 2021

    @kolea2
    Contributor

    This was a bug in api core which was fixed in googleapis/python-api-core#159

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: bigtableflakybot: flakyflakybot: issuepriority: p2type: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions