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

[8556] fix - Last message jumps up after chat is opened #8589

Merged
merged 1 commit into from
Jul 25, 2019
Merged

[8556] fix - Last message jumps up after chat is opened #8589

merged 1 commit into from
Jul 25, 2019

Conversation

bitsikka
Copy link
Contributor

@bitsikka bitsikka commented Jul 17, 2019

fixes #8556

This bothered me so much that I kept thinking about it and looking for solution, even though, I'd committed to work on other issues 😛.

I may have found the solution (maybe could be better). Please review/test and see if it is acceptable.

Solution was achieved still using native animation introduced in #8498, and not by reverting to old non-native solution before #8498.

Testing Notes:

  • This affects home and chat screens
  • This affects mobile and may affect desktop

Tested only on iOS-Simulator so far (all below were done in iOS-Simulator)

  • In home and chat screen checked turning on/off network
    • In my network when I turn off Wifi and turning it back on - wallet offline message shows and does not go away; But I think it is not related to this PR.
    • checked by re-login(network bar shows up), then quickly navigating to a chat while the network bar is still doing its thing until it goes away
  • In home screen checked triggering/focusing/entering text/cancelling with chat search
  • In home screen added more chats than fits the height of screen, checked scrolling, navigating to different chats
  • In home screen deleted chats

In some manual tests above, problems were found and resolved


status: ready for review

@bitsikka bitsikka requested a review from a team as a code owner July 17, 2019 13:35
@auto-assign auto-assign bot removed the request for review from a team July 17, 2019 13:36
@ghost
Copy link

ghost commented Jul 17, 2019

Pull Request Checklist

  • Have you updated the documentation, if impacted (e.g. docs.status.im)?

@status-im-auto
Copy link
Member

status-im-auto commented Jul 17, 2019

Jenkins Builds

Click to see older builds (37)
Commit #️⃣ Finished (UTC) Duration Platform Result
512e163 #1 2019-07-17 13:46:10 ~9 min macos 📄 log
✔️ 512e163 #1 2019-07-17 13:46:21 ~10 min android-e2e 📦 apk
✔️ 512e163 #1 2019-07-17 13:46:58 ~10 min android 📦 apk
✔️ 512e163 #1 2019-07-17 13:49:24 ~13 min ios 📦 ipa
✔️ 512e163 #1 2019-07-17 13:49:46 ~13 min windows 📦 exe
✔️ 512e163 #1 2019-07-17 13:49:52 ~13 min linux 📦 App
✔️ 709f50c #2 2019-07-17 14:34:14 ~12 min ios 📦 ipa
✔️ 709f50c #2 2019-07-17 14:35:29 ~13 min macos 📦 dmg
709f50c #2 2019-07-17 14:36:22 ~15 min android-e2e 📄 log
✔️ 709f50c #2 2019-07-17 14:38:36 ~17 min linux 📦 App
✔️ 709f50c #2 2019-07-17 14:38:36 ~17 min android 📦 apk
✔️ 709f50c #2 2019-07-17 14:42:06 ~20 min windows 📦 exe
✔️ 5e33f9e #3 2019-07-17 15:10:53 ~9 min android-e2e 📦 apk
✔️ 5e33f9e #3 2019-07-17 15:11:28 ~9 min android 📦 apk
✔️ 5e33f9e #3 2019-07-17 15:14:31 ~12 min ios 📦 ipa
✔️ 5e33f9e #3 2019-07-17 15:14:56 ~13 min linux 📦 App
✔️ 5e33f9e #3 2019-07-17 15:18:05 ~16 min macos 📦 dmg
✔️ 5e33f9e #3 2019-07-17 15:21:40 ~19 min windows 📦 exe
✔️ 32dd8f1 #4 2019-07-17 17:00:46 ~9 min android 📦 apk
✔️ 32dd8f1 #4 2019-07-17 17:01:02 ~9 min android-e2e 📦 apk
32dd8f1 #4 2019-07-17 17:01:03 ~9 min linux 📄 log
✔️ 32dd8f1 #4 2019-07-17 17:04:11 ~12 min ios 📦 ipa
✔️ 32dd8f1 #4 2019-07-17 17:05:27 ~13 min macos 📦 dmg
949e6ba #5 2019-07-17 17:47:45 ~9 min linux 📄 log
✔️ 949e6ba #5 2019-07-17 17:48:54 ~10 min android 📦 apk
✔️ 949e6ba #5 2019-07-17 17:49:54 ~11 min android-e2e 📦 apk
✔️ 949e6ba #5 2019-07-17 17:49:58 ~11 min ios 📦 ipa
✔️ 949e6ba #5 2019-07-17 17:50:40 ~11 min macos 📦 dmg
✔️ 949e6ba #5 2019-07-17 17:50:55 ~12 min windows 📦 exe
✔️ 949e6ba #6 2019-07-18 11:50:31 ~13 min linux 📦 App
✔️ 0addec5 #6 2019-07-19 02:15:54 ~9 min android 📦 apk
0addec5 #6 2019-07-19 02:17:04 ~11 min android-e2e 📄 log
✔️ 0addec5 #6 2019-07-19 02:19:09 ~13 min macos 📦 dmg
✔️ 0addec5 #6 2019-07-19 02:19:32 ~13 min ios 📦 ipa
✔️ 0addec5 #7 2019-07-19 02:19:48 ~13 min linux 📦 App
✔️ 0addec5 #6 2019-07-19 02:21:30 ~15 min windows 📦 exe
✔️ 0addec5 #7 2019-07-19 09:48:42 ~9 min android-e2e 📦 apk
Commit #️⃣ Finished (UTC) Duration Platform Result
a43925a #7 2019-07-23 06:40:55 ~9 min macos 📄 log
✔️ a43925a #7 2019-07-23 06:42:45 ~11 min android 📦 apk
✔️ a43925a #8 2019-07-23 06:42:54 ~11 min android-e2e 📦 apk
✔️ a43925a #7 2019-07-23 06:44:19 ~12 min ios 📦 ipa
✔️ a43925a #8 2019-07-23 06:46:19 ~14 min linux 📦 App
✔️ a43925a #7 2019-07-23 06:46:41 ~15 min windows 📦 exe
✔️ 8388868 #9 2019-07-23 16:28:01 ~9 min android-e2e 📦 apk
✔️ 8388868 #8 2019-07-23 16:29:15 ~10 min android 📦 apk
✔️ 8388868 #8 2019-07-23 16:31:45 ~12 min ios 📦 ipa
✔️ 8388868 #9 2019-07-23 16:32:44 ~13 min linux 📦 App
✔️ 8388868 #8 2019-07-23 16:33:52 ~14 min macos 📦 dmg
✔️ 8388868 #8 2019-07-23 16:34:01 ~15 min windows 📦 exe

