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

Transient errors in visual diff tests, likely due to unexpected navigation #21056

Closed
rsimha opened this issue Feb 25, 2019 · 5 comments
Closed

Comments

@rsimha
Copy link
Contributor

rsimha commented Feb 25, 2019

@danielrozenberg Not sure if this is a one off, or a recurring problem. I'll post an update if I see this happen again.

https://travis-ci.org/ampproject/amphtml/jobs/498357687#L1351-L1368

[20:19:46] ERROR: Error: Execution context was destroyed, most likely because of a navigation.
    at rewriteError (/home/travis/build/ampproject/amphtml/build-system/tasks/visual-diff/node_modules/puppeteer/lib/ExecutionContext.js:144:15)
    at process._tickCallback (internal/process/next_tick.js:68:7)
  -- ASYNC --
    at ExecutionContext.<anonymous> (/home/travis/build/ampproject/amphtml/build-system/tasks/visual-diff/node_modules/puppeteer/lib/helper.js:144:27)
    at _documentPromise._contextPromise.then (/home/travis/build/ampproject/amphtml/build-system/tasks/visual-diff/node_modules/puppeteer/lib/FrameManager.js:459:38)
    at process._tickCallback (internal/process/next_tick.js:68:7)
  -- ASYNC --
    at Frame.<anonymous> (/home/travis/build/ampproject/amphtml/build-system/tasks/visual-diff/node_modules/puppeteer/lib/helper.js:144:27)
    at Page.$$ (/home/travis/build/ampproject/amphtml/build-system/tasks/visual-diff/node_modules/puppeteer/lib/Page.js:323:29)
    at Page.<anonymous> (/home/travis/build/ampproject/amphtml/build-system/tasks/visual-diff/node_modules/puppeteer/lib/helper.js:145:23)
    at waitForElementVisibility (/home/travis/build/ampproject/amphtml/build-system/tasks/visual-diff/helpers.js:150:44)
    at waitForLoaderDots (/home/travis/build/ampproject/amphtml/build-system/tasks/visual-diff/helpers.js:122:35)
    at page.goto.then.then (/home/travis/build/ampproject/amphtml/build-system/tasks/visual-diff/index.js:396:19)
    at process._tickCallback (internal/process/next_tick.js:68:7)
[20:19:46] FATAL: Some tests have failed locally.
Percy is now processing. You can view the visual diffs here: https://percy.io/ampproject/amphtml/builds/1485866
[20:19:46] Finished 'visual-diff' after 57 s
@rsimha
Copy link
Contributor Author

rsimha commented Feb 25, 2019

Seems like this is happening inside waitForLoaderDots. I'm guessing the page should be able to change its content as it loads, but I can't tell for sure which visual test caused this. I wonder if there's a way to add a try-catch block inside waitForElementVisibility?

@rsimha
Copy link
Contributor Author

rsimha commented Feb 26, 2019

@rsimha
Copy link
Contributor Author

rsimha commented Apr 10, 2019

Marking this high priority since it's disrupting visual tests more often than not.

@rsimha
Copy link
Contributor Author

rsimha commented Apr 10, 2019

@danielrozenberg I found two leads that might contain a fix for this:

To fix this:

@danielrozenberg
Copy link
Member

Looking at pull requests on Travis over the past 5 days, I believe this is now fixed. Feel free to reopen if you encounter these again

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

No branches or pull requests

2 participants