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

Add separate target/scheme for ios pr build #10867

Merged
merged 1 commit into from
Jun 29, 2020

Conversation

Ferossgp
Copy link
Contributor

@Ferossgp Ferossgp commented Jun 24, 2020

We want to have a separate app identifier for PR build so we can use the release version on day to day basis, and be able to test new PRs without removing the release from the phone.

@Ferossgp Ferossgp requested a review from a team as a code owner June 24, 2020 16:00
@Ferossgp Ferossgp self-assigned this Jun 24, 2020
@status-im-auto
Copy link
Member

status-im-auto commented Jun 24, 2020

Jenkins Builds

Click to see older builds (34)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ e8b01d7 #1 2020-06-24 16:15:31 ~14 min ios 📦ipa 📲
✔️ e8b01d7 #1 2020-06-24 16:16:20 ~15 min android-e2e 📦apk 📲
✔️ e8b01d7 #1 2020-06-24 16:16:25 ~15 min android 📦apk 📲
b94f927 #3 2020-06-25 10:33:02 ~3 min ios 📄log
✔️ b94f927 #3 2020-06-25 10:42:08 ~12 min android-e2e 📦apk 📲
✔️ b94f927 #3 2020-06-25 10:51:28 ~22 min android 📦apk 📲
✔️ 05147b4 #4 2020-06-25 12:16:14 ~11 min android 📦apk 📲
✔️ 05147b4 #4 2020-06-25 12:16:43 ~11 min android-e2e 📦apk 📲
05147b4 #4 2020-06-25 12:19:14 ~14 min ios 📄log
24ab422 #6 2020-06-25 13:52:31 ~13 min ios 📄log
✔️ 24ab422 #6 2020-06-25 13:54:33 ~15 min android-e2e 📦apk 📲
✔️ 24ab422 #6 2020-06-25 13:54:39 ~16 min android 📦apk 📲
a4ef7b4 #7 2020-06-25 14:29:39 ~14 min ios 📄log
✔️ a4ef7b4 #7 2020-06-25 14:31:01 ~16 min android 📦apk 📲
✔️ a4ef7b4 #7 2020-06-25 14:31:02 ~16 min android-e2e 📦apk 📲
cbb421e #8 2020-06-25 14:52:09 ~13 min ios 📄log
✔️ cbb421e #8 2020-06-25 14:53:38 ~15 min android-e2e 📦apk 📲
✔️ cbb421e #8 2020-06-25 14:53:51 ~15 min android 📦apk 📲
3066bf4 #9 2020-06-25 15:17:59 ~13 min ios 📄log
✔️ 3066bf4 #9 2020-06-25 15:19:43 ~15 min android-e2e 📦apk 📲
✔️ 3066bf4 #9 2020-06-25 15:19:46 ~15 min android 📦apk 📲
✔️ a633b3a #10 2020-06-25 17:59:15 ~15 min android 📦apk 📲
✔️ a633b3a #10 2020-06-25 17:59:18 ~15 min android-e2e 📦apk 📲
fb7c38a #11 2020-06-25 18:16:21 ~13 min ios 📄log
✔️ fb7c38a #11 2020-06-25 18:17:27 ~14 min android 📦apk 📲
✔️ fb7c38a #11 2020-06-25 18:17:34 ~14 min android-e2e 📦apk 📲
✔️ 9fb9748 #12 2020-06-25 19:03:57 ~14 min android-e2e 📦apk 📲
✔️ 9fb9748 #12 2020-06-25 19:04:01 ~14 min android 📦apk 📲
✔️ 9fb9748 #12 2020-06-25 19:04:01 ~14 min ios 📦ipa 📲
7bc8c60 #13 2020-06-25 19:32:34 ~3 min ios 📄log
✔️ 7bc8c60 #13 2020-06-25 19:43:40 ~14 min android-e2e 📦apk 📲
✔️ 5174428 #14 2020-06-26 07:07:59 ~14 min ios 📦ipa 📲
✔️ 5174428 #14 2020-06-26 07:09:43 ~16 min android-e2e 📦apk 📲
✔️ 5174428 #14 2020-06-26 07:09:46 ~16 min android 📦apk 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 637610d #15 2020-06-26 07:54:58 ~11 min android-e2e 📦apk 📲
✔️ 637610d #15 2020-06-26 07:55:28 ~11 min android 📦apk 📲
✔️ 637610d #15 2020-06-26 07:57:50 ~14 min ios 📦ipa 📲
✔️ 24e7510 #16 2020-06-26 09:09:14 ~13 min ios 📦ipa 📲
✔️ 24e7510 #16 2020-06-26 09:10:01 ~14 min android-e2e 📦apk 📲
✔️ 24e7510 #16 2020-06-26 09:10:27 ~15 min android 📦apk 📲

