Skip to content
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

test_: status cli migration #6063

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from
Draft

Conversation

fbarbu15
Copy link
Contributor

@fbarbu15 fbarbu15 commented Nov 9, 2024

Changes:

  • added 1-1 message tests
  • added contact request tests
  • updated existing tests to have more consistency with the new tests
  • added linting
  • unified logging

@status-im-auto
Copy link
Member

status-im-auto commented Nov 9, 2024

Jenkins Builds

Click to see older builds (90)
Commit #️⃣ Finished (UTC) Duration Platform Result
✖️ a49cb0f #1 2024-11-09 09:56:55 ~2 min tests 📄log
✔️ a49cb0f #1 2024-11-09 09:58:59 ~4 min ios 📦zip
✔️ a49cb0f #1 2024-11-09 09:59:13 ~4 min tests-rpc 📄log
✔️ a49cb0f #1 2024-11-09 09:59:39 ~4 min macos 📦zip
✔️ a49cb0f #1 2024-11-09 09:59:55 ~5 min linux 📦zip
✔️ a49cb0f #1 2024-11-09 09:59:55 ~5 min android 📦aar
✔️ a49cb0f #1 2024-11-09 10:00:11 ~5 min macos 📦zip
✔️ a49cb0f #1 2024-11-09 10:00:40 ~5 min windows 📦zip
✖️ 6e5a738 #2 2024-11-09 10:01:09 ~1 min tests 📄log
✔️ 6e5a738 #2 2024-11-09 10:03:11 ~3 min tests-rpc 📄log
✔️ 6e5a738 #2 2024-11-09 10:03:32 ~4 min ios 📦zip
✔️ 6e5a738 #2 2024-11-09 10:04:36 ~4 min macos 📦zip
✖️ f36bee0 #3 2024-11-09 10:02:56 ~1 min tests 📄log
✔️ f36bee0 #2 2024-11-09 10:04:40 ~3 min windows 📦zip
✔️ f36bee0 #2 2024-11-09 10:04:45 ~4 min linux 📦zip
✔️ f36bee0 #2 2024-11-09 10:05:32 ~5 min macos 📦zip
✔️ f36bee0 #2 2024-11-09 10:05:42 ~5 min android 📦aar
✔️ f36bee0 #3 2024-11-09 10:07:11 ~3 min tests-rpc 📄log
✔️ f36bee0 #3 2024-11-09 10:07:41 ~4 min ios 📦zip
✔️ f36bee0 #3 2024-11-09 10:09:27 ~4 min linux 📦zip
✔️ f36bee0 #3 2024-11-09 10:09:39 ~4 min macos 📦zip
✔️ f36bee0 #3 2024-11-09 10:10:55 ~5 min android 📦aar
✖️ f51f5f9 #4 2024-11-09 12:13:10 ~2 min tests 📄log
✔️ f51f5f9 #4 2024-11-09 12:14:55 ~3 min tests-rpc 📄log
✔️ f51f5f9 #3 2024-11-09 12:15:16 ~4 min windows 📦zip
✔️ f51f5f9 #4 2024-11-09 12:15:16 ~4 min ios 📦zip
✔️ f51f5f9 #4 2024-11-09 12:15:55 ~4 min macos 📦zip
✔️ f51f5f9 #4 2024-11-09 12:16:06 ~5 min android 📦aar
✔️ f51f5f9 #3 2024-11-09 12:16:16 ~5 min macos 📦zip
✔️ f51f5f9 #4 2024-11-09 12:16:24 ~5 min linux 📦zip
✔️ 90b94a2 #5 2024-11-09 12:19:06 ~4 min tests-rpc 📄log
✔️ 90b94a2 #4 2024-11-09 12:19:11 ~3 min windows 📦zip
✔️ 90b94a2 #5 2024-11-09 12:19:31 ~4 min ios 📦zip
✔️ 90b94a2 #5 2024-11-09 12:20:47 ~4 min macos 📦zip
✔️ 90b94a2 #5 2024-11-09 12:21:19 ~5 min android 📦aar
✔️ 90b94a2 #4 2024-11-09 12:21:36 ~5 min macos 📦zip
✔️ 90b94a2 #5 2024-11-09 12:21:51 ~5 min linux 📦zip
✔️ 90b94a2 #5 2024-11-09 12:47:34 ~34 min tests 📄log
✔️ 90b94a2 #6 2024-11-09 13:19:32 ~31 min tests 📄log
✖️ 75fb38a #6 2024-11-09 18:30:15 ~4 min tests-rpc 📄log
✔️ 75fb38a #5 2024-11-09 18:30:16 ~4 min windows 📦zip
✔️ 75fb38a #6 2024-11-09 18:30:59 ~4 min ios 📦zip
✔️ 75fb38a #6 2024-11-09 18:31:18 ~5 min android 📦aar
✔️ 75fb38a #5 2024-11-09 18:31:21 ~5 min macos 📦zip
✔️ 75fb38a #6 2024-11-09 18:31:34 ~5 min linux 📦zip
✔️ 75fb38a #7 2024-11-09 18:59:06 ~32 min tests 📄log
✔️ 429532f #6 2024-11-09 18:52:24 ~3 min windows 📦zip
✔️ 429532f #7 2024-11-09 18:52:45 ~4 min ios 📦zip
✖️ 429532f #7 2024-11-09 18:53:00 ~4 min tests-rpc 📄log
✔️ 429532f #7 2024-11-09 18:53:30 ~4 min macos 📦zip
✔️ 429532f #7 2024-11-09 18:53:39 ~5 min linux 📦zip
✔️ 429532f #7 2024-11-09 18:53:49 ~5 min android 📦aar
✔️ 429532f #6 2024-11-09 18:53:55 ~5 min macos 📦zip
✔️ 429532f #8 2024-11-09 19:33:06 ~33 min tests 📄log
✔️ 267fb8c #7 2024-11-11 08:05:33 ~3 min windows 📦zip
✖️ 267fb8c #8 2024-11-11 08:05:41 ~4 min tests-rpc 📄log
✔️ 267fb8c #7 2024-11-11 08:06:38 ~5 min macos 📦zip
✔️ 267fb8c #8 2024-11-11 08:06:59 ~5 min linux 📦zip
✔️ 267fb8c #8 2024-11-11 08:07:11 ~5 min android 📦aar
✔️ 267fb8c #8 2024-11-11 08:08:33 ~6 min macos 📦zip
✔️ 267fb8c #8 2024-11-11 08:11:07 ~9 min ios 📦zip
✔️ 267fb8c #9 2024-11-11 08:33:46 ~32 min tests 📄log
✖️ efc6b1a #9 2024-11-11 14:29:11 ~3 min tests-rpc 📄log
✔️ efc6b1a #8 2024-11-11 14:29:48 ~4 min windows 📦zip
✔️ efc6b1a #9 2024-11-11 14:30:28 ~4 min linux 📦zip
✔️ efc6b1a #8 2024-11-11 14:30:39 ~5 min macos 📦zip
✔️ efc6b1a #9 2024-11-11 14:31:15 ~5 min android 📦aar
✔️ efc6b1a #9 2024-11-11 14:32:33 ~6 min macos 📦zip
✔️ efc6b1a #9 2024-11-11 14:34:51 ~9 min ios 📦zip
✔️ efc6b1a #10 2024-11-11 14:59:55 ~34 min tests 📄log
✖️ cd3d55d #10 2024-11-11 14:33:04 ~3 min tests-rpc 📄log
✔️ cd3d55d #9 2024-11-11 14:33:19 ~3 min windows 📦zip
✔️ cd3d55d #10 2024-11-11 14:35:18 ~4 min linux 📦zip
✔️ cd3d55d #9 2024-11-11 14:36:04 ~5 min macos 📦zip
✔️ cd3d55d #10 2024-11-11 14:36:28 ~3 min macos 📦zip
✔️ cd3d55d #10 2024-11-11 14:36:34 ~5 min android 📦aar
✔️ cd3d55d #10 2024-11-11 14:42:47 ~7 min ios 📦zip
✔️ 0fa112a #10 2024-11-11 14:44:16 ~3 min windows 📦zip
✔️ 0fa112a #11 2024-11-11 14:44:25 ~3 min macos 📦zip
✖️ 0fa112a #11 2024-11-11 14:44:29 ~3 min tests-rpc 📄log
✔️ 0fa112a #11 2024-11-11 14:45:42 ~4 min linux 📦zip
✔️ 0fa112a #11 2024-11-11 14:45:49 ~5 min android 📦aar
✔️ 0fa112a #10 2024-11-11 14:45:59 ~5 min macos 📦zip
✔️ 0fa112a #11 2024-11-11 14:50:36 ~7 min ios 📦zip
✔️ b5284cb #12 2024-11-11 14:48:53 ~3 min macos 📦zip
✖️ b5284cb #12 2024-11-11 14:48:54 ~3 min tests-rpc 📄log
✔️ b5284cb #11 2024-11-11 14:48:55 ~3 min windows 📦zip
✔️ b5284cb #12 2024-11-11 14:50:48 ~5 min linux 📦zip
✔️ b5284cb #12 2024-11-11 14:51:11 ~5 min android 📦aar
✔️ b5284cb #11 2024-11-11 14:51:14 ~5 min macos 📦zip
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 8a19451 #13 2024-11-11 14:53:11 ~3 min macos 📦zip
✖️ 8a19451 #13 2024-11-11 14:53:15 ~3 min tests-rpc 📄log
✔️ 8a19451 #12 2024-11-11 14:53:15 ~3 min windows 📦zip
✔️ 8a19451 #13 2024-11-11 14:55:35 ~4 min linux 📦zip
✔️ 8a19451 #13 2024-11-11 14:56:25 ~5 min android 📦aar
✔️ 8a19451 #12 2024-11-11 14:56:48 ~5 min macos 📦zip
✔️ 8a19451 #12 2024-11-11 14:58:05 ~7 min ios 📦zip
✔️ 8a19451 #11 2024-11-11 15:32:44 ~32 min tests 📄log
✔️ 81136cb #13 2024-11-11 15:23:19 ~3 min windows 📦zip
✔️ 81136cb #14 2024-11-11 15:23:27 ~3 min macos 📦zip
✔️ 81136cb #13 2024-11-11 15:23:51 ~4 min ios 📦zip
✔️ 81136cb #14 2024-11-11 15:24:11 ~4 min tests-rpc 📄log
✔️ 81136cb #14 2024-11-11 15:24:27 ~4 min linux 📦zip
✔️ 81136cb #13 2024-11-11 15:24:46 ~5 min macos 📦zip
✔️ 81136cb #14 2024-11-11 15:24:52 ~5 min android 📦aar
✔️ 81136cb #12 2024-11-11 16:04:52 ~32 min tests 📄log

