Invalid proposal processing by SONs #427

Closed
opened 2022-09-05 20:42:13 +00:00 by serkixenos · 18 comments
serkixenos commented 2022-09-05 20:42:13 +00:00 (Migrated from gitlab.com)

Affected version - latest feature/son-for-ethereum branch, commit 23a7a8e80a

Reproduce by running QA environment from feature/son-for-ethereum branch, and do usual tests - deposit, withdraw, active son set update

It appears that sometimes proposals are processed by all existing SONs, instead of active ones:

peerplays-all-in-one_1    | 1296504ms th_�       peerplays_sidechain_plugin.cpp:518 son_processing       ] Scheduled SON: 1.33.2 Sidechain: hive Now: 2022-09-05T19:21:33
peerplays-all-in-one_1    | 1296504ms th_�       peerplays_sidechain_plugin.cpp:518 son_processing       ] Scheduled SON: 1.33.2 Sidechain: bitcoin Now: 2022-09-05T19:21:33
peerplays-all-in-one_1    | 1296504ms th_�       peerplays_sidechain_plugin.cpp:518 son_processing       ] Scheduled SON: 1.33.2 Sidechain: ethereum Now: 2022-09-05T19:21:33
peerplays-all-in-one_1    | 1296513ms th_�       sidechain_net_handler_ethereum.cpp:163 process_proposal     ] Proposal to process: 1.10.1, SON id 1.33.3
peerplays-all-in-one_1    | 1296515ms th_�       sidechain_net_handler_ethereum.cpp:163 process_proposal     ] Proposal to process: 1.10.1, SON id 1.33.4
peerplays-all-in-one_1    | 1296517ms th_�       sidechain_net_handler_ethereum.cpp:163 process_proposal     ] Proposal to process: 1.10.1, SON id 1.33.5
peerplays-all-in-one_1    | 1296518ms th_�       sidechain_net_handler_ethereum.cpp:163 process_proposal     ] Proposal to process: 1.10.1, SON id 1.33.6
peerplays-all-in-one_1    | 1296520ms th_�       sidechain_net_handler_ethereum.cpp:163 process_proposal     ] Proposal to process: 1.10.1, SON id 1.33.7
peerplays-all-in-one_1    | 1296523ms th_�       sidechain_net_handler_ethereum.cpp:163 process_proposal     ] Proposal to process: 1.10.1, SON id 1.33.8
peerplays-all-in-one_1    | 1296525ms th_�       sidechain_net_handler_ethereum.cpp:163 process_proposal     ] Proposal to process: 1.10.1, SON id 1.33.9
peerplays-all-in-one_1    | 1296526ms th_�       sidechain_net_handler_ethereum.cpp:163 process_proposal     ] Proposal to process: 1.10.1, SON id 1.33.10
peerplays-all-in-one_1    | 1296527ms th_�       sidechain_net_handler_ethereum.cpp:163 process_proposal     ] Proposal to process: 1.10.1, SON id 1.33.11
peerplays-all-in-one_1    | 1296528ms th_�       sidechain_net_handler_ethereum.cpp:163 process_proposal     ] Proposal to process: 1.10.1, SON id 1.33.12
peerplays-all-in-one_1    | 1296529ms th_�       sidechain_net_handler_ethereum.cpp:163 process_proposal     ] Proposal to process: 1.10.1, SON id 1.33.13
peerplays-all-in-one_1    | witness_node: /home/peerplays/src/peerplays/libraries/fc/include/fc/optional.hpp:202: T& fc::optional<T>::operator*() [with T = graphene::chain::operation_history_object]: Assertion `_valid' failed.

Active SONs

  ],
  "active_sons": [[
      "bitcoin",[{
          "son_id": "1.33.0",
          "weight": 1,
          "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
          "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275"
        },{
          "son_id": "1.33.1",
          "weight": 1,
          "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
          "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4"
        },{
          "son_id": "1.33.2",
          "weight": 1,
          "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
          "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61"
        },{
          "son_id": "1.33.3",
          "weight": 1,
          "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
          "public_key": "0228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866"
        },{
          "son_id": "1.33.4",
          "weight": 1,
          "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU",
          "public_key": "037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666"
        }
      ]
    ],[
      "ethereum",[{
          "son_id": "1.33.0",
          "weight": 1,
          "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
          "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12"
        },{
          "son_id": "1.33.1",
          "weight": 1,
          "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
          "public_key": "76ce31bd03f601c3fc13732def921c5bac282676"
        },{
          "son_id": "1.33.2",
          "weight": 1,
          "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
          "public_key": "09ee460834498a4ee361beb819470061b7381b49"
        },{
          "son_id": "1.33.3",
          "weight": 1,
          "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
          "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2"
        },{
          "son_id": "1.33.4",
          "weight": 1,
          "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU",
          "public_key": "631e128b16f9adcf1bb6385112b1519c917d77a7"
        }
      ]
    ],[
      "hive",[{
          "son_id": "1.33.0",
          "weight": 1,
          "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
          "public_key": "sonaccount01"
        },{
          "son_id": "1.33.1",
          "weight": 1,
          "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
          "public_key": "sonaccount02"
        },{
          "son_id": "1.33.2",
          "weight": 1,
          "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
          "public_key": "sonaccount03"
        },{
          "son_id": "1.33.3",
          "weight": 1,
          "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
          "public_key": "sonaccount04"
        },{
          "son_id": "1.33.4",
          "weight": 1,
          "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU",
          "public_key": "sonaccount05"
        }
      ]
    ]
  ]
}
Affected version - latest feature/son-for-ethereum branch, commit https://gitlab.com/PBSA/peerplays/-/commit/23a7a8e80ad1c4371bf55fb6ff5ea7391f28ddea Reproduce by running QA environment from feature/son-for-ethereum branch, and do usual tests - deposit, withdraw, active son set update It appears that sometimes proposals are processed by all existing SONs, instead of active ones: ``` peerplays-all-in-one_1 | 1296504ms th_� peerplays_sidechain_plugin.cpp:518 son_processing ] Scheduled SON: 1.33.2 Sidechain: hive Now: 2022-09-05T19:21:33 peerplays-all-in-one_1 | 1296504ms th_� peerplays_sidechain_plugin.cpp:518 son_processing ] Scheduled SON: 1.33.2 Sidechain: bitcoin Now: 2022-09-05T19:21:33 peerplays-all-in-one_1 | 1296504ms th_� peerplays_sidechain_plugin.cpp:518 son_processing ] Scheduled SON: 1.33.2 Sidechain: ethereum Now: 2022-09-05T19:21:33 peerplays-all-in-one_1 | 1296513ms th_� sidechain_net_handler_ethereum.cpp:163 process_proposal ] Proposal to process: 1.10.1, SON id 1.33.3 peerplays-all-in-one_1 | 1296515ms th_� sidechain_net_handler_ethereum.cpp:163 process_proposal ] Proposal to process: 1.10.1, SON id 1.33.4 peerplays-all-in-one_1 | 1296517ms th_� sidechain_net_handler_ethereum.cpp:163 process_proposal ] Proposal to process: 1.10.1, SON id 1.33.5 peerplays-all-in-one_1 | 1296518ms th_� sidechain_net_handler_ethereum.cpp:163 process_proposal ] Proposal to process: 1.10.1, SON id 1.33.6 peerplays-all-in-one_1 | 1296520ms th_� sidechain_net_handler_ethereum.cpp:163 process_proposal ] Proposal to process: 1.10.1, SON id 1.33.7 peerplays-all-in-one_1 | 1296523ms th_� sidechain_net_handler_ethereum.cpp:163 process_proposal ] Proposal to process: 1.10.1, SON id 1.33.8 peerplays-all-in-one_1 | 1296525ms th_� sidechain_net_handler_ethereum.cpp:163 process_proposal ] Proposal to process: 1.10.1, SON id 1.33.9 peerplays-all-in-one_1 | 1296526ms th_� sidechain_net_handler_ethereum.cpp:163 process_proposal ] Proposal to process: 1.10.1, SON id 1.33.10 peerplays-all-in-one_1 | 1296527ms th_� sidechain_net_handler_ethereum.cpp:163 process_proposal ] Proposal to process: 1.10.1, SON id 1.33.11 peerplays-all-in-one_1 | 1296528ms th_� sidechain_net_handler_ethereum.cpp:163 process_proposal ] Proposal to process: 1.10.1, SON id 1.33.12 peerplays-all-in-one_1 | 1296529ms th_� sidechain_net_handler_ethereum.cpp:163 process_proposal ] Proposal to process: 1.10.1, SON id 1.33.13 peerplays-all-in-one_1 | witness_node: /home/peerplays/src/peerplays/libraries/fc/include/fc/optional.hpp:202: T& fc::optional<T>::operator*() [with T = graphene::chain::operation_history_object]: Assertion `_valid' failed. ``` Active SONs ``` ], "active_sons": [[ "bitcoin",[{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "0228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866" },{ "son_id": "1.33.4", "weight": 1, "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU", "public_key": "037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666" } ] ],[ "ethereum",[{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "76ce31bd03f601c3fc13732def921c5bac282676" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "09ee460834498a4ee361beb819470061b7381b49" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2" },{ "son_id": "1.33.4", "weight": 1, "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU", "public_key": "631e128b16f9adcf1bb6385112b1519c917d77a7" } ] ],[ "hive",[{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "sonaccount01" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "sonaccount02" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "sonaccount03" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "sonaccount04" },{ "son_id": "1.33.4", "weight": 1, "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU", "public_key": "sonaccount05" } ] ] ] } ```
serkixenos commented 2022-10-11 00:26:35 +00:00 (Migrated from gitlab.com)