@bitsikka bitsikka requested a review from vkjr as a code owner July 17, 2019 14:21
@bitsikka
Copy link
Contributor Author

bitsikka commented Jul 17, 2019

please bare with me.. got too excited

  1. desktop issues to look into
  2. add to contact issue (sounds like should be moved to different component nesting.. but has problem if we do that.. so leaving it as it was)

@bitsikka
Copy link
Contributor Author

please bare with me.. got too excited

  1. desktop issues to look into
  2. add to contact issue (sounds like should be moved to different component nesting.. but has problem if we do that.. so leaving it as it was)

#2 is fixed.. at some point though.. structure of components in chat view probably needs refactoring

#1 made test pass by doing this
https://github.com/status-im/status-react/blob/709f50cb1ec7cbf8681daad7553ca0b80ce10b6a/src/status_im/ui/screens/desktop/main/chat/views.cljs#L257
but need to look more

@bitsikka
Copy link
Contributor Author

for #1 looks like doing this https://github.com/status-im/status-react/blob/709f50cb1ec7cbf8681daad7553ca0b80ce10b6a/src/status_im/ui/screens/desktop/main/chat/views.cljs#L257

should still work

All builds have passed, so, going to call it ready for review

@bitsikka
Copy link
Contributor Author

found and fixed(in the last force push) an issue in home screen where if you deleted a chat with long-press chat search field would show up after deletion.

@statustestbot
Copy link

98% of end-end tests have passed

Total executed tests: 44
Failed tests: 1
Passed tests: 43

Failed tests (1)

Click to expand
1. test_send_eth_in_1_1_chat

Device 2: Waiting 300 seconds for ETH update
Device 2: Balance is not changed during 300 seconds!

Transaction with amount 0.001895433 is not found in list of transactions, address is d630b1224683a438582e3e14e35ba5e03513eaab

Device sessions

Passed tests (43)

Click to expand
1. test_block_user_from_public_chat
Device sessions

2. test_filters_from_daap
Device sessions

3. test_copy_and_paste_messages
Device sessions

4. test_send_transaction_from_daap
Device sessions

