status-im / status-mobile

a free (libre) open source, mobile OS for Ethereum
https://status.app
Mozilla Public License 2.0
3.92k stars 984 forks source link

chore_: add env STATUS_BACKEND_SERVER_MEDIA_SERVER_ENABLE_TLS #21648

Closed qfrank closed 3 days ago

qfrank commented 5 days ago

address review feedback from @igor-sirotin

relate status-go PR

status-im-auto commented 5 days ago

Jenkins Builds

Click to see older builds (12) | :grey_question: | Commit | :hash: | Finished (UTC) | Duration | Platform | Result | |-|-|-|-|-|-|-| | :heavy_check_mark: | 8d9c8fc8 | [#1](https://ci.status.im/job/status-mobile/job/prs/job/tests/job/PR-21648/1/) | 2024-11-20 14:07:17 | ~7 min | `tests` | [:page_facing_up:`log`](https://status-im-mobile-prs.ams3.cdn.digitaloceanspaces.com/StatusIm-Mobile-241120-140006-8d9c8f-pr21648-tests.log) | | :heavy_check_mark: | 8d9c8fc8 | [#1](https://ci.status.im/job/status-mobile/job/prs/job/android-e2e/job/PR-21648/1/) | 2024-11-20 14:09:02 | ~8 min | `android-e2e` | [:robot:`apk`](https://status-im-mobile-prs.ams3.cdn.digitaloceanspaces.com/StatusIm-Mobile-241120-140006-8d9c8f-pr21648-x86_64.apk) [:calling:](https://chart.apis.google.com/chart?cht=qr&chs=400x400&chld=L%7C%0A1&chl=https%3A%2F%2Fstatus-im-mobile-prs.ams3.cdn.digitaloceanspaces.com%2FStatusIm-Mobile-241120-140006-8d9c8f-pr21648-x86_64.apk)| | :heavy_check_mark: | 8d9c8fc8 | [#1](https://ci.status.im/job/status-mobile/job/prs/job/android/job/PR-21648/1/) | 2024-11-20 14:09:51 | ~9 min | `android` | [:robot:`apk`](https://status-im-mobile-prs.ams3.cdn.digitaloceanspaces.com/StatusIm-Mobile-241120-140006-8d9c8f-pr21648-arm64-v8a.apk) [:calling:](https://chart.apis.google.com/chart?cht=qr&chs=400x400&chld=L%7C%0A1&chl=https%3A%2F%2Fstatus-im-mobile-prs.ams3.cdn.digitaloceanspaces.com%2FStatusIm-Mobile-241120-140006-8d9c8f-pr21648-arm64-v8a.apk)| | :heavy_check_mark: | 8d9c8fc8 | [#1](https://ci.status.im/job/status-mobile/job/prs/job/ios/job/PR-21648/1/) | 2024-11-20 14:10:21 | ~10 min | `ios` | [:iphone:`ipa`](https://i.diawi.com/6yE9GD) [:calling:](https://chart.apis.google.com/chart?cht=qr&chs=400x400&chld=L%7C%0A1&chl=https%3A%2F%2Fi.diawi.com%2F6yE9GD)| | | | | | | | | | :heavy_check_mark: | 57aedafe | [#2](https://ci.status.im/job/status-mobile/job/prs/job/tests/job/PR-21648/2/) | 2024-11-21 07:42:46 | ~5 min | `tests` | [:page_facing_up:`log`](https://status-im-mobile-prs.ams3.cdn.digitaloceanspaces.com/StatusIm-Mobile-241121-073651-57aeda-pr21648-tests.log) | | :heavy_check_mark: | 57aedafe | [#2](https://ci.status.im/job/status-mobile/job/prs/job/android/job/PR-21648/2/) | 2024-11-21 07:45:37 | ~8 min | `android` | [:robot:`apk`](https://status-im-mobile-prs.ams3.cdn.digitaloceanspaces.com/StatusIm-Mobile-241121-073646-57aeda-pr21648-arm64-v8a.apk) [:calling:](https://chart.apis.google.com/chart?cht=qr&chs=400x400&chld=L%7C%0A1&chl=https%3A%2F%2Fstatus-im-mobile-prs.ams3.cdn.digitaloceanspaces.com%2FStatusIm-Mobile-241121-073646-57aeda-pr21648-arm64-v8a.apk)| | :heavy_check_mark: | 57aedafe | [#2](https://ci.status.im/job/status-mobile/job/prs/job/android-e2e/job/PR-21648/2/) | 2024-11-21 07:46:12 | ~9 min | `android-e2e` | [:robot:`apk`](https://status-im-mobile-prs.ams3.cdn.digitaloceanspaces.com/StatusIm-Mobile-241121-073646-57aeda-pr21648-x86_64.apk) [:calling:](https://chart.apis.google.com/chart?cht=qr&chs=400x400&chld=L%7C%0A1&chl=https%3A%2F%2Fstatus-im-mobile-prs.ams3.cdn.digitaloceanspaces.com%2FStatusIm-Mobile-241121-073646-57aeda-pr21648-x86_64.apk)| | :heavy_check_mark: | 57aedafe | [#2](https://ci.status.im/job/status-mobile/job/prs/job/ios/job/PR-21648/2/) | 2024-11-21 07:47:16 | ~10 min | `ios` | [:iphone:`ipa`](https://i.diawi.com/3unZg1) [:calling:](https://chart.apis.google.com/chart?cht=qr&chs=400x400&chld=L%7C%0A1&chl=https%3A%2F%2Fi.diawi.com%2F3unZg1)| | | | | | | | | | :heavy_check_mark: | 0b029490 | [#3](https://ci.status.im/job/status-mobile/job/prs/job/tests/job/PR-21648/3/) | 2024-11-21 11:24:43 | ~6 min | `tests` | [:page_facing_up:`log`](https://status-im-mobile-prs.ams3.cdn.digitaloceanspaces.com/StatusIm-Mobile-241121-111832-0b0294-pr21648-tests.log) | | :heavy_check_mark: | 0b029490 | [#3](https://ci.status.im/job/status-mobile/job/prs/job/android-e2e/job/PR-21648/3/) | 2024-11-21 11:28:10 | ~9 min | `android-e2e` | [:robot:`apk`](https://status-im-mobile-prs.ams3.cdn.digitaloceanspaces.com/StatusIm-Mobile-241121-111831-0b0294-pr21648-x86_64.apk) [:calling:](https://chart.apis.google.com/chart?cht=qr&chs=400x400&chld=L%7C%0A1&chl=https%3A%2F%2Fstatus-im-mobile-prs.ams3.cdn.digitaloceanspaces.com%2FStatusIm-Mobile-241121-111831-0b0294-pr21648-x86_64.apk)| | :heavy_check_mark: | 0b029490 | [#3](https://ci.status.im/job/status-mobile/job/prs/job/android/job/PR-21648/3/) | 2024-11-21 11:28:42 | ~10 min | `android` | [:robot:`apk`](https://status-im-mobile-prs.ams3.cdn.digitaloceanspaces.com/StatusIm-Mobile-241121-111831-0b0294-pr21648-arm64-v8a.apk) [:calling:](https://chart.apis.google.com/chart?cht=qr&chs=400x400&chld=L%7C%0A1&chl=https%3A%2F%2Fstatus-im-mobile-prs.ams3.cdn.digitaloceanspaces.com%2FStatusIm-Mobile-241121-111831-0b0294-pr21648-arm64-v8a.apk)| | :heavy_check_mark: | 0b029490 | [#3](https://ci.status.im/job/status-mobile/job/prs/job/ios/job/PR-21648/3/) | 2024-11-21 11:30:53 | ~12 min | `ios` | [:iphone:`ipa`](https://i.diawi.com/gTWT8u) [:calling:](https://chart.apis.google.com/chart?cht=qr&chs=400x400&chld=L%7C%0A1&chl=https%3A%2F%2Fi.diawi.com%2FgTWT8u)|
:grey_question: Commit :hash: Finished (UTC) Duration Platform Result
:heavy_check_mark: f0fd7dff #4 2024-11-21 14:33:27 ~5 min tests :page_facing_up:log
:heavy_check_mark: f0fd7dff #4 2024-11-21 14:36:23 ~8 min android-e2e :robot:apk :calling:
:heavy_check_mark: f0fd7dff #4 2024-11-21 14:37:08 ~9 min android :robot:apk :calling:
:heavy_check_mark: f0fd7dff #4 2024-11-21 14:38:29 ~10 min ios :iphone:ipa :calling:
:heavy_check_mark: 1d5731c2 #5 2024-11-22 02:36:25 ~5 min tests :page_facing_up:log
:heavy_check_mark: 1d5731c2 #5 2024-11-22 02:39:36 ~8 min android :robot:apk :calling:
:heavy_check_mark: 1d5731c2 #5 2024-11-22 02:39:51 ~9 min android-e2e :robot:apk :calling:
:heavy_check_mark: 1d5731c2 #5 2024-11-22 02:41:04 ~10 min ios :iphone:ipa :calling:
status-im-auto commented 4 days ago

0% of end-end tests have passed

Total executed tests: 8
Failed tests: 7
Expected to fail tests: 1
Passed tests: 0
IDs of failed tests: 727230,727231,702745,702742,740490,727229,703133 
IDs of expected to fail tests: 702843 

Failed tests (7)

Click to expand
  • Rerun failed tests

  • Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745

    Device 2: Button element not found
    Device 2: Wait for element `Button` for max 30s and click when it is available

    ``` Test setup failed: critical/chats/test_1_1_public_chats.py:24: in prepare_devices self.loop.run_until_complete(run_in_parallel(((self.device_1.create_user, {'enable_notifications': True, /usr/lib/python3.10/asyncio/base_events.py:649: in run_until_complete return future.result() __init__.py:52: in run_in_parallel returns.append(await k) /usr/lib/python3.10/concurrent/futures/thread.py:58: in run result = self.fn(*self.args, **self.kwargs) ../views/sign_in_view.py:249: in create_user self.not_now_button.wait_and_click() ../views/base_element.py:100: in wait_and_click self.wait_for_visibility_of_element(sec) ../views/base_element.py:147: in wait_for_visibility_of_element raise TimeoutException( Device 1: Button by xpath:`//*[@text='Not now']` is not found on the screen after wait_for_visibility_of_element ```

    Device sessions

    Class TestCommunityOneDeviceMerged:

    1. test_community_copy_and_paste_message_in_chat_input, id: 702742

    Device 1: Button element not found
    Device 1: Wait for element `Button` for max 30s and click when it is available

    ``` Test setup failed: critical/chats/test_public_chat_browsing.py:26: in prepare_devices self.home = self.sign_in.create_user(username=self.username) ../views/sign_in_view.py:249: in create_user self.not_now_button.wait_and_click() ../views/base_element.py:100: in wait_and_click self.wait_for_visibility_of_element(sec) ../views/base_element.py:147: in wait_for_visibility_of_element raise TimeoutException( Device 1: Button by xpath:`//*[@text='Not now']` is not found on the screen after wait_for_visibility_of_element ```

    Device sessions

    2. test_restore_multiaccount_with_waku_backup_remove_profile_switch, id: 703133
    ``` Test setup failed: critical/chats/test_public_chat_browsing.py:26: in prepare_devices self.home = self.sign_in.create_user(username=self.username) ../views/sign_in_view.py:249: in create_user self.not_now_button.wait_and_click() ../views/base_element.py:100: in wait_and_click self.wait_for_visibility_of_element(sec) ../views/base_element.py:147: in wait_for_visibility_of_element raise TimeoutException( Device 1: Button by xpath:`//*[@text='Not now']` is not found on the screen after wait_for_visibility_of_element ```

    Class TestWalletMultipleDevice:

    1. test_wallet_send_asset_from_drawer, id: 727230
    ``` Test setup failed: critical/test_wallet.py:28: in prepare_devices self.loop.run_until_complete( /usr/lib/python3.10/asyncio/base_events.py:649: in run_until_complete return future.result() __init__.py:52: in run_in_parallel returns.append(await k) /usr/lib/python3.10/concurrent/futures/thread.py:58: in run result = self.fn(*self.args, **self.kwargs) ../views/sign_in_view.py:296: in recover_access self.not_now_button.wait_and_click() ../views/base_element.py:100: in wait_and_click self.wait_for_visibility_of_element(sec) ../views/base_element.py:147: in wait_for_visibility_of_element raise TimeoutException( Device 1: Button by xpath:`//*[@text='Not now']` is not found on the screen after wait_for_visibility_of_element ```

    2. test_wallet_send_eth, id: 727229

    Device 2: Button element not found
    Device 2: Wait for element `Button` for max 30s and click when it is available

    ``` Test setup failed: critical/test_wallet.py:28: in prepare_devices self.loop.run_until_complete( /usr/lib/python3.10/asyncio/base_events.py:649: in run_until_complete return future.result() __init__.py:52: in run_in_parallel returns.append(await k) /usr/lib/python3.10/concurrent/futures/thread.py:58: in run result = self.fn(*self.args, **self.kwargs) ../views/sign_in_view.py:296: in recover_access self.not_now_button.wait_and_click() ../views/base_element.py:100: in wait_and_click self.wait_for_visibility_of_element(sec) ../views/base_element.py:147: in wait_for_visibility_of_element raise TimeoutException( Device 1: Button by xpath:`//*[@text='Not now']` is not found on the screen after wait_for_visibility_of_element ```

    Class TestWalletOneDevice:

    1. test_wallet_add_remove_regular_account, id: 727231
    ``` Test setup failed: critical/test_wallet.py:210: in prepare_devices self.sign_in_view.recover_access(passphrase=self.sender['passphrase'], username=self.sender_username) ../views/sign_in_view.py:296: in recover_access self.not_now_button.wait_and_click() ../views/base_element.py:100: in wait_and_click self.wait_for_visibility_of_element(sec) ../views/base_element.py:147: in wait_for_visibility_of_element raise TimeoutException( Device 1: Button by xpath:`//*[@text='Not now']` is not found on the screen after wait_for_visibility_of_element ```

    2. test_wallet_balance_mainnet, id: 740490

    Device 1: Button element not found
    Device 1: Wait for element `Button` for max 30s and click when it is available

    ``` Test setup failed: critical/test_wallet.py:210: in prepare_devices self.sign_in_view.recover_access(passphrase=self.sender['passphrase'], username=self.sender_username) ../views/sign_in_view.py:296: in recover_access self.not_now_button.wait_and_click() ../views/base_element.py:100: in wait_and_click self.wait_for_visibility_of_element(sec) ../views/base_element.py:147: in wait_for_visibility_of_element raise TimeoutException( Device 1: Button by xpath:`//*[@text='Not now']` is not found on the screen after wait_for_visibility_of_element ```

    Expected to fail tests (1)

    Click to expand

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_message_edit, id: 702843
    ``` Test is not run, e2e blocker ``` [[reason: [NOTRUN] Skipped due to waku issue on staging fleet]]

    qfrank commented 4 days ago

    Hi @status-im/mobile-qa , could you help check if e2e result looks good? thanks

    yevh-berdnyk commented 4 days ago

    Hi @status-im/mobile-qa , could you help check if e2e result looks good? thanks

    Hi @qfrank, thanks for the PR! E2E tests are failed because if this error right after launching the app:

    qfrank commented 4 days ago

    Hi @status-im/mobile-qa , could you help check if e2e result looks good? thanks

    Hi @qfrank, thanks for the PR! E2E tests are failed because if this error right after launching the app:

    Thanks for the feedback, could you re-check after the latest commit? @yevh-berdnyk

    status-im-auto commented 4 days ago

    88% of end-end tests have passed

    Total executed tests: 8
    Failed tests: 0
    Expected to fail tests: 1
    Passed tests: 7
    IDs of expected to fail tests: 702843 

    Expected to fail tests (1)

    Click to expand

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_message_edit, id: 702843
    ``` Test is not run, e2e blocker ``` [[reason: [NOTRUN] Skipped due to waku issue on staging fleet]]

    Passed tests (7)

    Click to expand

    Class TestWalletMultipleDevice:

    1. test_wallet_send_asset_from_drawer, id: 727230
    2. test_wallet_send_eth, id: 727229

    Class TestWalletOneDevice:

    1. test_wallet_add_remove_regular_account, id: 727231
    2. test_wallet_balance_mainnet, id: 740490

    Class TestCommunityOneDeviceMerged:

    1. test_community_copy_and_paste_message_in_chat_input, id: 702742
    Device sessions

    2. test_restore_multiaccount_with_waku_backup_remove_profile_switch, id: 703133
    Device sessions

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745
    Device sessions

    yevh-berdnyk commented 4 days ago

    Hi @status-im/mobile-qa , could you help check if e2e result looks good? thanks

    Hi @qfrank, thanks for the PR! E2E tests are failed because if this error right after launching the app:

    Thanks for the feedback, could you re-check after the latest commit? @yevh-berdnyk

    Thanks, now e2e tests look good! But I'd rerun them once again after resolving conflicts and all additional commits (if any changes will be pushed)

    qfrank commented 4 days ago

    Hi @status-im/mobile-qa , could you help check if e2e result looks good? thanks

    Hi @qfrank, thanks for the PR! E2E tests are failed because if this error right after launching the app:

    Thanks for the feedback, could you re-check after the latest commit? @yevh-berdnyk

    Thanks, now e2e tests look good! But I'd rerun them once again after resolving conflicts and all additional commits (if any changes will be pushed)

    rebased

    status-im-auto commented 4 days ago

    62% of end-end tests have passed

    Total executed tests: 8
    Failed tests: 2
    Expected to fail tests: 1
    Passed tests: 5
    IDs of failed tests: 702742,703133 
    IDs of expected to fail tests: 702843 

    Failed tests (2)

    Click to expand
  • Rerun failed tests

  • Class TestCommunityOneDeviceMerged:

    1. test_community_copy_and_paste_message_in_chat_input, id: 702742
    ``` Test setup failed: critical/chats/test_public_chat_browsing.py:22: in prepare_devices self.drivers, self.loop = create_shared_drivers(1) base_test_case.py:310: in create_shared_drivers drivers = loop.run_until_complete(start_threads(test_suite_data.current_test.name, /usr/lib/python3.10/asyncio/base_events.py:649: in run_until_complete return future.result() __init__.py:26: in start_threads returns[k] = await returns[k] /usr/lib/python3.10/concurrent/futures/thread.py:58: in run result = self.fn(*self.args, **self.kwargs) ../../../../status-app-prs-rerun@tmp/venv/lib/python3.10/site-packages/appium/webdriver/webdriver.py:257: in __init__ super().__init__( ../../../../status-app-prs-rerun@tmp/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py:206: in __init__ self.start_session(capabilities) ../../../../status-app-prs-rerun@tmp/venv/lib/python3.10/site-packages/appium/webdriver/webdriver.py:346: in start_session response = self.execute(RemoteCommand.NEW_SESSION, w3c_caps) ../../../../status-app-prs-rerun@tmp/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py:345: in execute self.error_handler.check_response(response) ../../../../status-app-prs-rerun@tmp/venv/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py:229: in check_response raise exception_class(message, screen, stacktrace) Internal Server Error ```

    2. test_restore_multiaccount_with_waku_backup_remove_profile_switch, id: 703133
    ``` Test setup failed: critical/chats/test_public_chat_browsing.py:22: in prepare_devices self.drivers, self.loop = create_shared_drivers(1) base_test_case.py:310: in create_shared_drivers drivers = loop.run_until_complete(start_threads(test_suite_data.current_test.name, /usr/lib/python3.10/asyncio/base_events.py:649: in run_until_complete return future.result() __init__.py:26: in start_threads returns[k] = await returns[k] /usr/lib/python3.10/concurrent/futures/thread.py:58: in run result = self.fn(*self.args, **self.kwargs) ../../../../status-app-prs-rerun@tmp/venv/lib/python3.10/site-packages/appium/webdriver/webdriver.py:257: in __init__ super().__init__( ../../../../status-app-prs-rerun@tmp/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py:206: in __init__ self.start_session(capabilities) ../../../../status-app-prs-rerun@tmp/venv/lib/python3.10/site-packages/appium/webdriver/webdriver.py:346: in start_session response = self.execute(RemoteCommand.NEW_SESSION, w3c_caps) ../../../../status-app-prs-rerun@tmp/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py:345: in execute self.error_handler.check_response(response) ../../../../status-app-prs-rerun@tmp/venv/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py:229: in check_response raise exception_class(message, screen, stacktrace) Internal Server Error ```

    Expected to fail tests (1)

    Click to expand

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_message_edit, id: 702843
    ``` Test is not run, e2e blocker ``` [[reason: [NOTRUN] Skipped due to waku issue on staging fleet]]

    Passed tests (5)

    Click to expand

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745
    Device sessions

    Class TestWalletOneDevice:

    1. test_wallet_balance_mainnet, id: 740490
    2. test_wallet_add_remove_regular_account, id: 727231

    Class TestWalletMultipleDevice:

    1. test_wallet_send_asset_from_drawer, id: 727230
    2. test_wallet_send_eth, id: 727229
    status-im-auto commented 4 days ago

    50% of end-end tests have passed

    Total executed tests: 2
    Failed tests: 1
    Expected to fail tests: 0
    Passed tests: 1
    IDs of failed tests: 703133 

    Failed tests (1)

    Click to expand
  • Rerun failed tests

  • Class TestCommunityOneDeviceMerged:

    1. test_restore_multiaccount_with_waku_backup_remove_profile_switch, id: 703133

    Device 1: Tap on found: ChatsTab
    Device 1: Find `Button` by `accessibility id`: `tab-contacts`

    ``` critical/chats/test_public_chat_browsing.py:166: in test_restore_multiaccount_with_waku_backup_remove_profile_switch self.home.contacts_tab.click() ../views/base_element.py:90: in click element = self.find_element() ../views/base_element.py:79: in find_element raise NoSuchElementException( Device 1: Button by accessibility id: `tab-contacts` is not found on the screen; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception ```

    Device sessions

    Passed tests (1)

    Click to expand

    Class TestCommunityOneDeviceMerged:

    1. test_community_copy_and_paste_message_in_chat_input, id: 702742
    Device sessions

    status-im-auto commented 4 days ago

    0% of end-end tests have passed

    Total executed tests: 1
    Failed tests: 1
    Expected to fail tests: 0
    Passed tests: 0
    IDs of failed tests: 703133 

    Failed tests (1)

    Click to expand
  • Rerun failed tests

  • Class TestCommunityOneDeviceMerged:

    1. test_restore_multiaccount_with_waku_backup_remove_profile_switch, id: 703133

    Device 1: Tap on found: Button
    # STEP: Check that removed user is not shown in the list anymore

    ``` critical/chats/test_public_chat_browsing.py:240: in test_restore_multiaccount_with_waku_backup_remove_profile_switch self.errors.verify_no_errors() base_test_case.py:192: in verify_no_errors pytest.fail('\n '.join([self.errors.pop(0) for _ in range(len(self.errors))])) zQ3...dWXh5 was not restored as a contact from waku backup! E zQ3...Vacac was not restored as a contact from waku backup! E admin_open was not restored from waku-backup!! E member_open was not restored from waku-backup!! E admin_closed was not restored from waku-backup!! E member_closed was not restored from waku-backup!! ```

    Device sessions

    yevh-berdnyk commented 4 days ago

    Hi @status-im/mobile-qa , could you help check if e2e result looks good? thanks

    Hi @qfrank, thanks for the PR! E2E tests are failed because if this error right after launching the app:

    Thanks for the feedback, could you re-check after the latest commit? @yevh-berdnyk

    Thanks, now e2e tests look good! But I'd rerun them once again after resolving conflicts and all additional commits (if any changes will be pushed)

    rebased

    Cool, thanks! E2E failure is not related, PR can be merged