From 82acb49663c4c663163362bba13aa7aa823957c2 Mon Sep 17 00:00:00 2001 From: rosen-vladimirov Date: Wed, 20 Dec 2017 01:31:54 +0200 Subject: [PATCH] Fix EMFILE error when running on Android During running on Android, CLI tries to take smart decision which files to upload. This is done by checking the shasum of all project files and comparing it with the latest one uploaded to device. However, in huge projects, this leads to error with code EMFILE as the OS have limits for opened file handles. This happens as CLI executes the operation simultaneously for all files. In order to fix this behavior, execute the actions by chunks (currently set to 100). Introduce new method in helpers to execute this action and add tests for it. --- lib/common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common b/lib/common index 1bb198eab6..0d981032ba 160000 --- a/lib/common +++ b/lib/common @@ -1 +1 @@ -Subproject commit 1bb198eab65994f69d7db7e334eea461233da1f0 +Subproject commit 0d981032bad65fcbf429ac1e81b89f99442ca2ff