Flaky CircleCI ECONNREFUSED 127.0.0.1:3001 db:seed
MikeMcC399 opened this issue · comments
CircleCI is failing in different places with errors related to ECONNREFUSED 127.0.0.1:3001
and db:seed
CypressError: `cy.task('db:seed')` failed with the following error:
> connect ECONNREFUSED 127.0.0.1:3001
- https://app.circleci.com/pipelines/github/cypress-io/cypress-realworld-app/5341/workflows/3b07d76f-ebb9-438f-af25-e1f7ac3898f5/jobs/33501 and
- https://app.circleci.com/pipelines/github/cypress-io/cypress-realworld-app/5339/workflows/88a1196b-ccdc-4959-9721-1827ac8e24e8/jobs/33484
failed in auth.spec.ts
failed in new-transaction.spec.ts
- This could be related to cypress-io/circleci-orb#426 (assigned to @mschile). There doesn't seem to be any mechanism to wait for the database to become available.
Suggestion
If it is not planned to enhance Orb to include a wait-on
function (again), then use
start-server-and-test
which is already included in devDependencies and unused at this time.
https://circleci.com/developer/orbs/orb/cypress-io/cypress now lists wait-on
I don't plan to submit a PR for this. I have found that trying to use Circle CI from a fork is impractical. Either I have it working in the fork under my user credentials, but then it fails automated CI checks or I have no credentials defined, in which case CI checks pass, but I can't manually test anymore. So I leave it to somebody who is working in the parent repository and is a member of cypress-io
on GitHub and Circle CI.
No current failures.
I will re-open if necessary.
This issue occurred again today in CircleCI, in the current RWA setup.
So, unfortunately, I need to re-open 🙁