Skip to content
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

cannot use VRT + Cypress agent to compare images for projects that use odiff or look-same libraries #175

Closed
alexniculae opened this issue Apr 20, 2022 · 3 comments

Comments

@alexniculae
Copy link

alexniculae commented Apr 20, 2022

Trying to use VRT + Cypress agent to compare images for projects that use odiff or look-same image compare libraries will result in the following error:

  CypressError: `cy.task('VRT_TRACK_IMAGE_MULTIPART')` failed with the following error:

  > {
        "path": "/test-runs/multipart",
        "name": "Error",
        "message": "",
        "exception": {},
        "stack": "Error\n    at ChildProcess.<anonymous> (/node_modules/odiff-bin/odiff.js:147:13)\n    at ChildProcess.emit (events.js:327:22)\n    at maybeClose (internal/child_process.js:1021:16)\n    at Socket.<anonymous> (internal/child_process.js:443:11)\n    at Socket.emit (events.js:315:20)\n    at Pipe.<anonymous> (net.js:674:12)"
  }

  https://on.cypress.io/api/task

Could you please let me know if

  • this might come from something that I am not doing correctly
    • e.g. an error in the installation or the implementation, or
  • if it's an expected/known issue
    • e.g. cannot use odiff or look-same libraries with Cypress agent

I tried to find some documentation on this or troubleshoot myself, but unfortunately could not find anything.

Thank you 🙂

@alexniculae
Copy link
Author

After some more investigations it looks like:

  • only projects that use odiff library for the comparison are failing with the above error
  • they don't fail when creating the baseline image, only when trying to check the diffs
  • any new print-screen seems to be created in the VRT project build as a new baseline, with status New
    • maybe because the diffs are never calculated by the odiff library

If I can share more details on this, I'd be happy to. Not sure if anyone else has faced this problem in the past or is now.

@pashidlos
Copy link
Member

thanks for your question

unfortunately there is en issue using odiff library inside alpine linux docker images dmtrKovalenko/odiff#55

unless it's solved or any known workaround found we could not utilise that

@alexniculae
Copy link
Author

alexniculae commented May 13, 2022

Thank you Pavel, good to know this 🙂

Closing this issue then, as it needs to be fixed in the thread above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants