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

Random "Could not take DOM snapshot" failures #980

Open
kennydp opened this issue Jan 22, 2025 · 0 comments
Open

Random "Could not take DOM snapshot" failures #980

kennydp opened this issue Jan 22, 2025 · 0 comments

Comments

@kennydp
Copy link

kennydp commented Jan 22, 2025

The problem

We have random missing snaphots when running our pipelines in our CI. Which snapshots are missing appear random. The pipeline failures also appear random. Even with the verbose logging there is no clear reason why this should happen.

Environment

  • Node version: 20.18.1
  • @percy/cli version: 1.30.6
  • @percy/ember: "4.2.0",
  • Type of shell command-line [interface]: percy exec --parallel --verbose -- ember exam --f 'percy'

Details

This is the error we get

not ok 31 Chrome 131.0 - [963 ms] - Exam Partition 3 - Percy | settings.edit: Edit settings page
    ---
        stack: >
                at console.eval (webpack://our-repo/./tests/helpers/index.ts?:73:42)
                at Object.invoke (webpack://our-repo/../../../../../node_modules/.pnpm/sinon@18.0.0/node_modules/sinon/pkg/sinon-esm.js?:71:516)
                at console.functionStub (webpack://our-repo/../../../../../node_modules/.pnpm/sinon@18.0.0/node_modules/sinon/pkg/sinon-esm.js?:385:257)
                at Function.invoke (webpack://our-repo/../../../../../node_modules/.pnpm/sinon@18.0.0/node_modules/sinon/pkg/sinon-esm.js?:316:199)
                at console.functionStub [as error] (webpack://our-repo/../../../../../node_modules/.pnpm/sinon@18.0.0/node_modules/sinon/pkg/sinon-esm.js?:330:92)
                at Function.log (http://localhost:7357/assets/test-support.js:1446:67)
                at Object.error (http://localhost:7357/assets/test-support.js:1420:25)
                at percySnapshot (webpack://our-repo/../rewritten-packages/@percy/ember.dd3fc99d/node_modules/@percy/ember/index.js?:95:9)
        message: >
            global failure: [percy] Could not take DOM snapshot "Edit settings page"
        negative: >
            false
        browser log: |
            {"type":"error","text":"[percy] Could not take DOM snapshot \"Edit settings page\""}
            {"type":"error","text":"[percy] TypeError: Failed to fetch"}
    ...

From what I can see this error comes from here:

But without an idea why the postSnapshot fails I can't really do much.

This is causing us to have to rerun our pipelines.

Let me know if you need more info

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

1 participant