assigned to @timur.5

assigned to @timur.5
timur.5 commented 2022-10-31 13:32:27 +00:00 (Migrated from gitlab.com)

marked this issue as blocked by #18

marked this issue as blocked by #18
timur.5 commented 2022-10-31 13:32:42 +00:00 (Migrated from gitlab.com)

marked this issue as related to #20

marked this issue as related to #20
timur.5 commented 2022-10-31 13:32:50 +00:00 (Migrated from gitlab.com)

removed the relation with #18

removed the relation with #18
timur.5 commented 2022-10-31 13:32:52 +00:00 (Migrated from gitlab.com)

removed the relation with #20

removed the relation with #20
timur.5 commented 2022-10-31 13:33:12 +00:00 (Migrated from gitlab.com)

marked this issue as blocked by PBSA/tools-libs/peerplays-utils#18

marked this issue as blocked by PBSA/tools-libs/peerplays-utils#18
timur.5 commented 2022-10-31 13:33:33 +00:00 (Migrated from gitlab.com)

marked this issue as blocked by PBSA/tools-libs/peerplays-utils#20

marked this issue as blocked by PBSA/tools-libs/peerplays-utils#20
timur.5 commented 2022-10-31 13:37:13 +00:00 (Migrated from gitlab.com)

marked this issue as blocked by PBSA/tools-libs/peerplays-utils#21

marked this issue as blocked by PBSA/tools-libs/peerplays-utils#21
timur.5 commented 2022-10-31 13:41:22 +00:00 (Migrated from gitlab.com)

marked this issue as blocked by PBSA/tools-libs/peerplays-utils#22

marked this issue as blocked by PBSA/tools-libs/peerplays-utils#22
timur.5 commented 2022-10-31 14:12:45 +00:00 (Migrated from gitlab.com)

To be easily reproducible, it requires some Python tests in QA env. be implemented, now mentioned here as blockers: this will make reproduction orders of magnitude faster.

To be easily reproducible, it requires some Python tests in QA env. be implemented, now mentioned here as blockers: this will make reproduction orders of magnitude faster.
timur.5 commented 2022-11-01 20:19:11 +00:00 (Migrated from gitlab.com)

marked this issue as related to PBSA/tools-libs/peerplays-utils#23

marked this issue as related to PBSA/tools-libs/peerplays-utils#23
timur.5 commented 2022-11-01 20:19:20 +00:00 (Migrated from gitlab.com)

removed the relation with PBSA/tools-libs/peerplays-utils#23

removed the relation with PBSA/tools-libs/peerplays-utils#23
timur.5 commented 2022-11-01 20:19:30 +00:00 (Migrated from gitlab.com)

