Closed james-chf closed 2 years ago
we have ANOMA_LOG_COLOR
env variable to disable/enable ANSI sequenes. Maybe it can help.
e2e::ledger_tests::ledger_many_txs_in_a_block
failed in two consecutive CI runs for ABCI++ but not for ABCI
I am still trying to figure out why e2e::ledger_tests::ledger_many_txs_in_a_block
is failing for ABCI++. It does fail locally for me. The same test does pass in v0.6.1
with ABCI++ so this PR has changed something to make it start failing.
I've tried increasing the consensus timeout and reducing the number of spawned anomac tx
commands from 3 to 1, but the test still fails with errors like:
Error:
0: Reached a timeout for expect type of command
Command: /opt/workspace/heliax/repos/anoma/abcipp/target/debug/anomac --base-dir /var/folders/cy/fxxsxwd56yg67d68vxj6l52h0000gn/T/.tmpiLotIB --mode full transfer --source Bertha --target Albert --token XAN --amount 10.1 --fee-amount 0 --gas-limit 0 --fee-token XAN --ledger-address 127.0.0.1:28657
Needle: Transaction accepted
Interestingly this error happens even though the timeout for that command is 40s and the test completes in less than 40s.
This PR can pass CI now, the test failure was happening as when calling session.with_log
in expectrl, a new instance was returned without the existing session configuration copied over e.g. max timeout. So the test was failing due to too short of a timeout.
I will try integrating https://github.com/anoma/anoma/pull/1188 into this PR
going to make this PR agnostic to expectrl so that it can be used even while we revert to rexpect in https://github.com/anoma/anoma/pull/1219
pls update wasm
I've taken the expectrl logging-to-file out of this PR (maybe we can achieve something similar with rexpect as well though I probably won't have time to work on it soon). Maybe some of the commits in this branch can be squished down but apart from that think this is good to go!
changed back to log with expectrl
merged via https://github.com/anoma/namada/pull/222
Relates to anoma/namada#150
Ctrl+C
to commands rather than just passively waiting for them to finishAnomaCmd
expect failures log the command that the failure happened forIf a failure happens, log command
In any case, log the command being run