Skip to content

Flaky Test in binding_python / ubuntu-latest / gcs / gcs test_sync_reader #4439

Closed as not planned

Description

@Xuanwo

https://github.com/apache/opendal/actions/runs/8609722871/job/23594156166?pr=4438

service_name = 'gcs'
operator = Operator("gcs", root="/***6d1bf25b-6e02-4503-af37-0d5dfc0fd6b2/", name="***")
async_operator = AsyncOperator("gcs", root="/***6d1bf25b-6e02-4503-af37-0d5dfc0fd6b2/", name="***")

    @pytest.mark.need_capability("read", "write", "delete")
    def test_sync_reader(service_name, operator, async_operator):
        size = randint(1, 1024)
        filename = f"random_file_{str(uuid4())}"
        content = os.urandom(size)
        operator.write(filename, content)
    
        with operator.open(filename, "rb") as reader:
            read_content = reader.read()
            assert read_content is not None
            assert read_content == content
    
        with operator.open(filename, "rb") as reader:
            read_content = reader.read(size + 1)
            assert read_content is not None
>           assert read_content == content
E           assert b'\xf0\x91q|\...8\xbd\xf1\xf4' == b'\xf0\x91q|\...%\xbf\x80\xb9'
E             
E             Full diff:
E               (b'\xf0\x91q|\xa5NGj\xdcf\xbc\xd5\x9f\x0f\xe3#\\\xf7\xd8*\xeb\xd9\xac\r'
E                b'|\xf7\xc7)\x1b\xc0bk\x0f\x97\x82\xd5\xb9#)\xe40\x10\x9f\xd8\x11\x0eP|'
E                b'\x91~\x08\x92<P\x13o\xacF2\xdc\xe1i0kr\x98\xfe,M\x04\x84\xedNl\x0f;'
E                b'\xa8\xe7\xd3D\x85J\xb6\xb7\xb9\x93a\x0b\xb7#\xfd\xbb: Q\xe4\xccw{\x1a'
E                b'"\xbb\xfd\x95o\x95\x83\xec\xee_O\xa2\x88\xb5\x16\xd0sM\x98\xc7\x91\x9f<]'
E                b'\x12\xb9\xd9\xe1}\x92\xd8pv\x8fh\x1d*\xc3\xa7Qm_\xf0\xd2\xe6\xa5C\x02'
E                b"\xdb\xe9O\xc1k\xf5CQ\x1b\x9bP\xe1'\xc1\xae4\x08\xff\xf4T\x9f\x12\xd2\xa0"
E                b'S\xc9\x97\xc0\xb0;\xaf\xc3\x06\xb0\xf0\xd4Y\x1c\x0e\x89>52\x14U0\x97k'
E                b'\x91\xd9\xe7\xcd\xb53\xfdY\x0c\x91X\xb5\xf3Vn\xa4\x17\xd8\x9d\xc9f\xf0\xcfL'
E                b'~\xe4J\x90]!\xfa\x1f\xf3\x18s\x1a/\xee+QW\xde|\xcc\xf3\x10\x04\xcd\xc8j\xab='
E                b'0\xec\xb2\x9d\xaa\x83\n\x7f\x0e\x8d\xbdHn\xf8\x91\xf8\xd7\x8b\x00\x153<\x11t'
E                b'\xda\xb5\x80\xc6\xfb\x15\x89\xb3\x0fct\x97y\x04e\xdf\x9c\xb4\x94\xcd'
E                b'\xcd[\xf6\xd9\x8d\xa0\xf8\\\xd9\x1dIAv\xe1\xd6Zf\xc7\x95X\xb8\xe2\xdc\x8c'
E                b';`\xdeQ<\xec\x05\xf4\x8d.1f\xf3W\xd1\xb9S\xe4\x91\xca\xf7X\xdcd\xd7T[G'
E                b'\xc7ZI\x1b\x14\xb6.$9u\xa8\xfc\xea\x00\xbc\x0e\xd3\xc5\xaaFs\xab\x17\xe2'
E                b'\xe1]\x02d\xd3\xce\xff\xc3h\x17\xae=\x12\x13@\xe1\\\x00\x11\xecV\x7f,\x98'
E                b'\xd6\xd8\x95L\xf6\x81\t\xb6cY4\xdc\xd4\xda\x10\x97\xb9\xed\xb7-\x14\x0b*%'
E                b'\x99\x02\xdc\x07\xf2\xf4\xc8\x02\x900#\xf8\x08\x15\t\x9c\xc7\x17j\xd3'
E                b'\xfaQQ\x89>w\x7f\xe9|\x9b\x99\x9e)|\xde\x95\x1c\xb8c\xf2\xa8\x18f5'
E                b"\x8e\x12X\x8a\x143SW_\xf6'\xa5\x01E%\x8bA\x81\x7f\xdc~\xdeS\xda\xed\xb3\xbb+"
E                b'\xac\xf2.\xfc\xae\xd2\x18\x08E\xc27o>%\x14`3:x\xeb\x15f\xedd4\xfc>1'
E                b'\xcf\xdd\xde\xb3KuG\x96\xe6\xd0%\x19\xcc\xb6\xe2\xd5\xca~\x08O\x88,\x9d\xd3'
E                b'kD\xf30\x16\xed\xe7\x8e\xe5IE\xde\x80\xdc\x19\x84\xb4s{\xabh\x18\xf6\xcd'
E                b'\x80\x1d\x19\x8a\xd1K\xc4Y`w\x9e\x9cKS\x90(3\xb3\xb1@\xc5\x8b!`\xcbqO\x15'
E             -  b'\xdco\x96\xa4\x0fg\t\xbfIS\xc09B\xceJ\xba\x18\xbd\xf1\xf4\x83\xf0\xd3]'
E             ?                                                             -------------
E             +  b'\xdco\x96\xa4\x0fg\t\xbfIS\xc09B\xceJ\xba\x18\xbd\xf1\xf4')
E             ?                                                              +
E             -  b'\xa8R\xe3c\x04\xb0\xc4z\x8f/\x94B\xf1\xd33\x86f\x9c\xc5T-\xd4\xc7\x02'
E             -  b'\xb1c\xf9F\xed<\xcc\x84\x086\xa0B\xf6Z}\x11\x8b\x07\x9f\x15\x94\x91/\xa7'
E             -  b'\xd0\x8ac\x90\xcc.g\xab\xdc\xb15v\x856r\xec(\xb3\xa6\x04\xc0\x84\xc8Q'
E             -  b'iQ\xc7\x9c]\xa1\xb5\xa21\xcdfQ\xe0hf" \x8b\x14\x80x\xb3\xd4\xae\xb0B2\xb9'
E             -  b'\x17]\x11\t\x9a)\x9e\x92\xdb\x01g\xe5JL\xe5\xa0\xa9\xbe<v\xcb\x83\x8c\xc7'
E             -  b'\x8e\xa8\x96\xe6\xb02\x07\x15\x16\x19\x84\xe8HaAQ\xffq\x93\x1c'
E             -  b'\xc8\x98\x92\x82H\xd7\x07Z\xdf+z\xea>\x8e\x8c\xd3kk\xf1Q\x07\x01\x8b\x8e'
E             -  b"\xe3O\x83l~-\xea\x82^\xbdh*'\xa3\xa4(\x89I4\xa1\xe3r\xe4a\x1cNF\x87"
E             -  b's\x96w\xe5\xed\x8a\xd1J\x90\x9f\x04\x98\xe2\x04\x05[%\xbf\x80\xb9')

tests/test_read.py:55: AssertionError

Seems python read doesn't handle correctly? Need more research.

Activity

  1. added
    good first issue
    help wanted
    on Apr 9, 2024
  2. Xuanwo commented on Jun 6, 2024

    @Xuanwo
    MemberAuthor

    Not seen for some time, closing...

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

    bindings/pythongood first issuehelp wantedservices/gcs

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions