cypress: Error: Source and destination must not be the same.

Current behavior:

Random fails on CI server

[00:19:14]	[Step 21/21]   (Video)
[00:19:14]	[Step 21/21] 
[00:19:14]	[Step 21/21]   - Started processing:   Compressing to 32 CRF
[00:19:16]	[Step 21/21]   - Finished processing:  C:\TeamCity\buildAgent\work\89524d52ec0f2109\XXXXXXX\cypress\videos\master.affiliate.plan.name.spec.js.mp4 (1 second)
[00:19:16]	[Step 21/21] 
[00:19:16]	[Step 21/21] { Error: Source and destination must not be the same.
[00:19:16]	[Step 21/21]     at getStats (C:\Users\Administrator\AppData\Local\Cypress\Cache\3.3.2\Cypress\resources\app\packages\server\node_modules\fs-extra\lib\util\stat.js:82:17)
[00:19:16]	[Step 21/21]     at fs.stat (C:\Users\Administrator\AppData\Local\Cypress\Cache\3.3.2\Cypress\resources\app\packages\server\node_modules\fs-extra\lib\util\stat.js:51:16)
[00:19:16]	[Step 21/21]     at C:\Users\Administrator\AppData\Local\Cypress\Cache\3.3.2\Cypress\resources\app\packages\server\node_modules\graceful-fs\polyfills.js:285:20
[00:19:16]	[Step 21/21]     at FSReqWrap.oncomplete (fs.js:153:5)
[00:19:16]	[Step 21/21] 
[00:19:16]	[Step 21/21]   cause: Error: Source and destination must not be the same.
[00:19:16]	[Step 21/21]     at getStats (C:\Users\Administrator\AppData\Local\Cypress\Cache\3.3.2\Cypress\resources\app\packages\server\node_modules\fs-extra\lib\util\stat.js:82:17)
[00:19:16]	[Step 21/21]     at fs.stat (C:\Users\Administrator\AppData\Local\Cypress\Cache\3.3.2\Cypress\resources\app\packages\server\node_modules\fs-extra\lib\util\stat.js:51:16)
[00:19:16]	[Step 21/21]     at C:\Users\Administrator\AppData\Local\Cypress\Cache\3.3.2\Cypress\resources\app\packages\server\node_modules\graceful-fs\polyfills.js:285:20
[00:19:16]	[Step 21/21]     at FSReqWrap.oncomplete (fs.js:153:5)
[00:19:16]	[Step 21/21] ,
[00:19:16]	[Step 21/21]   isOperational: true }
[00:19:16]	[Step 21/21] Error: Source and destination must not be the same.
[00:19:16]	[Step 21/21]     at getStats (C:\Users\Administrator\AppData\Local\Cypress\Cache\3.3.2\Cypress\resources\app\packages\server\node_modules\fs-extra\lib\util\stat.js:82:17)
[00:19:16]	[Step 21/21]     at fs.stat (C:\Users\Administrator\AppData\Local\Cypress\Cache\3.3.2\Cypress\resources\app\packages\server\node_modules\fs-extra\lib\util\stat.js:51:16)
[00:19:16]	[Step 21/21]     at C:\Users\Administrator\AppData\Local\Cypress\Cache\3.3.2\Cypress\resources\app\packages\server\node_modules\graceful-fs\polyfills.js:285:20
[00:19:16]	[Step 21/21]     at FSReqWrap.oncomplete (fs.js:153:5)

Desired behavior:

NO errors.

Steps to reproduce: (app code and test code)

cypress run --reporter teamcity

Versions

“cypress”: “3.3.2”

nodejs 12.*

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 16 (3 by maintainers)

Most upvoted comments

Any update on this? It is randomly failing our builds and making Cypress even more flaky than the Selenium we are trying to replace…

@adil060606, version 4.0.1 works for me, but I don’t know how stable it will be for you.

This is happening for us on 3.4.0 as well.