@andremedeiros
Copy link
Contributor

@jakubgs can you jump in?

@jakubgs
Copy link
Member

jakubgs commented Jun 24, 2020

This is great, I tried to do that a year ago in #7479 but I could not fix the builds. Kept getting:

 ▸ ld: library not found for -lReact

Which drove me insane. I hope this works. Here's the PR: https://github.com/status-im/status-react-jenkins/pull/9
First use my branch name to the version of the library in all Jenkinsfiles:
https://github.com/status-im/status-react/blob/ddcb1fa54acd65ba755ac1e6ff8ddeb17c2993cb/ci/Jenkinsfile.ios#L1

@Ferossgp Ferossgp force-pushed the feature/add-separate-target-ios-pr branch 2 times, most recently from db77752 to b94f927 Compare June 25, 2020 10:29
@jakubgs
Copy link
Member

jakubgs commented Jun 25, 2020

I created two new provisioning profiles with match:

It should work now. I'll update the branch.

@jakubgs jakubgs force-pushed the feature/add-separate-target-ios-pr branch from d862bc9 to 24ab422 Compare June 25, 2020 13:38
@jakubgs
Copy link
Member

jakubgs commented Jun 25, 2020

It doesn't seem to like the profile:

error: exportArchive: "StatusIm.app" requires a provisioning profile with the Associated Domains and Push Notifications features.
Error Domain=IDEProvisioningErrorDomain Code=9 
"StatusIm.app requires a provisioning profile with the Associated Domains and Push Notifications features."
UserInfo={
  IDEDistributionIssueSeverity=3,
  NSLocalizedDescription="StatusIm.app" requires a provisioning profile with the Associated Domains and Push Notifications features.,
  NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.
}

The profiles match creates don't have the right capapbilities:
ios_pr_profile

@jakubgs jakubgs force-pushed the feature/add-separate-target-ios-pr branch from 24ab422 to a4ef7b4 Compare June 25, 2020 14:14
@jakubgs
Copy link
Member

jakubgs commented Jun 25, 2020

Looks like temporarily enabling automatic signing management and re-creating profiles fixed it:
Screenshot_2020-06-25_at_17 13 40

@jakubgs jakubgs force-pushed the feature/add-separate-target-ios-pr branch from a4ef7b4 to cbb421e Compare June 25, 2020 14:38
@Ferossgp Ferossgp force-pushed the feature/add-separate-target-ios-pr branch 3 times, most recently from 7bc8c60 to 5174428 Compare June 26, 2020 06:53
Copy link
Member

@jakubgs jakubgs left a comment

Choose a reason for hiding this comment

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

LGTM, tested on an iPhone too. Nice work!

