-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Conversation
@brianlovin we need to run resetdb both before() and beforeEach(), because otherwise the cy.visit('/whatever') runs before the beforeEach() so it'd 404.
Welp, didn't work. Digging in. |
That last run failed because
Why would our API respond with 503? Dafuq? |
This should be fixed if you pull latest alpha - that url is invalid on our api, but I should have fixed it in #2664 |
It seems like the toobusy handling was causing Iris to err out on CI, since that machine probably doesn't have a ton of power. I've disabled that while testing, so let's see what happens now... |
Good catch, merged in. Let's hope this does the trick! |
Interesting; one problem I've been bumping into when doing extensive testing is the api bogging down to the point that the e2e tests fail. Quick api restart fixes it. |
That... should never happen 😅 |
For sure. Things just get super bogged down over time if I run multiple 'run all tests' with cypress in a row. |
Some random ones are still failing locally, ugh. @brianlovin mind taking this branch and running with it today? I'm not sure how to fix the rest. |
Sure |
Restarting the api fixes it - it just gets bogged down about halfway through a 'run all tests' cycle |
That doesn't make any sense. Let me profile it locally and see what the bottleneck is. |
So all of the tests that are failing still run perfectly in isolation, but when I do a 'run all' iris essentially gets bogged down mid way and starts failing to serve pages (thread views, community settings views, etc). Not sure how to address this @mxstbr |
Want to pair on this @mxstbr ? |
|
Turns out that profiling an 11min snapshot takes a long time as well. But can confirm that a quick api restart fixes tests - even individual, tiny tests like the pricing page. |
I tried to make a couple fixes including clearing localstorage along with each db reset - helps with some individual tests, but still same issue collectively. |
Since e2e tests are very flakey right now, this should make it more obvious if CI has actually passed.
Just merged my CircleCI refactor try from #2742 which seems to have passed on CI—if it doesn't work here I'll remove that change again. |
Generated by 🚫 dangerJS |
Only a single test failed in that last run oh my god. 🤞 |
Argh now they're failing again 😢 I thought for just a second I'd fixed it. |
Unable to figure out the proper way to patch in a check for the existence of the testing db, but I think #2810 is probably a better place for that patch to come in. Since this PR fixes a bunch of tests and frontend code, let's ship it. |
Status
@brianlovin we need to run resetdb both before() and beforeEach(),
because otherwise the cy.visit('/whatever') runs before the beforeEach()
so it'd 404.