@fbarbu15 fbarbu15 force-pushed the test-status-cli-migration branch 3 times, most recently from 70e6206 to 90b94a2 Compare November 9, 2024 12:13
Copy link

codecov bot commented Nov 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.30%. Comparing base (7ee45ba) to head (81136cb).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #6063      +/-   ##
===========================================
- Coverage    60.92%   60.30%   -0.63%     
===========================================
  Files          814      814              
  Lines       109253   109253              
===========================================
- Hits         66564    65881     -683     
- Misses       34885    35624     +739     
+ Partials      7804     7748      -56     
Flag Coverage Δ
functional 10.79% <ø> (-2.43%) ⬇️
unit 60.20% <ø> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 70 files with indirect coverage changes

@fbarbu15 fbarbu15 marked this pull request as ready for review November 11, 2024 11:13
@fbarbu15 fbarbu15 force-pushed the test-status-cli-migration branch 2 times, most recently from cd3d55d to 0fa112a Compare November 11, 2024 14:40
@fbarbu15 fbarbu15 force-pushed the test-status-cli-migration branch from b5284cb to 8a19451 Compare November 11, 2024 14:49
"NativeCurrencyDecimals": 18,
"IsTest": false,
"Layer": 1,
"Enabled": true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

status-go fails to start with https://ci.status.im/job/status-go/job/prs/job/tests-rpc/job/PR-6063/13/artifact/tests-functional/statusd.log, due to comma in the end of the line, please remove and exclude from formatting

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

