Skip to content
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

Merged
merged 7 commits into from
Nov 3, 2020

Conversation

chingor13
Copy link
Contributor

@chingor13 chingor13 commented Nov 3, 2020

Fixes #1077

We should gracefully handle a missing external manifest and not crash. Logs a warning instead.

@chingor13 chingor13 requested a review from a team November 3, 2020 21:39
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 3, 2020
@chingor13 chingor13 requested a review from bcoe November 3, 2020 22:18
@@ -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",
Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

@chingor13 chingor13 merged commit b2a27a3 into master Nov 3, 2020
@chingor13 chingor13 deleted the generated-files-404 branch April 23, 2021 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

generated-files-bot: not handling 404s from GitHub
2 participants