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

F-Droid build enabling changes #11004

Merged
merged 4 commits into from
Jul 29, 2020
Merged

F-Droid build enabling changes #11004

merged 4 commits into from
Jul 29, 2020

Conversation

jakubgs
Copy link
Member

@jakubgs jakubgs commented Jul 28, 2020

After a lot of research in #8512 I finally have a working F-Droid build using this branch.

Changes:

  • Set GRADLE_USER_HOME to a temp dir
  • Enable build-use-sandbox = true for Android Nix builds
  • Use org.gradle.daemon=false for Nix Android builds
  • Add ANDROID_APK_SIGNED to make unsigned builds for F-Droid

I think we should be able to release 1.5.0 on F-Droid.
It should be also doable to release 1.4.1 with these changes.

@jakubgs jakubgs requested a review from a team as a code owner July 28, 2020 13:53
@jakubgs jakubgs self-assigned this Jul 28, 2020
@jakubgs jakubgs changed the title Fdroid F-Droid build enabling changes Jul 28, 2020
@status-im-auto
Copy link
Member

status-im-auto commented Jul 28, 2020

Jenkins Builds

Click to see older builds (3)
Commit #️⃣ Finished (UTC) Duration Platform Result
1809c59 #1 2020-07-28 13:56:49 ~2 min ios 📄log
✔️ 1809c59 #1 2020-07-28 14:03:26 ~9 min android 📦apk 📲
✔️ 1809c59 #1 2020-07-28 14:07:57 ~14 min android-e2e 📦apk 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 58cce7c #2 2020-07-28 14:18:17 ~9 min android 📦apk 📲
✔️ 58cce7c #2 2020-07-28 14:22:23 ~13 min ios 📦ipa 📲
✔️ 58cce7c #2 2020-07-28 14:25:09 ~16 min android-e2e 📦apk 📲
✔️ 2039757 #4 2020-07-29 07:22:25 ~13 min android-e2e 📦apk 📲
✔️ 2039757 #4 2020-07-29 07:22:40 ~13 min android 📦apk 📲
✔️ 2039757 #4 2020-07-29 07:23:06 ~13 min ios 📦ipa 📲

Copy link
Member

@flexsurfer flexsurfer left a comment

Choose a reason for hiding this comment

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

Awesome!

@status-im-auto
Copy link
Member

99% of end-end tests have passed

Total executed tests: 98
Failed tests: 1
Passed tests: 97

Failed tests (1)

Click to expand
1. test_fetching_balance_after_offline

Device 1: Wait for EnterPasswordInput
Device 1: EnterPasswordInput element not found

Device 1: 'EnterPasswordInput' is not found on the screen

Device sessions

Passed tests (97)

Click to expand
1. test_request_public_key_status_test_daap
Device sessions

2. test_open_public_chat_using_deep_link
Device sessions

3. test_ens_username_recipient
Device sessions

4. test_keycard_can_see_all_transactions_in_history
Device sessions

5. test_offline_status
Device sessions

6. test_open_transaction_on_etherscan
Device sessions

7. test_open_chat_by_pasting_public_key
Device sessions

8. test_back_forward_buttons_browsing_website
Device sessions

9. test_password_in_logcat_creating_account
Device sessions

10. test_can_use_purchased_stickers_on_recovered_account
Device sessions

11. test_insufficient_funds_wallet_positive_balance
Device sessions

12. test_mobile_data_usage_settings
Device sessions

13. test_open_google_com_via_open_dapp
Device sessions

14. test_logcat_backup_recovery_phrase
Device sessions

15. test_unread_messages_counter_public_chat
Device sessions

16. test_send_two_transactions_one_after_another_in_dapp
Device sessions

17. test_user_can_switch_network
Device sessions

18. test_public_chat_clear_history
Device sessions

19. test_wallet_set_up
Device sessions

20. test_timestamp_in_chats
Device sessions

21. test_delete_chats_via_delete_button
Device sessions

22. test_add_account_to_multiaccount_instance_seed_phrase
Device sessions

23. test_fetch_more_history_in_empty_chat
Device sessions

24. test_push_notification_1_1_chat
Device sessions

25. test_mobile_data_usage_popup_continue_syncing
Device sessions

26. test_keycard_fetching_balance_after_offline
Device sessions

27. test_add_to_contacts
Device sessions

28. test_dapps_permissions
Device sessions

29. test_long_press_delete_clear_all_dapps
Device sessions

30. test_need_help_section
Device sessions

31. test_transaction_wrong_password_wallet
Device sessions

32. test_offline_messaging_1_1_chat
Device sessions

33. test_add_account_to_multiaccount_instance_private_key
Device sessions

34. test_text_message_1_1_chat
Device sessions

35. test_install_pack_and_send_sticker
Device sessions

36. test_send_eth_in_1_1_chat
Device sessions

37. test_pair_devices_sync_one_to_one_contacts_public_chat
Device sessions

38. test_image_in_one_to_one_send_save_reply
Device sessions

39. test_send_emoji
Device sessions

40. test_copy_and_paste_messages
Device sessions

41. test_keycard_send_eth_in_1_1_chat
Device sessions

42. test_restore_account_from_mnemonic_to_keycard
Device sessions

43. test_add_account_to_multiaccount_instance_generate_new
Device sessions

44. test_send_eth_from_wallet_to_address
Device sessions

45. test_messaging_in_different_networks
Device sessions

46. test_start_chat_with_ens
Device sessions

47. test_logcat_recovering_account
Device sessions

48. test_offline_add_new_group_chat_member
Device sessions

49. test_connection_is_secure
Device sessions

50. test_keycard_send_transaction_from_daap
Device sessions

51. test_user_can_see_all_own_assets_after_account_recovering
Device sessions

52. test_send_eth_to_ens_in_chat
Device sessions

53. test_keycard_sign_message_from_daap
Device sessions

54. test_long_press_to_delete_chat
Device sessions

55. test_add_and_remove_contact_from_public_chat
Device sessions

56. test_send_transaction_from_daap
Device sessions

57. test_onboarding_screen_when_requesting_tokens_for_recovered_account
Device sessions

58. test_keycard_send_eth_from_wallet_to_address
Device sessions

59. test_keycard_send_two_transactions_one_after_another_in_dapp
Device sessions

60. test_add_and_delete_watch_only_account_to_multiaccount_instance
Device sessions

61. test_open_blocked_site
Device sessions

62. test_refresh_button_browsing_app_webview
Device sessions

63. test_public_chat_messaging
Device sessions

64. test_pass_phrase_validation
Device sessions

65. test_send_token_with_7_decimals
Device sessions

66. test_sign_message_from_daap
Device sessions

67. test_recover_account_from_new_user_seedphrase
Device sessions

68. test_add_new_keycard_account_and_login
Device sessions

69. test_decline_transactions_in_1_1_chat
Device sessions

70. test_send_and_open_links
Device sessions

71. test_manage_assets
Device sessions

72. test_share_contact_code_and_wallet_address
Device sessions

73. test_send_transaction_with_custom_token
Device sessions

74. test_keycard_send_eth_to_ens (TestRail link is not found)
Device sessions

75. test_can_recover_keycard_account_card_pairing
Device sessions

76. test_request_and_receive_stt_in_1_1_chat_offline
Device sessions

77. test_redirect_to_public_chat_tapping_tag_message
Device sessions

78. test_block_user_from_public_chat
Device sessions

79. test_ens_in_public_and_1_1_chats
Device sessions

80. test_create_new_group_chat
Device sessions

81. test_password_in_logcat_sign_in
Device sessions

82. test_account_recovery_with_uppercase_recovery_phrase
Device sessions

83. test_mobile_data_usage_popup_stop_syncing
Device sessions

84. test_send_non_english_message_to_newly_added_contact
Device sessions

85. test_collectible_from_wallet_opens_in_browser_view
Device sessions

86. test_contact_profile_view
Device sessions

87. test_keycard_send_two_transactions_in_batch_in_dapp
Device sessions

88. test_switch_users_and_add_new_account
Device sessions

89. test_send_two_transactions_in_batch_in_dapp
Device sessions

90. test_filters_from_daap
Device sessions

91. test_login_with_new_account
Device sessions

92. test_home_view
Device sessions

93. test_log_level_and_fleet
Device sessions

94. test_can_add_existing_ens
Device sessions

95. test_copy_contact_code_and_wallet_address
Device sessions

96. test_can_see_all_transactions_in_history
Device sessions

97. test_keycard_request_and_receive_stt_in_1_1_chat_offline (TestRail link is not found)
Device sessions

@hesterbruikman
Copy link
Contributor

@jakubgs this is fantastic! For my understanding, does this mean packaging is all done and we could submit 1.5 when ready or should we still go through a request for packaging?

If we can start with 1.4.1, what would be actions needed?

@jakubgs
Copy link
Member Author

jakubgs commented Jul 28, 2020

@hesterbruikman I have not submitted the App to F-Droid yet. And I've been wondering how to do it.

We can either wait till 1.5.0 and release that. Or we have two options:

  • Take release/1.4.x branch, apply the changes from this PR and make it into 1.4.2, and submit that
  • Fork release/1.4.x branch into release/1.4.x-fdroid and apply the changes from this PR leaving it as 1.4.1

I think the first option is more... proper? Kosher?

@hesterbruikman
Copy link
Contributor

I'm thinking the 2nd, keeps any view on retention data more pure as we know what was in a release for 1.4.1, followed by 1.5. More build makes impact harder to track. So I think it makes sense to:

  • Treat 1.4.1 as trial
  • Submit 1.5 when ready and communicate it's availability, e.g. also adding F-droid badge to https://status.im/get/

What makes you consider the first option 1.4.2 more kosher?

@jakubgs
Copy link
Member Author

jakubgs commented Jul 28, 2020

Just a general rule that if you apply changes you should change the version. But to be fair the changes are only related to the build system, and none the that app codebase itself, so in theory the resulting application should be almost identical.

If you think that's better I don't really mind. This way we can get it ready for the 1.5.0 release when we can announce availability though F-Droid catalog.

@jakubgs
Copy link
Member Author

jakubgs commented Jul 29, 2020

@churik should I worry about the one e2e test failing?

@churik
Copy link
Member

churik commented Jul 29, 2020

@jakubgs no, that is fixed in develop

@status-im-auto
Copy link
Member

99% of end-end tests have passed

Total executed tests: 98
Failed tests: 1
Passed tests: 97

Failed tests (1)

Click to expand
1. test_fetching_balance_after_offline

Device 1: Wait for EnterPasswordInput
Device 1: EnterPasswordInput element not found

Device 1: 'EnterPasswordInput' is not found on the screen

Device sessions

Passed tests (97)

Click to expand
1. test_decline_transactions_in_1_1_chat
Device sessions

2. test_delete_chats_via_delete_button
Device sessions

3. test_can_see_all_transactions_in_history
Device sessions

4. test_install_pack_and_send_sticker
Device sessions

5. test_login_with_new_account
Device sessions

6. test_timestamp_in_chats
Device sessions

7. test_password_in_logcat_sign_in
Device sessions

8. test_logcat_recovering_account
Device sessions

9. test_public_chat_clear_history
Device sessions

10. test_need_help_section
Device sessions

11. test_send_and_open_links
Device sessions

12. test_mobile_data_usage_popup_stop_syncing
Device sessions

13. test_keycard_send_eth_in_1_1_chat
Device sessions

14. test_mobile_data_usage_settings
Device sessions

15. test_create_new_group_chat
Device sessions

16. test_keycard_send_eth_to_ens (TestRail link is not found)
Device sessions

17. test_user_can_switch_network
Device sessions

18. test_mobile_data_usage_popup_continue_syncing
Device sessions

19. test_home_view
Device sessions

20. test_open_google_com_via_open_dapp
Device sessions

21. test_share_contact_code_and_wallet_address
Device sessions

22. test_connection_is_secure
Device sessions

23. test_add_to_contacts
Device sessions

24. test_add_account_to_multiaccount_instance_private_key
Device sessions

25. test_refresh_button_browsing_app_webview
Device sessions

26. test_push_notification_1_1_chat
Device sessions

27. test_keycard_send_two_transactions_one_after_another_in_dapp
Device sessions

28. test_can_add_existing_ens
Device sessions

29. test_transaction_wrong_password_wallet
Device sessions

30. test_public_chat_messaging
Device sessions

31. test_unread_messages_counter_public_chat
Device sessions

32. test_keycard_send_eth_from_wallet_to_address
Device sessions

33. test_keycard_fetching_balance_after_offline
Device sessions

34. test_keycard_send_transaction_from_daap
Device sessions

