-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of https://github.com/cypress-io/cypress into …
…develop
- Loading branch information
Showing
26 changed files
with
415 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"chrome:beta": "128.0.6613.18", | ||
"chrome:stable": "127.0.6533.88", | ||
"chrome:beta": "128.0.6613.27", | ||
"chrome:stable": "127.0.6533.99", | ||
"chrome:minimum": "64.0.3282.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,8 +37,8 @@ | |
"basic-auth": "2.0.1", | ||
"blob-util": "2.0.2", | ||
"bluebird": "3.5.3", | ||
"body-parser": "1.19.0", | ||
"bytes": "3.1.0", | ||
"body-parser": "1.20.2", | ||
"bytes": "3.1.2", | ||
"chai": "4.2.0", | ||
"chai-subset": "1.6.0", | ||
"clone": "2.1.2", | ||
|
@@ -67,7 +67,7 @@ | |
"mime-types": "2.1.27", | ||
"minimatch": "3.1.2", | ||
"mocha": "7.0.1", | ||
"multer": "1.4.2", | ||
"multer": "1.4.4", | ||
"ordinal": "1.0.3", | ||
"react-15.6.1": "npm:[email protected]", | ||
"react-16.0.0": "npm:[email protected]", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
import { NetworkError } from './network_error' | ||
import { SystemError } from './system_error' | ||
import { HttpError } from './http_error' | ||
import Debug from 'debug' | ||
|
||
const debug = Debug('cypress-verbose:server:is-retryable-error') | ||
|
||
export const isRetryableError = (error?: Error) => { | ||
debug('is retryable error? system error: %s, httperror: %s, status: %d', | ||
error && SystemError.isSystemError(error), | ||
error && HttpError.isHttpError(error), | ||
(error as HttpError)?.status) | ||
|
||
return error ? ( | ||
NetworkError.isNetworkError(error) || | ||
SystemError.isSystemError(error) || | ||
HttpError.isHttpError(error) && [408, 429, 502, 503, 504].includes(error.status) | ||
) : false | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* Node doesn't expose its own internal system error, so we have to kind of ducktype it */ | ||
|
||
const SystemErrorKind = 'SystemError' | ||
|
||
export class SystemError extends Error { | ||
public readonly kind = SystemErrorKind | ||
constructor ( | ||
public readonly originalError: Error, | ||
public readonly url: string, | ||
) { | ||
super(originalError.message) | ||
} | ||
|
||
static isSystemError (error: Error & { url?: string, kind?: string }): error is SystemError { | ||
return error?.kind === SystemErrorKind | ||
} | ||
} |
Oops, something went wrong.