"Layer": 1,
"Enabled": true,
}
],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

status-go fails to start with https://ci.status.im/job/status-go/job/prs/job/tests-rpc/job/PR-6063/13/artifact/tests-functional/statusd.log, due to comma in the end of the line, please remove and exclude from formatting

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, fixed

Copy link
Collaborator

@igor-sirotin igor-sirotin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @fbarbu15, great work, thank you ❤️

I didn't yet check the code, but do you think it's possible to split this into 2-3 PRs? E.g.:

  • framework changes
  • common functions
  • test 1-1 chats
  • test communities?

This would greatly simplify the burden of code review, and increase the speed of merging pieces. Otherwise the code review quality is very poor, it's very difficult to keep high concentration for so many changes.

I understand though that it's mostly just migration of existing tests. So even just a separate PR with framework adaptation (which is new code), and then tests on top will be super nice 🙌

@fbarbu15
Copy link
Contributor Author

Hey @fbarbu15, great work, thank you ❤️

I didn't yet check the code, but do you think it's possible to split this into 2-3 PRs? E.g.:

  • framework changes
  • common functions
  • test 1-1 chats
  • test communities?

This would greatly simplify the burden of code review, and increase the speed of merging pieces. Otherwise the code review quality is very poor, it's very difficult to keep high concentration for so many changes.

I understand though that it's mostly just migration of existing tests. So even just a separate PR with framework adaptation (which is new code), and then tests on top will be super nice 🙌

Hi, thanks!
Sure, I will split it but first I've discussed with Anton and he wants to adjust the PR a little so it runs status-backend and tests inside docker containers.
After that, I will work in splitting the PR.
I will move it to draft until then

@fbarbu15 fbarbu15 marked this pull request as draft November 12, 2024 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants