-
Notifications
You must be signed in to change notification settings - Fork 652
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
Fixing expensive tests #1157
Fixing expensive tests #1157
Conversation
Seems like the nodes just get stuck on block 1. |
There appears to be some issue with too many open files when running all the expensive tests together. I think it might be related to actix, but don't have time right now to look deeply into this. |
Actix opens files? Maybe it is somehow related to actix opening too many sockets me and @evgenykuzyakov can see on our machines that Actix opens ~64k sockets (based on logs). Socket is a file descriptor so maybe that's confusing. Independently on it, expensive tests are really important, because none of the tests in |
Btw, expensive tests do not all run together. There is a special macro But also, you can run tests individually and see that they do not pass. |
Yes I am aware that |
I haven not recorded it. Do they all pass for you when run separately? |
I didn't run all of them (it would take a while), but from about 10 tests I run, all of them pass. I can run all of them if that's desired. But I think it would be helpful if we can fix this problem of too many open files and do not have to run 40 tests manually. |
Okay, now that I pull the most recent commit from this branch I cannot find a test that fails when run individually. However, it would be nice to make it work, because they are otherwise useless. No one is going to run 30 tests by hand, it is equal to not having them. |
While trying to fix the expensive tests after merging with staging, I noticed that the ones that involve running nodes have different behavior than the runtime only tests due to storage rent. Since the behaviors diverge, we cannot use the same code for both runtime unit tests and integration tests. So we should consider either separating the tests (breaking the existing test framework) or relax the conditions. @evgenykuzyakov @nearmax |
The behavior diverges, because in runtime tests, some tests specify the
Genesis config properties around rent.
We have two options:
- also just specify those options in non runtime tests (e.g copy that
setting we have with expensive storage into the other test)
- move Genesis configuration be some part of standard test cases info, like
a each test specifies which Genesis scenario it needs.
…On Thu, Aug 22, 2019, 1:19 AM Bowen Wang ***@***.***> wrote:
While trying to fix the expensive tests after merging with staging, I
noticed that the ones that involve running nodes have different behavior
than the runtime only tests due to storage rent. Since the behaviors
diverge, we cannot use the same code for both runtime unit tests and
integration tests. So we should consider either separating the tests
(breaking the existing test framework) or relax the conditions.
@evgenykuzyakov <https://github.com/evgenykuzyakov> @nearmax
<https://github.com/nearmax>
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#1157>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABK27SOJIQYLXTVWTAY5B3QFXERXANCNFSM4IK44C6A>
.
|
Right now still a bunch of tests with fail in staging: cargo test -p nearcore --all-features failures: |
@SkidanovAlex @bowenwang1996 Is this an abandoned PR? Should it be closed? |
I think this should still be fixed unless we don't want to run those tests any more. |
…ed from client instead of plain string
There might be still some file descriptor leak, but on my laptop with 10k ulimit all |
Codecov Report
@@ Coverage Diff @@
## staging #1157 +/- ##
==========================================
- Coverage 81.21% 78.42% -2.8%
==========================================
Files 169 169
Lines 37905 40633 +2728
==========================================
+ Hits 30785 31865 +1080
- Misses 7120 8768 +1648
Continue to review full report at Codecov.
|
Sure. I cannot approve it since it is on my name. Also, the CI seems to be failing. |
Fixes #1156
RpcError
"send_tx_commit has timed out."