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

Raise config warning issue when lookups fail #2263

Closed
rarkins opened this issue Jul 14, 2018 · 9 comments
Closed

Raise config warning issue when lookups fail #2263

rarkins opened this issue Jul 14, 2018 · 9 comments
Labels
priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others status:requirements Full requirements are not yet known, so implementation should not be started type:feature Feature (new functionality)

Comments

@rarkins
Copy link
Collaborator

rarkins commented Jul 14, 2018

It's possible that some or all of a repository's private module lookups fail - and are hence not updated - but the users of that repository are unaware. For example this may be occurring now for many after npm reset everyone's tokens.

Idea: raise a config warning issue listing all failed lookups.

The only way to stop this issue coming back - apart from fixing authentication details - would be to add the packages to ignore using ignoreDeps or package rules.

@rarkins rarkins added type:feature Feature (new functionality) ready priority-2-high Bugs impacting wide number of users or very important features labels Jul 14, 2018
@rarkins
Copy link
Collaborator Author

rarkins commented Jul 22, 2018

Problem: how to fix “false positive” results, eg registry temporarily returning incorrect responses.

@rarkins rarkins added priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others and removed priority-2-high Bugs impacting wide number of users or very important features labels Aug 16, 2018
@kayoub5
Copy link
Contributor

kayoub5 commented Nov 1, 2018

@rarkins should an issue be created for every failure, or use one central issue to report all found problems?

@rarkins
Copy link
Collaborator Author

rarkins commented Nov 1, 2018

I think I need more time to think about this one. Right now we treat npmjs and docker hub specially where I’d we detect a failure with their end (5xx errors, etc) then we abort the entire run so as not to end up with flip/flopping PRs. But for private registries it’s hard to know what to do. Right now we ignore if they fail and most users seem fine with this. Ideally though we could be more “deliberate” about handling failures such as letting users configure which registries are critical and which not.

@kayoub5
Copy link
Contributor

kayoub5 commented Nov 1, 2018

We could warn about successive failures, like checking this package failed 4 times in a row, and it used to be passing.

@rarkins
Copy link
Collaborator Author

rarkins commented Nov 1, 2018

Can you think of a way to do that using Renovate’s typically “stateless” approach?

@kayoub5
Copy link
Contributor

kayoub5 commented Nov 1, 2018

check PR history, for any PR of that package.

@rarkins
Copy link
Collaborator Author

rarkins commented Nov 2, 2018

I would prefer a more deterministic approach.

The strict approach is:

  • Abort renovations if registries have internal errors
  • Raise a config issue and block renovations for lookup failures, if we think they're not registry internal errors

In theory we could/should allow users to turn this off via config though.

@rarkins
Copy link
Collaborator Author

rarkins commented Mar 8, 2019

I'm thinking:

  • A single issue that is opened/closed/reopened when lookups fail. This reduces the impact of false positives as we don't continue creating issues all the time. If it's problematic (e.g. too much history loss) then we can consider an option of separate issues later
  • Default all dependencies to cause this. Users can ignore dependencies and/or set a config option to ignore failures from certain hosts, using hostRules

@rarkins
Copy link
Collaborator Author

rarkins commented Aug 8, 2021

Warnings are displayed in the dependency dashboard now

@rarkins rarkins closed this as completed Aug 8, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others status:requirements Full requirements are not yet known, so implementation should not be started type:feature Feature (new functionality)
Projects
None yet
Development

No branches or pull requests

2 participants