Skip to content

Parisnet protocol and py312 support #21

Parisnet protocol and py312 support

Parisnet protocol and py312 support #21

GitHub Actions / Test Results failed May 15, 2024 in 0s

1 errors, 11 skipped, 1β€ˆ080 pass in 1m 3s

1β€ˆ092 tests   1β€ˆ080 βœ…β€ƒβ€ƒ1m 3s ⏱️
β€‡β€ˆβ€‡β€‡4 suitesβ€ƒβ€ƒβ€‡β€ˆβ€‡11 πŸ’€
β€‡β€ˆβ€‡β€‡4 filesβ€„β€‚β€ƒβ€ƒβ€‡β€ˆβ€‡β€‡0 βŒβ€ƒβ€ƒ1 πŸ”₯

Results for commit 089e557.

Annotations

Check failure on line 0 in tests.sandbox_tests.test_concurrent.ConcurrentTransactionsTestCase

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_1_originate_contract (tests.sandbox_tests.test_concurrent.ConcurrentTransactionsTestCase) with error

sandbox_test_results.xml [took 6s]
Raw output
failed on setup with "pytezos.rpc.node.RpcError: ({'block': 'BLockGenesisGenesisGenesisGenesisGenesisf79b5d1CoW2',
  'id': 'validator.unavailable_protocol',
  'kind': 'temporary',
  'missing_protocol': 'PtParisBQscdCm6Cfow6ndeU6wKJyA3aV1j4D3gQBQMsTQyJCrz'},)"
cls = <class 'test_concurrent.ConcurrentTransactionsTestCase'>

    @classmethod
    def setUpClass(cls) -> None:
>       super().setUpClass()

src/pytezos/sandbox/node.py:197: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
src/pytezos/sandbox/node.py:138: in setUpClass
    cls.node_container.activate(cls.PROTOCOL)
src/pytezos/sandbox/node.py:103: in activate
    return self.client.using(key='dictator').activate_protocol(protocol).fill().sign().inject()
src/pytezos/jupyter.py:90: in __call__
    return method(self.obj, *args, **kwargs)
src/pytezos/block/header.py:179: in fill
    res = self.shell.head.helpers.preapply.block.post(
src/pytezos/jupyter.py:90: in __call__
    return method(self.obj, *args, **kwargs)
src/pytezos/rpc/helpers.py:176: in post
    return self._post(
src/pytezos/rpc/query.py:131: in _post
    return self.node.post(
src/pytezos/rpc/node.py:131: in post
    response = self.request('POST', path, params=params, json=json)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pytezos.rpc.node.RpcNode object at 0x7fb2cc2d56d0>

Node address
http://localhost:8732
method = 'POST', path = '/chains/main/blocks/head/helpers/preapply/block'
kwargs = {'json': {'operations': [], 'protocol_data': {'content': {'command': 'activate', 'fitness': ['02', '00000001', '', 'ff...ZsuB2KiHbZRGFz72XgF6KaKADznh674fQgBatxw3xdHqTtMHUZAGRprxy64wg1aq'}}, 'params': {'sort': True, 'timestamp': 1530374853}}
res = <Response [500]>

    def request(self, method: str, path: str, **kwargs) -> requests.Response:
        """Perform HTTP request to node.
    
        :param method: one of GET/POST/PUT/DELETE
        :param path: path to endpoint
        :param kwargs: requests.request arguments
        :raises RpcError: node has returned an error
        :returns: node response
        """
        logger.debug('>>>>> %s %s\n%s', method, path, json.dumps(kwargs, indent=4))
        res = requests.request(
            method=method,
            url=_urljoin(self.uri[0], path),
            headers={'content-type': 'application/json', 'user-agent': 'PyTezos', **self.headers},
            **kwargs,
        )
        if res.status_code == 401:
            logger.debug('<<<<< %s\n%s', res.status_code, res.text)
            raise RpcError(f'Unauthorized: {path}')
        if res.status_code == 404:
            logger.debug('<<<<< %s\n%s', res.status_code, res.text)
            raise RpcError(f'Not found: {path}')
        if res.status_code != 200:
            logger.debug('<<<<< %s\n%s', res.status_code, pformat(res.text, indent=4))
>           raise RpcError.from_response(res)
E           pytezos.rpc.node.RpcError: ({'block': 'BLockGenesisGenesisGenesisGenesisGenesisf79b5d1CoW2',
E             'id': 'validator.unavailable_protocol',
E             'kind': 'temporary',
E             'missing_protocol': 'PtParisBQscdCm6Cfow6ndeU6wKJyA3aV1j4D3gQBQMsTQyJCrz'},)

src/pytezos/rpc/node.py:117: RpcError