You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by "Shane Ardell (JIRA)" <ji...@apache.org> on 2019/01/25 12:30:00 UTC
[jira] [Created] (METRON-1971) Short timeout value in Cypress may
cause build failures
Shane Ardell created METRON-1971:
------------------------------------
Summary: Short timeout value in Cypress may cause build failures
Key: METRON-1971
URL: https://issues.apache.org/jira/browse/METRON-1971
Project: Metron
Issue Type: Bug
Reporter: Shane Ardell
According to the Cypress docs, it is unnecessary to add a wait command after cy.visit. "Waiting for this is unnecessary because the cy.visit() resolves once the page fires its load event. By that time all of your assets have been loaded including javascript, stylesheets, and html."
However, the problem is with an Angular application, the page firing a load event does not mean that the entire view has rendered yet. In systems where memory is scarce, such as a Travis environment or a machine that has memory-intensive applications running, this means a page load can take a few seconds (or possibly even longer).
We currently use the default timeout in Cypress, which is only 4000ms. I believe this short timeout can cause failures like this in Metron: https://travis-ci.org/apache/metron/jobs/483945575
We should increase the defaultCommandTimeout in cypress.json to something like 30000ms or greater to prevent failures like this in the future.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)