signingStyle: 'manual',
provisioningProfiles: {
"im.status.ethereum": "match AdHoc im.status.ethereum",
"im.status.ethereum.pr": "match AdHoc im.status.ethereum.pr"
Copy link
Member

Choose a reason for hiding this comment

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

Kinda annoying we need this, but ah well.

fastlane/Fastfile Show resolved Hide resolved
@status-im-auto
Copy link
Member

100% of end-end tests have passed

Total executed tests: 94
Failed tests: 0
Passed tests: 94

Passed tests (94)

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_mobile_data_usage_settings
Device sessions

14. test_create_new_group_chat
Device sessions

15. test_sign_typed_message (TestRail link is not found)
Device sessions

16. test_user_can_switch_network
Device sessions

17. test_mobile_data_usage_popup_continue_syncing
Device sessions

18. test_home_view
Device sessions

19. test_open_google_com_via_open_dapp
Device sessions

20. test_share_contact_code_and_wallet_address
Device sessions

21. test_connection_is_secure
Device sessions

22. test_add_to_contacts
Device sessions

23. test_add_account_to_multiaccount_instance_private_key
Device sessions

24. test_refresh_button_browsing_app_webview
Device sessions

25. test_keycard_send_two_transactions_one_after_another_in_dapp
Device sessions

26. test_can_add_existing_ens
Device sessions

27. test_transaction_wrong_password_wallet
Device sessions

28. test_public_chat_messaging
Device sessions

29. test_unread_messages_counter_public_chat
Device sessions

30. test_keycard_send_eth_from_wallet_to_address
Device sessions

31. test_keycard_fetching_balance_after_offline
Device sessions

32. test_keycard_send_transaction_from_daap
Device sessions

33. test_text_message_1_1_chat
Device sessions

34. test_can_use_purchased_stickers_on_recovered_account
Device sessions

35. test_open_transaction_on_etherscan
Device sessions

36. test_onboarding_screen_when_requesting_tokens_for_recovered_account
Device sessions

37. test_contact_profile_view
Device sessions

38. test_offline_add_new_group_chat_member
Device sessions

39. test_logcat_backup_recovery_phrase
Device sessions

40. test_start_chat_with_ens
Device sessions

41. test_add_and_remove_contact_from_public_chat
Device sessions

42. test_add_account_to_multiaccount_instance_seed_phrase
Device sessions

43. test_open_blocked_site
Device sessions

44. test_open_chat_by_pasting_public_key
Device sessions

45. test_pair_devices_sync_one_to_one_contacts_public_chat
Device sessions

46. test_keycard_sign_message_from_daap
Device sessions

47. test_send_non_english_message_to_newly_added_contact
Device sessions

48. test_ens_username_recipient
Device sessions

49. test_fetch_more_history_in_empty_chat
Device sessions

50. test_open_public_chat_using_deep_link
Device sessions

51. test_switch_users_and_add_new_account
Device sessions

52. test_add_account_to_multiaccount_instance_generate_new
Device sessions

53. test_copy_contact_code_and_wallet_address
Device sessions

54. test_send_transaction_from_daap
Device sessions

55. test_send_two_transactions_one_after_another_in_dapp
Device sessions

56. test_image_in_one_to_one_send_save_reply
Device sessions

57. test_add_new_keycard_account_and_login
Device sessions

58. test_long_press_delete_clear_all_dapps
Device sessions

59. test_copy_and_paste_messages
Device sessions

60. test_back_forward_buttons_browsing_website
Device sessions

61. test_password_in_logcat_creating_account
Device sessions

62. test_sign_message_from_daap
Device sessions

63. test_dapps_permissions
Device sessions

64. test_request_public_key_status_test_daap
Device sessions

65. test_long_press_to_delete_chat
Device sessions

66. test_log_level_and_fleet
Device sessions

67. test_add_and_delete_watch_only_account_to_multiaccount_instance
Device sessions

68. test_recover_account_from_new_user_seedphrase
Device sessions

69. test_send_transaction_with_custom_token
Device sessions

70. test_send_eth_in_1_1_chat
Device sessions

71. test_send_two_transactions_in_batch_in_dapp
Device sessions

72. test_ens_in_public_and_1_1_chats
Device sessions

73. test_block_user_from_public_chat
Device sessions

74. test_fetching_balance_after_offline
Device sessions

75. test_offline_status
Device sessions

76. test_wallet_set_up
Device sessions

77. test_manage_assets
Device sessions

78. test_offline_messaging_1_1_chat
Device sessions

79. test_account_recovery_with_uppercase_recovery_phrase
Device sessions

80. test_send_token_with_7_decimals
Device sessions

81. test_user_can_see_all_own_assets_after_account_recovering
Device sessions

82. test_pass_phrase_validation
Device sessions

83. test_keycard_can_see_all_transactions_in_history
Device sessions

84. test_keycard_send_two_transactions_in_batch_in_dapp
Device sessions

85. test_send_emoji
Device sessions

86. test_filters_from_daap
Device sessions

87. test_redirect_to_public_chat_tapping_tag_message
Device sessions

88. test_restore_account_from_mnemonic_to_keycard
Device sessions

89. test_send_eth_to_ens_in_chat
Device sessions

90. test_send_eth_from_wallet_to_address
Device sessions

91. test_request_and_receive_stt_in_1_1_chat_offline
Device sessions

92. test_messaging_in_different_networks
Device sessions

93. test_collectible_from_wallet_opens_in_browser_view
Device sessions

94. test_insufficient_funds_wallet_positive_balance
Device sessions

ci/Jenkinsfile.macos Outdated Show resolved Hide resolved
@Ferossgp Ferossgp force-pushed the feature/add-separate-target-ios-pr branch from 637610d to 24e7510 Compare June 26, 2020 08:55
Copy link
Member

@jakubgs jakubgs left a comment

Choose a reason for hiding this comment

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

you did it you crazy son of a bitch

Build PR Scheme in PR build

use named parameters, use pr_build boolean

Signed-off-by: Jakub Sokołowski <jakub@status.im>

Enable capabilities

Signed-off-by: Jakub Sokołowski <jakub@status.im>

Add custom app icon

Remove user defined profile

Add PR scheme

Explicit provide provisioning profiles

Fix pr schema

Bump jenkins

Pod bump

Describe pr_build argument

Signed-off-by: Gheorghe Pinzaru <feross95@gmail.com>
@Ferossgp Ferossgp force-pushed the feature/add-separate-target-ios-pr branch from 24e7510 to d916751 Compare June 29, 2020 13:16
@Ferossgp Ferossgp merged commit d916751 into develop Jun 29, 2020
@Ferossgp Ferossgp deleted the feature/add-separate-target-ios-pr branch June 29, 2020 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants