question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Flaky Frontend tests failing every time while pushing changes

See original GitHub issue

This error occurred recently locally on my machine when running the frontend tests

Chrome Headless 87.0.4280.88 (Mac OS 11.0.0) Upgraded component should create the upgraded component FAILED
	Failed: Uncaught (in promise): TypeError: Class constructor UpgradeComponent cannot be invoked without 'new'
	TypeError: Class constructor UpgradeComponent cannot be invoked without 'new'
	    at new CollectionPermissionsCard (core/templates/combined-tests.spec.js:44348:19139)
	    at createClass (core/templates/combined-tests.spec.js:193077:20)
	    at createDirectiveInstance (core/templates/combined-tests.spec.js:192954:22)
	    at createViewNodes (core/templates/combined-tests.spec.js:200043:38)
	    at callViewAction (core/templates/combined-tests.spec.js:200359:13)
	    at execComponentViewsAction (core/templates/combined-tests.spec.js:200278:13)
	    at createViewNodes (core/templates/combined-tests.spec.js:200071:5)
	    at createRootView (core/templates/combined-tests.spec.js:199952:5)
	    at callWithDebugContext (core/templates/combined-tests.spec.js:200926:27)
	    at Object.debugCreateRootView [as createRootView] (core/templates/combined-tests.spec.js:200471:12)
	error properties: Object({ rejection: TypeError: Class constructor UpgradeComponent cannot be invoked without 'new', promise: [object Promise], zone: Zone({ _parent: Zone({ _parent: null, _name: '<root>', _properties: Object({  }), _zoneDelegate: ZoneDelegate({ _taskCounts: Object({ microTask: 0, macroTask: 0, eventTask: 0 }), zone: <circular reference: Object>, _parentDelegate: null, _forkZS: null, _forkDlgt: null, _forkCurrZone: null, _interceptZS: null, _interceptDlgt: null, _interceptCurrZone: null, _invokeZS: null, _invokeDlgt: null, _invokeCurrZone: null, _handleErrorZS: null, _handleErrorDlgt: null, _handleErrorCurrZone: null, _scheduleTaskZS: null, _scheduleTaskDlgt: null, _scheduleTaskCurrZone: null, _invokeTaskZS: null, _invokeTaskDlgt: null, _invokeTaskCurrZone: null, _cancelTaskZS: null, _cancelTaskDlgt: null, _cancelTaskCurrZone: null, _hasTaskZS: null, _hasTaskDlgt: null, _hasTaskDlgtOwner: null, _hasTaskCurrZone: null }) }), _name: 'ProxyZone', _properties: Object({ ProxyZoneSpec: Pro ...

Additional context When trying to push the changes to an existing PR, the frontend tests are failing every time to give the error as mentioned above. Even after trying to push the code again and rerunning the tests too, the frontend tests are failing which are most probably flakes as the frontend tests passed after the changes were pushed.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
atpug22commented, Dec 27, 2020

@parulpriyedarshani Yes, yesterday this happened to me also. While running the frontend tests all checks were passed but just after this when I tried pushing my code I got the same error in frontend tests. But when I tried after some time without making any changes in the code it showed no error and the code was pushed.

0reactions
U8NWXDcommented, Aug 15, 2022

Frontend flakes have been fixed

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Flaky Tests - Semaphore CI
Randomly failing tests are the hardest to debug. Here's a framework you can use to fix them and keep your test suite healthy....
Read more >
Flaky Tests: Getting Rid Of A Living Nightmare In Testing
A flaky test is one that fails to produce the same result each time the same analysis is run. The build will fail...
Read more >
Flaky tests - GitLab Docs
It's a test that sometimes fails, but if you retry it enough times, it passes, eventually. ... Example 1: A test that breaks...
Read more >
Stop the Retries in Tests & Reruns of Failing Tests - Applitools
Flaky tests happen because the test conditions fail to occur consistently. Why? Anand Bagmar helps you uncover the root causes of flakiness.
Read more >
How to reduce flaky test failures - CircleCI
Flaky tests, also known as flappers, fail to produce accurate and consistent results. These tests may be unreliable because of newly-written ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found