5. test_request_and_receive_tokens_in_1_1_chat
Device sessions

6. test_deploy_contract_from_daap
Device sessions

7. test_open_transaction_on_etherscan
Device sessions

8. test_public_chat_messaging
Device sessions

9. test_long_press_to_delete_1_1_chat
Device sessions

10. test_password_in_logcat_sign_in
Device sessions

11. test_sign_typed_message
Device sessions

12. test_logcat_send_transaction_from_daap
Device sessions

13. test_send_message_in_group_chat
Device sessions

14. test_logcat_send_transaction_from_wallet
Device sessions

15. test_send_token_with_7_decimals
Device sessions

16. test_modify_transaction_fee_values
Device sessions

17. test_send_eth_from_wallet_to_address
Device sessions

18. test_manage_assets
Device sessions

19. test_logcat_send_transaction_in_1_1_chat
Device sessions

20. test_request_and_receive_eth_in_1_1_chat
Device sessions

21. test_long_press_to_delete_public_chat
Device sessions

22. test_send_emoji
Device sessions

23. test_search_chat_on_home
Device sessions

24. test_logcat_recovering_account
Device sessions

25. test_send_tokens_in_1_1_chat
Device sessions

26. test_network_mismatch_for_send_request_commands
Device sessions

27. test_logcat_sign_message_from_daap
Device sessions

28. test_switch_users_and_add_new_account
Device sessions

29. test_send_stt_from_wallet
Device sessions

30. test_login_with_new_account
Device sessions

31. test_send_eth_from_wallet_to_contact
Device sessions

32. test_add_contact_from_public_chat
Device sessions

33. test_send_two_transactions_one_after_another_in_dapp
Device sessions

34. test_password_in_logcat_creating_account
Device sessions

35. test_backup_recovery_phrase
Device sessions

36. test_offline_status
Device sessions

37. test_open_google_com_via_open_dapp
Device sessions

38. test_unread_messages_counter_public_chat
Device sessions

39. test_sign_message_from_daap
Device sessions

40. test_user_can_remove_profile_picture
Device sessions

41. test_share_contact_code_and_wallet_address
Device sessions

42. test_refresh_button_browsing_app_webview
Device sessions

43. test_backup_recovery_phrase_warning_from_wallet
Device sessions

@flexsurfer flexsurfer removed the bounty label Jul 18, 2019
@annadanchenko annadanchenko self-assigned this Jul 19, 2019
@bitsikka
Copy link
Contributor Author

bitsikka commented Jul 20, 2019

Please still bare with me on this!

In the current solution I have been quite unsatisfied with the weird hacky trick I discovered and used (where, a non-animatable property :margin-bottom is being animated). Use of convolutedly-passing-around-padding-value, and use of listening-and-using-anim-actual-value wasn't sparking joy either.

It feels like it makes the revealing and hiding of connectivity bar not so smooth, or something subtly wrong.

So I couldn't help looking for better solution.

I think I found it! a solution where hacky tricks are not(or minimally) needed.

With some more testing and cleaning up I will update the PR soon.

@bitsikka
Copy link
Contributor Author

@flexsurfer
In this update, implementation has changed significantly, previous review is obsolete.
In this, I had to fundamentally re-implement how native animation for connectivity-view works. I have put copious amount of comment in code(to be removed, when finalized).

@annadanchenko / test team
I have tested this in Android-avd as well as iOS-simulator all the stuff I mentioned in the Testing Notes section in issue description above #8589 (comment).

MacOS build failed and I suspect there are things that may be broken in desktops. I don't know how much of a priority this is, but I have stayed away from dev building/testing desktop so far. Anyway, this should be fairly easy to fix on desktop when required/needed.

@bitsikka
Copy link
Contributor Author

found and fixed(in the last force push) an issue in home screen where if you deleted a chat with long-press chat search field would show up after deletion.

This issue which is fixed in this PR is actually a search-bar bug that happens in Nightly also. Similar appearance of bug identified by @asemiankevich in #8599 (comment)

@flexsurfer flexsurfer requested review from vitvly and flexsurfer and removed request for yenda and vkjr July 23, 2019 07:47
@bitsikka
Copy link
Contributor Author

@bitsikka in desktop build ( Mac OS) when i join public chat:

IMAGE

steps:

  • open status desktop
  • login with recovery phrase since creating new account is not working (known bug)
  • tap + -> join Status channel

I can't reproduce it in nightly. Please take a look

