diff options
author | Jason Wray <jason@mapbox.com> | 2019-03-22 15:14:41 -0700 |
---|---|---|
committer | Jason Wray <jason@mapbox.com> | 2019-04-25 14:04:42 -0700 |
commit | 01a2a79b2c9af05d93febaf2d6510e116a706d96 (patch) | |
tree | a1854e7f02ec8415b489589ad44d9d808113cc52 /scripts | |
parent | 3832a081cb481bf5e375f3fc51a467cbe84aa04a (diff) | |
download | qtlocation-mapboxgl-01a2a79b2c9af05d93febaf2d6510e116a706d96.tar.gz |
[build] Retry failed GitHub API requests
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/check_binary_size.js | 4 | ||||
-rwxr-xr-x | scripts/publish_binary_size.js | 4 | ||||
-rwxr-xr-x | scripts/publish_doxygen_coverage.js | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/scripts/check_binary_size.js b/scripts/check_binary_size.js index 5a8aa70b1b..73d6ab7508 100755 --- a/scripts/check_binary_size.js +++ b/scripts/check_binary_size.js @@ -1,7 +1,9 @@ #!/usr/bin/env node const jwt = require('jsonwebtoken'); -const github = require('@octokit/rest')(); +const github = require('@octokit/rest').plugin(require('@octokit/plugin-retry'))({ + retry: { doNotRetry: [ /* Empty — retry on any error code. */ ] } +}) const prettyBytes = require('pretty-bytes'); const fs = require('fs'); diff --git a/scripts/publish_binary_size.js b/scripts/publish_binary_size.js index d00bb4bdbe..ee4c849223 100755 --- a/scripts/publish_binary_size.js +++ b/scripts/publish_binary_size.js @@ -1,7 +1,9 @@ #!/usr/bin/env node const jwt = require('jsonwebtoken'); -const github = require('@octokit/rest')(); +const github = require('@octokit/rest').plugin(require('@octokit/plugin-retry'))({ + retry: { doNotRetry: [ /* Empty — retry on any error code. */ ] } +}) const zlib = require('zlib'); const AWS = require('aws-sdk'); diff --git a/scripts/publish_doxygen_coverage.js b/scripts/publish_doxygen_coverage.js index 723115d36d..b71d6cf8e2 100755 --- a/scripts/publish_doxygen_coverage.js +++ b/scripts/publish_doxygen_coverage.js @@ -1,7 +1,9 @@ #!/usr/bin/env node const jwt = require('jsonwebtoken'); -const github = require('@octokit/rest')(); +const github = require('@octokit/rest').plugin(require('@octokit/plugin-retry'))({ + retry: { doNotRetry: [ /* Empty — retry on any error code. */ ] } +}) const zlib = require('zlib'); const AWS = require('aws-sdk'); const fs = require('fs'); |