35. test_text_message_1_1_chat
Device sessions

36. test_can_use_purchased_stickers_on_recovered_account
Device sessions

37. test_open_transaction_on_etherscan
Device sessions

38. test_onboarding_screen_when_requesting_tokens_for_recovered_account
Device sessions

39. test_contact_profile_view
Device sessions

40. test_offline_add_new_group_chat_member
Device sessions

41. test_logcat_backup_recovery_phrase
Device sessions

42. test_can_recover_keycard_account_card_pairing
Device sessions

43. test_start_chat_with_ens
Device sessions

44. test_add_and_remove_contact_from_public_chat
Device sessions

45. test_add_account_to_multiaccount_instance_seed_phrase
Device sessions

46. test_open_blocked_site
Device sessions

47. test_open_chat_by_pasting_public_key
Device sessions

48. test_pair_devices_sync_one_to_one_contacts_public_chat
Device sessions

49. test_keycard_sign_message_from_daap
Device sessions

50. test_send_non_english_message_to_newly_added_contact
Device sessions

51. test_ens_username_recipient
Device sessions

52. test_fetch_more_history_in_empty_chat
Device sessions

53. test_open_public_chat_using_deep_link
Device sessions

54. test_switch_users_and_add_new_account
Device sessions

55. test_add_account_to_multiaccount_instance_generate_new
Device sessions

56. test_copy_contact_code_and_wallet_address
Device sessions

57. test_send_transaction_from_daap
Device sessions

58. test_send_two_transactions_one_after_another_in_dapp
Device sessions

59. test_image_in_one_to_one_send_save_reply
Device sessions

60. test_add_new_keycard_account_and_login
Device sessions

61. test_long_press_delete_clear_all_dapps
Device sessions

62. test_copy_and_paste_messages
Device sessions

63. test_back_forward_buttons_browsing_website
Device sessions

64. test_password_in_logcat_creating_account
Device sessions

65. test_sign_message_from_daap
Device sessions

66. test_dapps_permissions
Device sessions

67. test_request_public_key_status_test_daap
Device sessions

68. test_long_press_to_delete_chat
Device sessions

69. test_log_level_and_fleet
Device sessions

70. test_add_and_delete_watch_only_account_to_multiaccount_instance
Device sessions

71. test_recover_account_from_new_user_seedphrase
Device sessions

72. test_send_transaction_with_custom_token
Device sessions

73. test_keycard_request_and_receive_stt_in_1_1_chat_offline (TestRail link is not found)
Device sessions

74. test_send_eth_in_1_1_chat
Device sessions

75. test_send_two_transactions_in_batch_in_dapp
Device sessions

76. test_ens_in_public_and_1_1_chats
Device sessions

77. test_block_user_from_public_chat
Device sessions

78. test_offline_status
Device sessions

79. test_wallet_set_up
Device sessions

80. test_manage_assets
Device sessions

81. test_offline_messaging_1_1_chat
Device sessions

82. test_account_recovery_with_uppercase_recovery_phrase
Device sessions

83. test_send_token_with_7_decimals
Device sessions

84. test_user_can_see_all_own_assets_after_account_recovering
Device sessions

85. test_pass_phrase_validation
Device sessions

86. test_keycard_can_see_all_transactions_in_history
Device sessions

87. test_keycard_send_two_transactions_in_batch_in_dapp
Device sessions

88. test_send_emoji
Device sessions

89. test_filters_from_daap
Device sessions

90. test_redirect_to_public_chat_tapping_tag_message
Device sessions

91. test_restore_account_from_mnemonic_to_keycard
Device sessions

92. test_send_eth_to_ens_in_chat
Device sessions

93. test_send_eth_from_wallet_to_address
Device sessions

94. test_request_and_receive_stt_in_1_1_chat_offline
Device sessions

95. test_messaging_in_different_networks
Device sessions

96. test_collectible_from_wallet_opens_in_browser_view
Device sessions

97. test_insufficient_funds_wallet_positive_balance
Device sessions

Signed-off-by: Jakub Sokołowski <jakub@status.im>
Signed-off-by: Jakub Sokołowski <jakub@status.im>
Signed-off-by: Jakub Sokołowski <jakub@status.im>
Signed-off-by: Jakub Sokołowski <jakub@status.im>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

7 participants