[ 
https://issues.apache.org/jira/browse/METRON-1971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Leet updated METRON-1971:
--------------------------------
    Fix Version/s: 0.7.1

> 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
>            Assignee: Shane Ardell
>            Priority: Major
>             Fix For: 0.7.1
>
>          Time Spent: 2h 50m
>  Remaining Estimate: 0h
>
> 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)

Reply via email to