marked this issue as blocked by PBSA/tools-libs/peerplays-utils#23

marked this issue as blocked by PBSA/tools-libs/peerplays-utils#23
timur.5 commented 2022-11-03 15:45:03 +00:00 (Migrated from gitlab.com)

marked this issue as blocked by PBSA/tools-libs/peerplays-utils#25

marked this issue as blocked by PBSA/tools-libs/peerplays-utils#25
timur.5 commented 2022-11-09 12:30:48 +00:00 (Migrated from gitlab.com)

SON deposit/withdrawal tests for Bitcoin, Hive and Ethereum, performed on "develop" branch,
didn't trigger the mentioned crash for the last few weeks.
And mentioned "Proposal to" lines seem to be by design, at least for Ethereum sidechain.

The bug is rather old, and @serkixenos told me that there is a decent probability that it was already fixed.

SON deposit/withdrawal tests for Bitcoin, Hive and Ethereum, performed on "develop" branch, didn't trigger the mentioned crash for the last few weeks. And mentioned "Proposal to" lines seem to be by design, at least for Ethereum sidechain. The bug is rather old, and @serkixenos told me that there is a decent probability that it was already fixed.
timur.5 (Migrated from gitlab.com) closed this issue 2022-11-09 12:31:11 +00:00
timur.5 commented 2022-11-09 13:28:38 +00:00 (Migrated from gitlab.com)

Testcase:

  1. Use "feature/python-SON-tests-5" until MR is merged, "master" otherwise.

  2. Follow "Requirements" section of README.md
    to install python testing framework.

  3. Change directory:

cd peerplays-utils/peerplays-qa-environment/e2e-tests
  1. Stop QA environment:
./main.py --stop

Expected output:

=====                              Stopping all docker containers                              =====
-----                              All docker containers stopped                               -----
  1. Start QA environment:
./main.py --start all --all-in-one

Expected output:

=====                            Starting Bitcoin docker container                             =====
-----                     Docker Bitcoin started, docker id is 440bd60de4                      -----


=====                               Initializing Bitcoin network                               =====
-----                               Bitcoin network initialized                                -----


=====                            Starting Ethereum docker container                            =====
-----                     Docker Ethereum started, docker id is e4c2c46c91                     -----


=====                              Initializing Ethereum network                               =====
-----                               Ethereum network initialized                               -----


=====            Starting Hive docker container and waiting for the Generated block            =====
-----                       Docker Hive started, docker id is 9fe165e1d0                       -----


=====                                Initializing Hive network                                 =====
-----                                 Hive network initialized                                 -----


=====         Starting Peerplays docker containers and waiting for the Generated block         =====
-----                    Docker Peerplays started, docker id is 66dac8c4f0                     -----


=====                              Initializing Peerplays network                              =====
-----                              Peerplays network initialized                               -----
...
  1. Run SON deposit and withdrawal tests for Bitcoin, Hive and Ethereum:
pytest test_btc_son.py test_hive_son.py test_eth_son.py

Expected output:

=============================================================== test session starts ================================================================
platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/bunker/peerplays-utils/peerplays-qa-environment/e2e-tests
collected 6 items

test_btc_son.py .. [33%]
test_hive_son.py .. [66%]
test_eth_son.py .. [100%]       
                                                                                                                   
================================================================ 6 passed in 300.52s ================================================================

If some tests fail, nevermind, especially if those are "test_eth_...".

  1. Issue a command
 docker logs peerplays-qa-environment_peerplays-all-in-one_1 2>&1 | tail

and check that the container is still running and hasn't crashed.

That is, the command above must be successful,
and there must be no crash line in the end of its output, like

