-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add automated approach to validate that requirement files are consistent #230
Comments
EDIT: just noticing now that @erikmannerfelt already noticed pandas's pre-commit hook 2 years ago! 🙈 Following discussion started in GlacioHack/xdem#408 with @erikmannerfelt. Problem = we currently have 4 environment files to synchronize:
... and we would add a 5th one for We currently only check the consistency of I looked around a bit. Googling really doesn't work for these type of specific "GitHub-dev" problems, so I did a bit of spying instead 😁:
However, it looks like So this should solve it all! 😀
|
Additionally, we have the In more details, what triggers the PR is the |
Great inputs; thanks @rhugonnet! I guess there are two (potentially non-exclusive) ways to make sure all points to the same:
@rhugonnet, could you elaborate on your statement that the Regarding the bot on conda-forge, I remember having spent an eternity trying to get it running again after it stopped. I think we need to give up on it and just implement our own thing. One small consideration we need to discuss is how blocking such a tester would be. If it's running as part of CI, should it fail or just warn in case of inconsistent dependencies? The obvious best case is to fail, but it may create a catch-22 situation in the conda-forge feedstock when updating; a new version needs to pass (unless forced) in the main repo, but that can only pass if the conda-forge feedstock is updated, which shouldn't be updated before the main repo. Of course, it would work to just force merge main on a version increment, then update the |
Reading a bit more: actually, Some quick reading explaining this:
Despite the nuance, many people still feel it is duplicating efforts and use tools to have everything in one To implement our own thing for |
Is your feature request related to a problem? Please describe.
As mentioned in #229, there are currently four places where dependencies are specified:
There is a large risk that someone may forget to update all of these if a dependency is updated, so there should be an automated way to validate that they are consistent.
Describe the solution you'd like
A test or pre-commit hook to validate the content of all files.
Some pseudocode:
This should fail with a descriptive error if something is inconsistent.
Describe alternatives you've considered
Perhaps some bot exists to do this for us?
For reference, Pandas has a pre-commit hook for this specifically.
The text was updated successfully, but these errors were encountered: