tangle-accelerator icon indicating copy to clipboard operation
tangle-accelerator copied to clipboard

CI: Setup testing IRI environment

Open howjmay opened this issue 5 years ago • 7 comments

We currently use public network to process CI which causes transaction hashes disappear and hard to implement MAM unit test. Therefore, we may use docker to setup a IRI with fixed DB.

howjmay avatar Dec 02 '19 07:12 howjmay

I try to use the IRI docker, but it takes about 3-4 mins to startup and cost about 2.27G memory. Maybe we could change the test case to avoid using the same transaction hash, for example, we could send the transaction to get the new transaction hash, then using the new transaction hash to fetch the transaction. 🤔

If we don't want to interact with the mainnet, maybe we just need the testnet.

ender503 avatar Dec 06 '19 10:12 ender503

testnet is absolutely OK for me. So even we used testnet, does IRI still take 4 mins to setup?

howjmay avatar Dec 07 '19 13:12 howjmay

It is my suggestion, start the IRI testnet all the time, and use it to check the test case, so we don't need 4 mins to startup or setup. And we may need to change the test case to avoid the IRI local snapshot. 🤔

ender503 avatar Dec 09 '19 08:12 ender503

We currently run CI on private tangle. It enables us to send value tranasctions.

howjmay avatar Mar 19 '20 07:03 howjmay

@junwei0117 Do you think that the current way that run CI totally on private tangle is a good choice. If so, I will close this issue

howjmay avatar Mar 19 '20 07:03 howjmay

@HowJMay I think that is a good solution because any reaction of the private tangle is exactly the same as the mainnet, but the only thing we need to worry about is the confirmation of the transaction, because there is not enough transaction on the private tangle to ensure that the transaction can be verified, unless we start the Spammer.

junwei0117 avatar Mar 19 '20 13:03 junwei0117

For some reason, I closed the private tangle and started a comnet node. Comnet is composed of only Hornet, and the Hornet behaviour is expected to be the same as the IRI.

junwei0117 avatar Mar 31 '20 23:03 junwei0117