peerplays-all-in-one_1    | witness_node: /home/peerplays/src/peerplays/libraries/fc/include/fc/optional.hpp:202: T& fc::optional<T>::operator*() [with T = graphene::chain::operation_history_object]: Assertion `_valid' failed.
Testcase: 0) Use "feature/python-SON-tests-5" until MR is merged, "master" otherwise. 1) Follow ["Requirements" section of README.md](https://gitlab.com/PBSA/tools-libs/peerplays-utils/-/blob/master/peerplays-qa-environment/e2e-tests/README.md#requirements) to install python testing framework. 2) Change directory: ``` cd peerplays-utils/peerplays-qa-environment/e2e-tests ``` 3) Stop QA environment: ``` ./main.py --stop ``` Expected output: ``` ===== Stopping all docker containers ===== ----- All docker containers stopped ----- ``` 4) Start QA environment: ``` ./main.py --start all --all-in-one ``` Expected output: ``` ===== Starting Bitcoin docker container ===== ----- Docker Bitcoin started, docker id is 440bd60de4 ----- ===== Initializing Bitcoin network ===== ----- Bitcoin network initialized ----- ===== Starting Ethereum docker container ===== ----- Docker Ethereum started, docker id is e4c2c46c91 ----- ===== Initializing Ethereum network ===== ----- Ethereum network initialized ----- ===== Starting Hive docker container and waiting for the Generated block ===== ----- Docker Hive started, docker id is 9fe165e1d0 ----- ===== Initializing Hive network ===== ----- Hive network initialized ----- ===== Starting Peerplays docker containers and waiting for the Generated block ===== ----- Docker Peerplays started, docker id is 66dac8c4f0 ----- ===== Initializing Peerplays network ===== ----- Peerplays network initialized ----- ... ``` 5) Run SON deposit and withdrawal tests for Bitcoin, Hive and Ethereum: ``` pytest test_btc_son.py test_hive_son.py test_eth_son.py ``` Expected output: ``` =============================================================== test session starts ================================================================ platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.0.0 rootdir: /home/bunker/peerplays-utils/peerplays-qa-environment/e2e-tests collected 6 items test_btc_son.py .. [33%] test_hive_son.py .. [66%] test_eth_son.py .. [100%] ================================================================ 6 passed in 300.52s ================================================================ ``` If some tests fail, *nevermind*, especially if those are "test_eth_...". 6) Issue a command ``` docker logs peerplays-qa-environment_peerplays-all-in-one_1 2>&1 | tail ``` and check that the container is still running and hasn't crashed. That is, the command above must be successful, and there must be no crash line in the end of its output, like ``` peerplays-all-in-one_1 | witness_node: /home/peerplays/src/peerplays/libraries/fc/include/fc/optional.hpp:202: T& fc::optional<T>::operator*() [with T = graphene::chain::operation_history_object]: Assertion `_valid' failed. ```
timur.5 commented 2022-11-09 13:29:20 +00:00 (Migrated from gitlab.com)

assigned to @wsalloum and @prandnum

assigned to @wsalloum and @prandnum
wsalloum commented 2022-11-09 20:55:18 +00:00 (Migrated from gitlab.com)

Output for pytest test_btc_son.py test_hive_son.py test_eth_son.py

bunker@backend-qa:~/peerplays-utils/peerplays-qa-environment/e2e-tests$ pytest test_btc_son.py test_hive_son.py test_eth_son.py
============================= test session starts ==============================
platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/bunker/peerplays-utils/peerplays-qa-environment/e2e-tests
collected 6 items                                                              

test_btc_son.py ..                                                       [ 33%]
test_hive_son.py ..                                                      [ 66%]
test_eth_son.py FF                                                       [100%]

=================================== FAILURES ===================================
_______________________________ test_eth_deposit ________

No crash after the command docker logs peerplays-qa-environment_peerplays-all-in-one_1 2>&1 | tail


