-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Source and destination must not be the same. #4637
Comments
@kemsky Thank you for opening this issue. This is definitely due to our updating I wasn't able to reproduce this by installing mocha-teamcity-reporter I do see that the teamcity reporter was properly found and is logging, but not displaying the error you are seeing.
Can you provide ALL of the configuration around your use of the Why this is happeningEffectively in the newer versions of fs-extra that we upgraded to using in the Cypress code, fs-extra is more diligent in checking that we are not copying a file from a source to the exact same destination file (even if symlinked). Current WorkaroundDowngrade to Cypress version 3.3.1 - this will not error in that version. |
@jennifer-shehane there is nothing special in our setup: {
"projectId": "XXXXXX",
"baseUrl": "http://localhost:5001",
"testFiles": "**/*.spec.js",
"integrationFolder": "cypress/tests/integration",
"chromeWebSecurity": false,
"modifyObstructiveCode": false,
"viewportWidth": 1200
} We are using builtin teamcity reporter (docs link https://docs.cypress.io/guides/tooling/reporters.html#Reporter-Options) Exception message does not contain actual resource path, but nothing points to mistake on our end. |
Oh, interesting. I actually didn't realize that we package teamcity reporter into Cypress. We use our own fork of the project here https://github.com/cypress-io/mocha-teamcity-reporter so let me dig into that. |
I'm seeing these errors as well (not using teamcity reporter). So it might be related to something else. Looks like it is doing some processing with the video? |
Using Cypress 3.4.0 by the way. |
Any update on this? It is randomly failing our builds and making Cypress even more flaky than the Selenium we are trying to replace... |
I have had the same issue as described by @jvanoostveen I got the error right after the video compression started |
The label says: existing workaround, which is not really true, as the workaround is not updating. We'll been stuck on 3.3.1 until this bug is fixed... |
This is happening for us on 3.4.0 as well. |
This is happening on 4.3.1 as well, but it could not reproduce stably. |
@jennifer-shehane, can't you simply add some debug information to logs to trace this problem? We can not upgrade since July. |
@jennifer-shehane Will the resolution of this issue involve updating the paths so the source and destination are not the same? I'm not sure exactly what paths those are, but I assume the paths of video files that are being written. I'm interested in potentially working on this, since this is a blocking issue for my team that prevents us from being able to use the latest Cypress. |
Any news regarding ? Its still happens to us occasionally and fails our build... |
@adil060606, version 4.0.1 works for me, but I don't know how stable it will be for you. |
I'm not sure this issue is still occurring for anyone in our latest version. We did upgrade Closing as resolved. If you're experiencing a bug similar to this in Cypress, please open a new issue with a fully reproducible example that we can run. There may be a specific edge case with the issue that we need more detail to fix. |
Current behavior:
Random fails on CI server
Desired behavior:
NO errors.
Steps to reproduce: (app code and test code)
cypress run --reporter teamcity
Versions
"cypress": "3.3.2"
nodejs 12.*
The text was updated successfully, but these errors were encountered: