-
Notifications
You must be signed in to change notification settings - Fork 24
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
feeds/: Allow for per package/feed error handling when polling #123
Conversation
6d2d85f
to
c23cde4
Compare
If it's deemed necessary I can look to add this behaviour for all feeds in a single PR |
c23cde4
to
dcde494
Compare
dcde494
to
7ec66e0
Compare
74e67a9
to
a829d21
Compare
8c3cefe
to
28a10ec
Compare
@Qinusty In terms of beyond general review, I'm particularly interested in ensuring nuget/packagist are ok as it's my first time working with those feed implementations. I'm also happy to split any new tests into a separate commit once reviewed. |
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.
Mostly LGTM, if we can fix this outstanding issue it looks good to go
e364346
to
b959d60
Compare
e42e43b
to
d79dc2a
Compare
When errors occur but package data can still be processed then the system should continue where possible. This is particularly beneficial in feeds where data is fetched on a per package basis, as a singular failure shouldn't immediately lead to data loss for the whole session. `pollAndPublish()` error handling and subsequent callers have been modified to handle this. This also removes `errUnpublished` as a 'hard' error when polling npm for critical packages as such it is only logged.
d79dc2a
to
863aeff
Compare
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.
LGTM!
Resolves #107
Follow ups in the form of #101 and more tests/granular handling in nuget & packagist should also be undertaken