summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJason Wray <jason@mapbox.com>2019-03-22 15:14:41 -0700
committerJason Wray <jason@mapbox.com>2019-04-25 14:04:42 -0700
commit01a2a79b2c9af05d93febaf2d6510e116a706d96 (patch)
treea1854e7f02ec8415b489589ad44d9d808113cc52 /scripts
parent3832a081cb481bf5e375f3fc51a467cbe84aa04a (diff)
downloadqtlocation-mapboxgl-01a2a79b2c9af05d93febaf2d6510e116a706d96.tar.gz
[build] Retry failed GitHub API requests
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/check_binary_size.js4
-rwxr-xr-xscripts/publish_binary_size.js4
-rwxr-xr-xscripts/publish_doxygen_coverage.js4
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');