Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9C78710D4C for ; Fri, 24 Oct 2014 09:16:34 +0000 (UTC) Received: (qmail 63589 invoked by uid 500); 24 Oct 2014 09:16:33 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 63562 invoked by uid 500); 24 Oct 2014 09:16:33 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 63550 invoked by uid 99); 24 Oct 2014 09:16:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Oct 2014 09:16:33 +0000 Date: Fri, 24 Oct 2014 09:16:33 +0000 (UTC) From: "Andrey Kurdyumov (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-7863) cordova-lib tests fail MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-7863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14182619#comment-14182619 ] Andrey Kurdyumov commented on CB-7863: -------------------------------------- This issue could have long lasting effect. Right now tests are not even produce output due to bug in shelljs. Looks like this is because of some race conditions in the *shelljs.rm* call. Once I replace shelljs.rm calls with calls to *fs-extra.removeSync* issue goes away and I see 26 failures in the tests. When I switch to 4.0.x branch, issue with shelljs persists, but after replace with fs-extra, problem goes away. I also reproduce this on the other PC running Windows 8.1 x64 Pro Also looks like the other ENOTEMPTY warnings also produced by shelljs.rm. > cordova-lib tests fail > ---------------------- > > Key: CB-7863 > URL: https://issues.apache.org/jira/browse/CB-7863 > Project: Apache Cordova > Issue Type: Bug > Components: CordovaLib > Affects Versions: Master > Environment: Windows 8.1 x64 > CordovaLib a2165e2f211be2ab3642b2e83b37c82862588a24 > Reporter: Andrey Kurdyumov > > Running `npm test` produce following output > {code} > > cordova-lib@4.0.1-dev test C:\Users\kant\Documents\GitHub\cordova-lib\cordova-lib > > npm run jasmine && npm run jshint > > cordova-lib@4.0.1-dev jasmine C:\Users\kant\Documents\GitHub\cordova-lib\cordova-lib > > jasmine-node --captureExceptions --color spec-plugman spec-cordova > ........................................................................................................................ > ........................................................................................................................ > ........................................................................................................................ > ........................................................................................................................ > ................rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\AppData\Local\Temp\plugman/res/xml > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\AppData\Local\Temp\plugman/res/xml > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\AppData\Local\Temp\plugman/res > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\AppData\Local\Temp\plugman/res/xml > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\AppData\Local\Temp\plugman/res > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\AppData\Local\Temp\plugman > .rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\AppData\Local\Temp\plugman/assets/www > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\AppData\Local\Temp\plugman/assets/www > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\AppData\Local\Temp\plugman/assets > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\AppData\Local\Temp\plugman/assets/www > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\AppData\Local\Temp\plugman/assets > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\AppData\Local\Temp\plugman > .................rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\AppData\Local\Temp\test_plugman\project/ > src/one/two/three > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\AppData\Local\Temp\test_plugman\project/src/one/two/three > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\AppData\Local\Temp\test_plugman\project/src/one/two > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\AppData\Local\Temp\test_plugman\project/src/one/two/three > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\AppData\Local\Temp\test_plugman\project/src/one/two > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\AppData\Local\Temp\test_plugman\project/src/one > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\AppData\Local\Temp\test_plugman\project/src/one/two/three > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\AppData\Local\Temp\test_plugman\project/src/one/two > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\AppData\Local\Temp\test_plugman\project/src/one > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\AppData\Local\Temp\test_plugman\project/src > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\AppData\Local\Temp\test_plugman\project/src/one/two/three > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\AppData\Local\Temp\test_plugman\project/src/one/two > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\AppData\Local\Temp\test_plugman\project/src/one > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\AppData\Local\Temp\test_plugman\project/src > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\AppData\Local\Temp\test_plugman\project > ...........FF.....FF..........FFF...FF...........................rm: could not remove directory (code ENOTEMPTY): C:\Use > rs\kant\AppData\Local\Temp\plugin > .......................rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\Documents\GitHub\cordova-lib\cordo > va-lib\spec-plugman\projects\android_uninstall.test/assets/www > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\Documents\GitHub\cordova-lib\cordova-lib\spec-plugman\pro > jects\android_uninstall.test/assets/www > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\Documents\GitHub\cordova-lib\cordova-lib\spec-plugman\pro > jects\android_uninstall.test/assets > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\Documents\GitHub\cordova-lib\cordova-lib\spec-plugman\pro > jects\android_uninstall.test/assets/www > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\Documents\GitHub\cordova-lib\cordova-lib\spec-plugman\pro > jects\android_uninstall.test/assets > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\Documents\GitHub\cordova-lib\cordova-lib\spec-plugman\pro > jects\android_uninstall.test > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\Documents\GitHub\cordova-lib\cordova-lib\spec-plugman\pro > jects\android_uninstall.test2/assets/www > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\Documents\GitHub\cordova-lib\cordova-lib\spec-plugman\pro > jects\android_uninstall.test2/assets/www > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\Documents\GitHub\cordova-lib\cordova-lib\spec-plugman\pro > jects\android_uninstall.test2/assets > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\Documents\GitHub\cordova-lib\cordova-lib\spec-plugman\pro > jects\android_uninstall.test2/assets/www > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\Documents\GitHub\cordova-lib\cordova-lib\spec-plugman\pro > jects\android_uninstall.test2/assets > rm: could not remove directory (code ENOTEMPTY): C:\Users\kant\Documents\GitHub\cordova-lib\cordova-lib\spec-plugman\pro > jects\android_uninstall.test2 > .shell.js: internal error > Error: EPERM, operation not permitted 'C:\Users\kant\Documents\GitHub\cordova-lib\cordova-lib\spec-plugman\projects\andr > oid_uninstall.test\assets\www\cordova.js' > at Object.fs.lstatSync (fs.js:690:18) > at rmdirSyncRecursive (C:\Users\kant\Documents\GitHub\cordova-lib\cordova-lib\node_modules\shelljs\src\rm.js:20:23) > at rmdirSyncRecursive (C:\Users\kant\Documents\GitHub\cordova-lib\cordova-lib\node_modules\shelljs\src\rm.js:23:7) > at rmdirSyncRecursive (C:\Users\kant\Documents\GitHub\cordova-lib\cordova-lib\node_modules\shelljs\src\rm.js:23:7) > at C:\Users\kant\Documents\GitHub\cordova-lib\cordova-lib\node_modules\shelljs\src\rm.js:141:7 > at Array.forEach (native) > at Object._rm (C:\Users\kant\Documents\GitHub\cordova-lib\cordova-lib\node_modules\shelljs\src\rm.js:105:9) > at Object.rm (C:\Users\kant\Documents\GitHub\cordova-lib\cordova-lib\node_modules\shelljs\src\common.js:186:23) > at null. (C:\Users\kant\Documents\GitHub\cordova-lib\cordova-lib\spec-plugman\uninstall.spec.js:55:15) > at jasmine.Block.execute (C:\Users\kant\Documents\GitHub\cordova-lib\cordova-lib\node_modules\jasmine-node\lib\jasmi > ne-node/jasmine-1.3.1.js:1145:17) > > cordova-lib@4.0.1-dev jshint C:\Users\kant\Documents\GitHub\cordova-lib\cordova-lib > > node node_modules/jshint/bin/jshint src > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org