From 0b16d4e9ba80a718c51c2b02ef9796bbe26e18c2 Mon Sep 17 00:00:00 2001 From: Rosen Vladimirov Date: Wed, 20 Dec 2017 11:03:47 +0200 Subject: [PATCH] Fix EMFILE error when running on Android (#3277) 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