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

[Feature] Enable Sepolia testnet by default #18917

Merged
merged 2 commits into from
Feb 23, 2024

Conversation

smohamedjavid
Copy link
Member

@smohamedjavid smohamedjavid commented Feb 20, 2024

Summary

This PR

  • enables Sepolia test network by default
  • adds a toggle to switch to the Goerli test network

status-go PR: status-im/status-go#4770

Testing notes

A complete testing of Wallet is appreciated.

Platforms

  • Android
  • iOS

Steps to test

  • Open Status
  • Navigate to Profile > Advanced
  • Enable Testnet mode (Make sure the toggle Enable Goerli as test network is OFF)
  • Navigate to the Wallet tab
  • Verify assets from the Sepolia test network are shown
  • Enable Enable Goerli as test network toggle
  • Verify assets from the Goerli test network are shown

status: ready

@smohamedjavid smohamedjavid self-assigned this Feb 20, 2024
@status-im-auto
Copy link
Member

status-im-auto commented Feb 20, 2024

Jenkins Builds

Click to see older builds (16)
Commit #️⃣ Finished (UTC) Duration Platform Result
7957a5d #1 2024-02-20 11:37:53 ~3 min tests 📄log
✔️ 7957a5d #1 2024-02-20 11:41:45 ~7 min android-e2e 🤖apk 📲
✔️ 7957a5d #1 2024-02-20 11:42:33 ~8 min ios 📱ipa 📲
✔️ 7957a5d #1 2024-02-20 11:43:44 ~9 min android 🤖apk 📲
✔️ 4f438e4 #3 2024-02-20 14:54:47 ~6 min android 🤖apk 📲
✔️ 4f438e4 #3 2024-02-20 14:55:27 ~7 min ios 📱ipa 📲
✔️ 4f438e4 #3 2024-02-20 14:56:33 ~8 min android-e2e 🤖apk 📲
✔️ dd2c9a5 #4 2024-02-21 09:43:39 ~6 min android-e2e 🤖apk 📲
✔️ dd2c9a5 #4 2024-02-21 09:43:55 ~7 min ios 📱ipa 📲
✔️ dd2c9a5 #4 2024-02-21 09:44:42 ~8 min android 🤖apk 📲
✔️ e60d82a #5 2024-02-21 10:44:21 ~6 min android 🤖apk 📲
✔️ e60d82a #5 2024-02-21 10:44:32 ~6 min ios 📱ipa 📲
✔️ e60d82a #5 2024-02-21 10:45:17 ~7 min android-e2e 🤖apk 📲
f287f8b #6 2024-02-21 12:27:57 ~3 min android-e2e 📄log
f287f8b #6 2024-02-21 12:29:29 ~4 min android 📄log
f287f8b #6 2024-02-21 12:30:05 ~5 min ios 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 83603a2 #9 2024-02-21 20:21:42 ~5 min tests 📄log
✔️ 83603a2 #7 2024-02-21 20:23:35 ~7 min android-e2e 🤖apk 📲
✔️ 83603a2 #7 2024-02-21 20:23:55 ~8 min android 🤖apk 📲
✔️ 83603a2 #7 2024-02-21 20:24:15 ~8 min ios 📱ipa 📲
✔️ 8ebda94 #10 2024-02-23 10:44:24 ~7 min tests 📄log
✔️ 8ebda94 #8 2024-02-23 10:45:47 ~9 min ios 📱ipa 📲
✔️ 8ebda94 #8 2024-02-23 10:46:06 ~9 min android-e2e 🤖apk 📲
✔️ 8ebda94 #8 2024-02-23 10:46:51 ~10 min android 🤖apk 📲

@smohamedjavid smohamedjavid force-pushed the feature/enable-sepolia-by-default branch 4 times, most recently from dd2c9a5 to e60d82a Compare February 21, 2024 10:37
@smohamedjavid smohamedjavid changed the title [WIP] [Feature] Enable Sepolia testnet by default [Feature] Enable Sepolia testnet by default Feb 21, 2024
@smohamedjavid smohamedjavid requested a review from a team February 21, 2024 10:49
@smohamedjavid smohamedjavid marked this pull request as ready for review February 21, 2024 10:49
Comment on lines +418 to 426
(def ^:const ethereum-mainnet-chain-id 1)
(def ^:const ethereum-goerli-chain-id 5)
(def ^:const ethereum-sepolia-chain-id 11155111)
(def ^:const arbitrum-mainnet-chain-id 42161)
(def ^:const arbitrum-goerli-chain-id 421613)
(def ^:const arbitrum-sepolia-chain-id 421614)
(def ^:const optimism-mainnet-chain-id 10)
(def ^:const optimism-goerli-chain-id 420)
(def ^:const optimism-sepolia-chain-id 11155420)
Copy link
Contributor

Choose a reason for hiding this comment

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

Aren't these changes already being done in another PR?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, This is much needed for this PR. I have included it. Not sure when the other PR will go through testing.
We will fast-track this PR to get this merged.

@smohamedjavid smohamedjavid force-pushed the feature/enable-sepolia-by-default branch from e60d82a to f287f8b Compare February 21, 2024 12:24
@status-im-auto
Copy link
Member

92% of end-end tests have passed

Total executed tests: 48
Failed tests: 3
Expected to fail tests: 1
Passed tests: 44
IDs of failed tests: 702783,703496,703629 
IDs of expected to fail tests: 703503 

Failed tests (3)

Click to expand
  • Rerun failed tests

  • Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:

    1. test_1_1_chat_is_shown_message_sent_delivered_from_offline, id: 702783

    Device 2: Find `Text` by `xpath`: `//*[starts-with(@text,'test message')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']`
    Device 2: Tap on found: Text

    critical/chats/test_1_1_public_chats.py:612: in test_1_1_chat_is_shown_message_sent_delivered_from_offline
        self.errors.verify_no_errors()
    base_test_case.py:191: in verify_no_errors
        pytest.fail('\n '.join([self.errors.pop(0) for _ in range(len(self.errors))]))
     Message was not delivered after resending from offline
    E    Message status was not changed to Delivered, it's Sending after back up online!
    



    Device sessions

    2. test_1_1_chat_mute_chat, id: 703496

    Device 1: Click until ChatMessageInput by accessibility id: chat-message-input will be presented
    Device 1: Looking for a message by text: after unmute

    critical/chats/test_1_1_public_chats.py:653: in test_1_1_chat_mute_chat
        self.errors.verify_no_errors()
    base_test_case.py:191: in verify_no_errors
        pytest.fail('\n '.join([self.errors.pop(0) for _ in range(len(self.errors))]))
     Message text 'should be muted' is not shown in chat preview after mute
    E    Message 'should be muted' is not shown in chat for receiver after mute
    E    New messages counter is not shown after unmute
    E    Message text 'after unmute' is not shown in chat preview after unmute
    E    Message 'after unmute' is not shown in chat for receiver after unmute
    



    Device sessions

    Class TestCommunityMultipleDeviceMergedTwo:

    1. test_community_join_when_node_owner_offline, id: 703629

    Device 2: Looking for community: 'open community'
    Device 2: Click until Text by accessibility id: community-description-text will be presented

    critical/chats/test_public_chat_browsing.py:1177: in test_community_join_when_node_owner_offline
        self.errors.verify_no_errors()
    base_test_case.py:191: in verify_no_errors
        pytest.fail('\n '.join([self.errors.pop(0) for _ in range(len(self.errors))]))
     Text "You joined “closed community”" in shown toast element doesn't match expected "You joined “open community”"
    



    Device sessions

    Expected to fail tests (1)

    Click to expand

    Class TestCommunityOneDeviceMerged:

    1. test_community_discovery, id: 703503

    Test is not run, e2e blocker  
    

    [[reason: [NOTRUN] Curated communities not loading, https://github.com//issues/17852]]

    Passed tests (44)

    Click to expand

    Class TestActivityMultipleDevicePR:

    1. test_navigation_jump_to, id: 702936
    Device sessions

    2. test_activity_center_reply_read_unread_delete_filter_swipe, id: 702947
    Device sessions

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_emoji_send_reply_and_open_link, id: 702782
    Device sessions

    2. test_1_1_chat_text_message_delete_push_disappear, id: 702733
    Device sessions

    3. test_1_1_chat_push_emoji, id: 702813
    Device sessions

    4. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745
    Device sessions

    5. test_1_1_chat_edit_message, id: 702855
    Device sessions

    6. test_1_1_chat_send_image_save_and_share, id: 703391
    Device sessions

    7. test_1_1_chat_pin_messages, id: 702731
    Device sessions

    8. test_1_1_chat_message_reaction, id: 702730
    Device sessions

    Class TestActivityCenterContactRequestMultipleDevicePR:

    1. test_add_contact_field_validation, id: 702777
    Device sessions

    2. test_activity_center_contact_request_accept_swipe_mark_all_as_read, id: 702851
    Device sessions

    3. test_activity_center_contact_request_decline, id: 702850
    Device sessions

    Class TestActivityMultipleDevicePRTwo:

    1. test_activity_center_mentions, id: 702957
    Device sessions

    2. test_activity_center_admin_notification_accept_swipe, id: 702958
    Device sessions

    Class TestCommunityOneDeviceMerged:

    1. test_restore_multiaccount_with_waku_backup_remove_switch, id: 703133
    Device sessions

    2. test_community_copy_and_paste_message_in_chat_input, id: 702742
    Device sessions

    3. test_community_undo_delete_message, id: 702869
    Device sessions

    4. test_community_navigate_to_channel_when_relaunch, id: 702846
    Device sessions

    5. test_community_mute_community_and_channel, id: 703382
    Device sessions

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_several_images_send_reply, id: 703194
    Device sessions

    2. test_community_one_image_send_reply, id: 702859
    Device sessions

    3. test_community_emoji_send_copy_paste_reply, id: 702840
    Device sessions

    4. test_community_mark_all_messages_as_read, id: 703086
    Device sessions

    5. test_community_contact_block_unblock_offline, id: 702894
    Device sessions

    6. test_community_edit_delete_message_when_offline, id: 704615
    Device sessions

    7. test_community_message_delete, id: 702839
    Device sessions

    8. test_community_message_send_check_timestamps_sender_username, id: 702838
    Device sessions

    9. test_community_links_with_previews_github_youtube_twitter_gif_send_enable, id: 702844
    Device sessions

    10. test_community_message_edit, id: 702843
    Device sessions

    11. test_community_unread_messages_badge, id: 702841
    Device sessions

    Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:

    1. test_1_1_chat_delete_via_long_press_relogin, id: 702784
    Device sessions

    Class TestCommunityMultipleDeviceMergedTwo:

    1. test_community_markdown_support, id: 702809
    Device sessions

    2. test_community_hashtag_links_to_community_channels, id: 702948
    Device sessions

    3. test_community_mentions_push_notification, id: 702786
    Device sessions

    4. test_community_leave, id: 702845
    Device sessions

    Class TestGroupChatMultipleDeviceMergedNewUI:

    1. test_group_chat_pin_messages, id: 702732
    Device sessions

    2. test_group_chat_mute_chat, id: 703495
    Device sessions

    3. test_group_chat_send_image_save_and_share, id: 703297
    Device sessions

    4. test_group_chat_reactions, id: 703202
    Device sessions

    5. test_group_chat_join_send_text_messages_push, id: 702807
    Device sessions

    6. test_group_chat_offline_pn, id: 702808
    Device sessions

    Class TestDeepLinksOneDevice:

    1. test_links_open_universal_links_from_chat, id: 704613
    Device sessions

    2. test_links_deep_links, id: 702775
    Device sessions

    @VolodLytvynenko VolodLytvynenko self-assigned this Feb 22, 2024
    @status-im-auto
    Copy link
    Member

    100% of end-end tests have passed

    Total executed tests: 3
    Failed tests: 0
    Expected to fail tests: 0
    Passed tests: 3
    

    Passed tests (3)

    Click to expand

    Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:

    1. test_1_1_chat_mute_chat, id: 703496
    Device sessions

    2. test_1_1_chat_is_shown_message_sent_delivered_from_offline, id: 702783
    Device sessions

    Class TestCommunityMultipleDeviceMergedTwo:

    1. test_community_join_when_node_owner_offline, id: 703629
    Device sessions

    @VolodLytvynenko
    Copy link
    Contributor

    hey @smohamedjavid, thank you for PR. no issues from my side. PR is ready to be merged

    status-im/status-go@23ee898...fa0e662
    
    Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
    status-im/status-go@23ee898...5304406
    
    Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
    @smohamedjavid smohamedjavid force-pushed the feature/enable-sepolia-by-default branch from 83603a2 to 8ebda94 Compare February 23, 2024 10:36
    @smohamedjavid smohamedjavid merged commit 4f5480e into develop Feb 23, 2024
    6 checks passed
    @smohamedjavid smohamedjavid deleted the feature/enable-sepolia-by-default branch February 23, 2024 10:48
    ibrkhalil pushed a commit that referenced this pull request Feb 25, 2024
    This commit:
    - enables Sepolia test network by default
    - adds a toggle to switch to the Goerli test network
    
    Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    Archived in project
    Archived in project
    Development

    Successfully merging this pull request may close these issues.

    5 participants