Visual-Regression-Tracker / agent-cypress

Visual Regression Tracker integration plugin
Apache License 2.0
74 stars 9 forks source link

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

Closed alexniculae closed 2 years ago

alexniculae commented 2 years ago

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

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

Thank you 🙂

alexniculae commented 2 years ago

After some more investigations it looks like:

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 commented 2 years ago

thanks for your question

unfortunately there is en issue using odiff library inside alpine linux docker images https://github.com/dmtrKovalenko/odiff/issues/55

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

alexniculae commented 2 years ago

Thank you Pavel, good to know this 🙂

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