Skip to content

Ensure serve starts even when update check fails#360

Merged
leo merged 3 commits into
vercel:masterfrom
n0v1:master
May 14, 2018
Merged

Ensure serve starts even when update check fails#360
leo merged 3 commits into
vercel:masterfrom
n0v1:master

Conversation

@n0v1

@n0v1 n0v1 commented May 2, 2018

Copy link
Copy Markdown
Contributor

We use serve for our e2e tests and after upgrading recently noticed CI failures because of the update check that happens before starting the server. We are sitting behind a corporate proxy and the update-check module does not seem to respect the proxy environment variables.

After around 30 seconds connect throws a ETIMEDOUT exception that is not being handled and thus the server does not start.

This pull request catches errors occuring in update check to ensure serve is started even when the update check fails. Additionally it adds a timeout to the update check call to wait no more than 2 seconds for it to complete.

Before:
image

After:
image

@n0v1 n0v1 changed the title Ensure serve starts even if update check fails Ensure serve starts even when update check fails May 2, 2018
@leo leo self-requested a review May 14, 2018 19:24
@leo leo added the patch label May 14, 2018
@leo leo merged commit 096d128 into vercel:master May 14, 2018
@leo

leo commented May 14, 2018

Copy link
Copy Markdown
Contributor

Looks wonderful. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants