-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dao test cases #3741
Dao test cases #3741
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3741 +/- ##
==========================================
- Coverage 55.58% 55.57% -0.00%
==========================================
Files 598 598
Lines 64521 64521
==========================================
- Hits 35858 35854 -4
- Misses 28663 28667 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cmd/starcoin/src/dev/tests.rs
test_upgrade_module
这个里面的测试流程也跑不过了,测试依赖 以前的 DAO 流程,我觉得可以先屏蔽一下?
看上面的注释可以移到 集成测试中
//TODO replace this with integration-test
#3733 test_upgrade_module 测试 相关 |
)?; | ||
association_execute_should_success(&net, &chain_state, TransactionPayload::Package(package))?; | ||
|
||
assert!(chain_state.is_activated(sip_10000)?); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感觉 sip 的这个机制的测试要保留下,这个不能在 framework 那边测试。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个看起来就是提交了一个新的 module ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
对,用 module 作为 feature flag,主要是 chain_state.is_activated(sip_10000)
这个判断机制。可以留个 TODO
9f6aec3
to
e158e3f
Compare
有一些测试用例 failed,和 #3723 描述类似。@jiangying000 请问有什么解决办法? |
这两个跑了超过60s,超时了
可以把试下函数签名上面的 |
cargo test --package starcoin-chain --test test_epoch_switch -- test_modify_on_chain_config_reward_by_dao --exact --nocapture 这个测试没通过 https://github.com/starcoinorg/starcoin/actions/runs/3081866582/jobs/4980893030#step:10:1663 |
不知道什么原因,有一些测试时间增加了40%,比如:
还有一些测试原本配置的超时时间也都超过了,暂时把超时阈值x3,应该能跑过 |
ok, thx |
52d40e6
to
c029704
Compare
testsuite integration 测试出现一些 failed, 而且不稳定,每次 fail 的用例不完全一样。这可能是什么原因?和该 PR 的改动有关系吗? @jolestar
|
|
感觉就是超时了。 |
我本地运行集成测试没有问题,现在不确定那个 feature 超时是在哪里的调用。 |
用的这个 commit b7957c0 吗? CI 挂了, 我本地也挂了。用 master 就不会挂。 |
用这个分支的最新 commit,运行多次也没问题 |
感觉每次 framework 的 module 增加,都会影响测试的时间。需要确认下根本原因。 |
我先把 timeout 的错误忽略看看 1741d9b |
和这个 watch timeout 参数有关系吗? 可以把 watch timeout 设置长一点? |
已经是 300 秒了,够长了,但看起来是没有等待那么长就返回了。 |
错误提示是 |
这里有用到 future timeout, 现在通过一个 workaround 办法解决了。 @jiangying000 可以帮忙跟踪下 starcoin/rpc/client/src/lib.rs Lines 188 to 203 in a75d1c5
|
ok |
Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Other information