Got it!
Jumping now into desktop dev to troubleshoot.

@statustestbot
Copy link

84% of end-end tests have passed

Total executed tests: 44
Failed tests: 7
Passed tests: 37

Failed tests (7)

Click to expand
1. test_request_and_receive_tokens_in_1_1_chat

Device 2: Tap on CommandsButton
Device 2: Tap on RequestCommand

Device 2: 'STTAssetButton' is not found on the screen

Device sessions

2. test_logcat_send_transaction_in_1_1_chat

Device 1: Tap on CommandsButton
Device 1: Tap on SendCommand

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

Device sessions

3. test_request_and_receive_eth_in_1_1_chat

Device 2: Tap on CommandsButton
Device 2: Tap on RequestCommand

Device 2: 'ETHroAssetButton' is not found on the screen

Device sessions

4. test_send_tokens_in_1_1_chat

Device 1: Tap on CommandsButton
Device 1: Tap on SendCommand

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

Device sessions

5. test_network_mismatch_for_send_request_commands

Device 1: Tap on CommandsButton
Device 1: Tap on SendCommand

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

Device sessions

6. test_send_eth_in_1_1_chat

Device 1: Tap on CommandsButton
Device 1: Tap on SendCommand

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

Device sessions

7. test_send_two_transactions_one_after_another_in_dapp

Device 1: Tap on TransactionsButton
Device 1: Tap on SignWithPasswordButton

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

Device sessions

Passed tests (37)

Click to expand
1. test_block_user_from_public_chat
Device sessions

2. test_filters_from_daap
Device sessions

3. test_copy_and_paste_messages
Device sessions

4. test_send_transaction_from_daap
Device sessions

5. test_deploy_contract_from_daap
Device sessions

6. test_open_transaction_on_etherscan
Device sessions

7. test_public_chat_messaging
Device sessions

8. test_long_press_to_delete_1_1_chat
Device sessions

9. test_password_in_logcat_sign_in
Device sessions

10. test_sign_typed_message
Device sessions

11. test_logcat_send_transaction_from_daap
Device sessions

12. test_send_message_in_group_chat
Device sessions

13. test_logcat_send_transaction_from_wallet
Device sessions

14. test_send_token_with_7_decimals
Device sessions

15. test_modify_transaction_fee_values
Device sessions

16. test_send_eth_from_wallet_to_address
Device sessions

17. test_manage_assets
Device sessions

18. test_long_press_to_delete_public_chat
Device sessions

19. test_send_emoji
Device sessions

20. test_search_chat_on_home
Device sessions

21. test_logcat_recovering_account
Device sessions

22. test_logcat_sign_message_from_daap
Device sessions

23. test_switch_users_and_add_new_account
Device sessions

24. test_send_stt_from_wallet
Device sessions

25. test_login_with_new_account
Device sessions

26. test_send_eth_from_wallet_to_contact
Device sessions

27. test_add_contact_from_public_chat
Device sessions

28. test_password_in_logcat_creating_account
Device sessions

29. test_backup_recovery_phrase
Device sessions

30. test_offline_status
Device sessions

31. test_open_google_com_via_open_dapp
Device sessions

32. test_unread_messages_counter_public_chat
Device sessions

33. test_sign_message_from_daap
Device sessions

34. test_user_can_remove_profile_picture
Device sessions

35. test_share_contact_code_and_wallet_address
Device sessions

36. test_refresh_button_browsing_app_webview
Device sessions

37. test_backup_recovery_phrase_warning_from_wallet
Device sessions

@bitsikka
Copy link
Contributor Author

@pombeirp @vkjr I have been unable to setup dev build for desktop following instructions in https://status.im/build_status/desktop.html

I twiddled and fiddled trying to bypass various errors without luck for a while, giving up finally.

The documentation I linked itself seems to be needing update. It talks of doing make startdev-desktop and there's no mention of make watch-desktop. I mainly had trouble doing make desktop-server with following error

[nix-shell:~/Projects/status-react]$ make desktop-server
make[1]: Entering directory '/Users/___/Projects/status-react'
node ubuntu-server.js
outerRealmConstructor: undefined
internal/modules/cjs/loader.js:583
    throw err;
    ^

Error: Cannot find module '/Users/___/Projects/status-react/node_modules/realm/compiled/node-v64_darwin_x64/realm.node'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
    at Function.Module._load (internal/modules/cjs/loader.js:507:25)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (/Users/___/Projects/status-react/node_modules/realm/lib/index.js:112:28)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
make[1]: Leaving directory '/Users/___/Projects/status-react'
make[1]: *** [Makefile:189: desktop-server] Error 1

But even before that there were other problems I tried to resolve, like trying to get realm.node module where it was expected.

help!

@asemiankevich I'm afraid I cannot troubleshoot the problem without being able to have dev build setup.

@bitsikka
Copy link
Contributor Author

Help!

In the process of trying to get dev build of desktop going I tried starting over with nix-collect-garbage -d
then failed and gave up.

Now I cannot get iOS dev build setup with following error.

...
copying path '/nix/store/c32rzhsfgsrlg7c80m8vskgq4wmy78fj-libidn2-2.0.5' from 'https://nix-cache.status.im'...
copying path '/nix/store/92za8h94nrkwzb2052b44y7518brym48-libusb-1.0.22' from 'https://nix-cache.status.im'...
copying path '/nix/store/cxwms1sg4ss472kfhglzkgvdbdlxrh6l-libutil-osx-10.11.6' from 'https://nix-cache.status.im'...
hash mismatch importing path '/nix/store/cxwms1sg4ss472kfhglzkgvdbdlxrh6l-libutil-osx-10.11.6';
  wanted: sha256:185h9r8i9bjrqakdpznz3j1jcykpdpizbylgn2pzik9s3vpz2qqz
  got:    sha256:134k0vidc7f0p4zxhjv5qq1609m14pvvbiwn421cg4yx261752i4
copying path '/nix/store/kpw5wqmcczld01kcgvznsrvr9jjw2vm4-libyaml-0.2.1' from 'https://nix-cache.status.im'...
error: build of '/nix/store/2j1kdh49d83ax37z42fq5gqjdj6nxh75-stdenv-darwin.drv', '/nix/store/800l2ps3lb5dblbzf6jz2q89f89xha5k-unzip-6.0.drv', '/nix/store/9dlbv23rxb3lbr0n4k0b3xc49bxp4a67-curl-7.64.0.drv', '/nix/store/a0aix5lvz46rd50sc11ixm8cqhnx09vn-jq-1.6.drv', '/nix/store/f2xc8zp7znaannj9q9byy3zksrwg37rj-git-2.19.2.drv', '/nix/store/f458d7k73p245c2zmq55ys0z2aa4i8fj-leiningen-2.8.3.drv', '/nix/store/fwxlb9x9ghfh3gh1876sjxwg082y6m66-clojure-1.10.0.411.drv', '/nix/store/h4hx8b16pk3fvk2afr9dg28kd5ma2xij-ruby-2.5.3.drv', '/nix/store/jn392n514d78n7y6if4gphkxxgjkpdvz-xcode-wrapper-10.2.1.drv', '/nix/store/m7s9yfma68lmxqslyllaqq1hn8q7rhn3-ps-1003.1-2008.drv', '/nix/store/n02kb7qpjblh0ccb917xra9j8v0j8dkc-bundler-1.17.2.drv', '/nix/store/q80181rmc5zsa9iv9jhmp05l4hxp020y-status-go-v0.30.0-beta.3-9a0502f-ios.drv', '/nix/store/r91yssj1panwy2wwj3sgg28qpyci27h4-cocoapods-1.5.3.drv', '/nix/store/scqbidqr61njcfv4qzj4gw3pjpd0jy2q-apache-maven-3.6.0.drv', '/nix/store/sn9zxjphg1x7231yv4n4x42mc5g02hav-yarn-1.13.0.drv', '/nix/store/x4r8g7s3jlp0x7f7rz4awspngk3g1f64-procps-1003.1-2008.drv', '/nix/store/x6cn2pzrjkcbnbln04vmsihk5mmmjayg-wget-1.20.1.drv', '/nix/store/x9w7zd9lb2fnk9vgf7dkmyf10m4xx4r4-lsof-4.91.drv', '/nix/store/xnsbzmvxqadjm1w7qgis8dl17r7y25xb-ncurses-6.1-20181027.drv', '/nix/store/zc915s5af2cnmqcr613363g9wvjqd6qy-bash-interactive-4.4-p23.drv' failed
make: *** [shell] Error 1

for those continuing with their setups from while ago, things probably continue to work, but for starting/re-starting from fresh folks setting up build environment seems to have become broken except maybe for Android.

cc @pombeirp @jakubgs

@annadanchenko
Copy link

based on discussion with @rachelhamlin @flexsurfer @yenda we will not block mobile app release because of the desktop issue in this PR.

Reasons:

  • desktop nightly is already broken
  • soon we will have mobile ui desktop
  • links to nightlies will be removed from the website

So, moving this PR back to TO TEST and we focus only on mobile platforms while testing it

@bitsikka
Copy link
Contributor Author

based on discussion with @rachelhamlin @flexsurfer @yenda we will not block mobile app release because of the desktop issue in this PR.

Reasons:

  • desktop nightly is already broken
  • soon we will have mobile ui desktop
  • links to nightlies will be removed from the website

So, moving this PR back to TO TEST and we focus only on mobile platforms while testing it

Great! I thought so too. Wise to focus on mobile for now.

I will be contributing to desktop for sure when the time comes, as I was initially more interested, still equally interested, about desktop.

Thanks!

@asemiankevich
Copy link
Contributor

i logged #8636 for desktop issue. Mobile builds look good to me, message is not jumping anymore (1x1, public , group chat). Also, search problem on Home seems to be fixed here as well .

@rachelhamlin
Copy link
Contributor

Thanks @asemiankevich!

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
@flexsurfer flexsurfer merged commit 07dfc95 into status-im:develop Jul 25, 2019
@bitsikka
Copy link
Contributor Author

🎉

thanks everyone!

@bitsikka bitsikka deleted the fix/#8556 branch July 25, 2019 12:35
@pedropombeiro
Copy link
Contributor

@bitsikka sorry you're running into issues with setting up the environment. Regarding make watch-*, that is invoked inside make startdev-*already. I will try reproducing with a new environment.

@pedropombeiro
Copy link
Contributor

OK, I already found an issue in https://github.com/status-im/status-react/blob/develop/nix/shell.sh#L48, please try adding |darwin|macos to that list.

@pedropombeiro
Copy link
Contributor

I'm now seeing a yarn build issue with the Detox dependency, my guess is that this was introduced by the latest RN Desktop upgrade. cc @vkjr

@bitsikka
Copy link
Contributor Author

@pombeirp
Thanks!

I managed to get a dev build environment for iOS by turning off nix-cache.status.im without which, first make shell after make clean, with $TARGET_OS set to ios started compiling everything (took a loong time 😅) pulling stuff from cache.nixos.org

I will wait until your latest PRs and issues you have found to be fixed/merged, cache be populated(or something), before I rebase anything else new, and to make clean and stuff.

I'm good to continue working on issues for now.

Note(not priority): make nix-clean as you know wipes out /nix. For those who are also using Nix package manager for system's package management needs - it is less than practical to do that. Maybe there's a way to separate system Nix store and project specific nix store or something.

Going to NOT run nix-add-gcroots and run nix-collect-garbage -d as a way to accomplish the intent of make nix-clean for now. Only rarely if needed.

@jakubgs
Copy link
Member

jakubgs commented Jul 29, 2019

I managed to get a dev build environment for iOS by turning off nix-cache.status.im without which, first make shell after make clean, with $TARGET_OS set to ios started compiling everything (took a loong time sweat_smile) pulling stuff from cache.nixos.org

Why was this necessary?

make nix-clean as you know wipes out /nix.

Wrong, now nix-clean just runs nix/clean.sh which only removes status-react related stuff from /nix/store. The old behavior is now under the nix-purge target.

@bitsikka
Copy link
Contributor Author

I managed to get a dev build environment for iOS by turning off nix-cache.status.im without which, first make shell after make clean, with $TARGET_OS set to ios started compiling everything (took a loong time sweat_smile) pulling stuff from cache.nixos.org

Why was this necessary?

I didn't know anything better. I ran regular setup after clean and ran into either

hash mismatch importing path '/nix/store/cxwms1sg4ss472kfhglzkgvdbdlxrh6l-libutil-osx-10.11.6';

or something else

so I tried different things, and ended up with long thingy that ended up giving me result I needed.

make nix-clean as you know wipes out /nix.

Wrong, now nix-clean just runs nix/clean.sh which only removes status-react related stuff from /nix/store. The old behavior is now under the nix-purge target.

That is wonderful!

Did not know that.. I just assumed the old behavior.. having done that couple of times before. :(

I manually cleaned /nix and re-installed system stuff, having gotten the list of system installed packages first. I was thinking maybe there was something in /nix/* that was dirty or something.

Thanks! @jakubgs @pombeirp

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.

Last message jumps up after chat is opened
10 participants