[ 
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}
> > [email protected] test 
> > C:\Users\kant\Documents\GitHub\cordova-lib\cordova-lib
> > npm run jasmine && npm run jshint
> > [email protected] 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.<anonymous> 
> (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)
> > [email protected] 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to