bunker@backend-qa:~/peerplays-utils/peerplays-qa-environment/e2e-tests$  docker logs peerplays-qa-environment_peerplays-all-in-one_1 2>&1 | tail
2805522ms th_�       sidechain_net_handler_ethereum.cpp:639 settle_sidechain_tra ] Not all receipts received for transaction 1.39.0
2805522ms th_�       sidechain_net_handler.cpp:580 operator()           ] Sidechain transaction not settled: 1.39.0
2808000ms th_a       witness.cpp:267               maybe_produce_block  ] slot: 1 scheduled_witness: 1.6.2 scheduled_time: 2022-11-09T20:46:48 now: 2022-11-09T20:46:48 
2808002ms th_a       witness.cpp:191               block_production_loo ] Generated block #300 with timestamp 2022-11-09T20:46:48 at time 2022-11-09T20:46:48
2808502ms th_�       peerplays_sidechain_plugin.cpp:540 son_processing       ] Scheduled SON: 1.33.0 Sidechain: hive Now: 2022-11-09T20:46:45
2808502ms th_�       peerplays_sidechain_plugin.cpp:540 son_processing       ] Scheduled SON: 1.33.0 Sidechain: ethereum Now: 2022-11-09T20:46:45
2808502ms th_�       peerplays_sidechain_plugin.cpp:540 son_processing       ] Scheduled SON: 1.33.0 Sidechain: bitcoin Now: 2022-11-09T20:46:45
2808503ms th_�       sidechain_net_handler.cpp:574 operator()           ] Sidechain transaction to settle: 1.39.0
2808517ms th_�       sidechain_net_handler_ethereum.cpp:639 settle_sidechain_tra ] Not all receipts received for transaction 1.39.0
2808517ms th_�       sidechain_net_handler.cpp:580 operator()           ] Sidechain transaction not settled: 1.39.0

Output for `pytest test_btc_son.py test_hive_son.py test_eth_son.py` ``` bunker@backend-qa:~/peerplays-utils/peerplays-qa-environment/e2e-tests$ pytest test_btc_son.py test_hive_son.py test_eth_son.py ============================= test session starts ============================== platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.0.0 rootdir: /home/bunker/peerplays-utils/peerplays-qa-environment/e2e-tests collected 6 items test_btc_son.py .. [ 33%] test_hive_son.py .. [ 66%] test_eth_son.py FF [100%] =================================== FAILURES =================================== _______________________________ test_eth_deposit ________ ``` No crash after the command `docker logs peerplays-qa-environment_peerplays-all-in-one_1 2>&1 | tail` ``` bunker@backend-qa:~/peerplays-utils/peerplays-qa-environment/e2e-tests$ docker logs peerplays-qa-environment_peerplays-all-in-one_1 2>&1 | tail 2805522ms th_� sidechain_net_handler_ethereum.cpp:639 settle_sidechain_tra ] Not all receipts received for transaction 1.39.0 2805522ms th_� sidechain_net_handler.cpp:580 operator() ] Sidechain transaction not settled: 1.39.0 2808000ms th_a witness.cpp:267 maybe_produce_block ] slot: 1 scheduled_witness: 1.6.2 scheduled_time: 2022-11-09T20:46:48 now: 2022-11-09T20:46:48 2808002ms th_a witness.cpp:191 block_production_loo ] Generated block #300 with timestamp 2022-11-09T20:46:48 at time 2022-11-09T20:46:48 2808502ms th_� peerplays_sidechain_plugin.cpp:540 son_processing ] Scheduled SON: 1.33.0 Sidechain: hive Now: 2022-11-09T20:46:45 2808502ms th_� peerplays_sidechain_plugin.cpp:540 son_processing ] Scheduled SON: 1.33.0 Sidechain: ethereum Now: 2022-11-09T20:46:45 2808502ms th_� peerplays_sidechain_plugin.cpp:540 son_processing ] Scheduled SON: 1.33.0 Sidechain: bitcoin Now: 2022-11-09T20:46:45 2808503ms th_� sidechain_net_handler.cpp:574 operator() ] Sidechain transaction to settle: 1.39.0 2808517ms th_� sidechain_net_handler_ethereum.cpp:639 settle_sidechain_tra ] Not all receipts received for transaction 1.39.0 2808517ms th_� sidechain_net_handler.cpp:580 operator() ] Sidechain transaction not settled: 1.39.0 ```
wsalloum (Migrated from gitlab.com) reopened this issue 2022-11-09 20:55:20 +00:00
wsalloum (Migrated from gitlab.com) closed this issue 2022-11-09 20:56:13 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Peerplays_Blockchain/peerplays_migrated#427
No description provided.