Download icons with retry

Summary:
This quite often fails in CI. Adobe's fetch has some very sensible defaults
and will do exponential backoff and retry for up to a minute.
That should hopefully fix issues where we have to restart the whole build
just to fix one measly icon download.

Reviewed By: jknoxville

Differential Revision: D24649807

fbshipit-source-id: efbc9eb29e4b5a0f74b0b6ad6dea4aaf86391363
This commit is contained in:
Pascal Hartig
2020-11-05 05:14:58 -08:00
committed by Facebook GitHub Bot
parent d28610a9d2
commit 3a839bddae
3 changed files with 34 additions and 3 deletions

View File

@@ -116,6 +116,7 @@
"@jest-runner/electron": "^3.0.0",
"@testing-library/dom": "^7.26.3",
"@testing-library/react": "^11.1.0",
"@types/adobe__node-fetch-retry": "^1.0.0",
"@types/algoliasearch": "^3.30.19",
"@types/babel__code-frame": "^7.0.1",
"@types/babel__core": "^7.1.10",
@@ -276,5 +277,8 @@
},
"optionalDependencies": {
"7zip-bin-mac": "^1.0.1"
},
"dependencies": {
"@adobe/node-fetch-retry": "^1.1.0"
}
}