You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by "Justin Leet (JIRA)" <ji...@apache.org> on 2019/04/23 23:13:00 UTC

[jira] [Assigned] (METRON-1971) Short timeout value in Cypress may cause build failures

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

Justin Leet reassigned METRON-1971:
-----------------------------------

    Assignee: Shane Ardell

> 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
>          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)