-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(generated-files-bot): handle missing external manifest files #1076
Conversation
@@ -22,7 +22,7 @@ | |||
"start": "probot run ./build/src/generated-files-bot.js", | |||
"start:local": "node ./build/src/local.js", | |||
"pretest": "npm run compile", | |||
"test": "cross-env LOG_LEVEL=fatal c8 mocha --exit build/test", | |||
"test": "cross-env LOG_LEVEL=fatal c8 mocha --exit build/test --timeout 10000", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am generally not a fan of the longer timeout, but I will read ahead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Talking with @bcoe, it sounds like octokit is retrying with backoff until a certain point limit. The test takes about 3 seconds to pass which was higher than the 2s timeout.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opened #1078 to help address this. I like the current typing in the current implementation (no casting to any
), but the retry on the 404 means we might need to bump the test timeouts.
Fixes #1077
We should gracefully handle a missing external manifest and not crash. Logs a warning instead.