Intermittent Failures
See original GitHub issueHey all, We’re hitting intermittent bumps in our chromy-based backstop suite.
On a semi-regular basis we get false failures of this:
compare | Chromy error: Error. See scenario – xxx xxx xxx xxx
Accompanied by a report that looks like this:
We’ve played with asyncCapture/compare limit, played with delay
, but no dice. Sometimes it can be resolved by pkill Chrome
, but generally we’re struggling to find the special sauce to solve them for good.
First question - have you encountered these intermittent failures?
Second question - Is there a chromy/backstop flag we can set to investigate the error or capture some more context around this Chromy error
?
Issue Analytics
- State:
- Created 6 years ago
- Comments:38 (21 by maintainers)
Top Results From Across the Web
Intermittent fault - Wikipedia
Intermittent failures can be a cause of no-fault-found (NFF) occurrences in electronic products and systems. NFF implies that a failure (fault) occurred or...
Read more >Troubleshooting Tips: Isolating Intermittent Faults
From my experience, intermittent faults are most commonly hardware related either damaged product or a problem with the installation. Software or firmware are ......
Read more >How should intermittent failures be analyzed? - EESemi.com
Intermittent failures are failures that do not manifest themselves all the time. The fact that they are sometimes there and sometimes aren't can...
Read more >Major causes of intermittent faults in electronic circuits
Intermittent faults (IFs) in electrical interconnection are short duration transients. These faults are random, non-predictable and non-stationary in nature ...
Read more >Intermittent problems - IBM
An intermittent problem is a problem that occurs for a short time, and then goes away. The problem may not occur again until...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Alright, good news guys. That seemed to be our issue. We added
wait(<selector>)
to all of our DOM interactions and we’ve run our suite 15+ times with"asyncCaptureLimit": 20
. All clear!Here are the guts of our solution if you’re interested.
We have a helper script in which we introduced two functions for
click()
andtype()
:And then in our
onReadyScript
:A few chromy/backstop tweaks helped us debug this work:
onReadyScript
too)reject(new WaitTimeoutError('...'))
- we added the selector on which we were waiting. In a few of our scenarios we discovered we had bogus selectors that were never working in the first place, so our test was timing out.Hope this helps others with the same issue!
@kiran-redhat – thank you for tracking this down! I completely agree with your idea. We should add a log.error at line 319 which also includes the scenario label+viewport. This would make debugging MUCH easier for engineers!