-
Notifications
You must be signed in to change notification settings - Fork 18
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 dependabot to GitHub repository #184
Conversation
Accidentally merged this PR thinking I was looking at another repository, then reverted it. But the commit history didn't look OK with both PR's merged, so I dropped the commits and push-forced (confirming three times my Re-opening the PR now, and then closing this tab so I don't accidentally merge it again. Sorry!!! ☕ |
Updated a PR to one of our conda forge repositories, and realized that with dependabot PR's we would have to remember to update Conda Forge recipe before we release that. In Cylc Flow I think we also have to update the environment.yml file (not updated automatically by dependabot) |
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.
Seems like a good thing to do.
Would be great to do this, I had a look at doing it for cylc-flow a little while back. The barrier I hit was that Dependabot doesn't like They now don't mention I think we need to move our deps from |
I think it may depend on the dependabot found a couple more updates last night too kinow/protobuf-uml-diagram#22, so far it appears to be working, but my
Their website appears to be have more marketing material, and information about what it does without going into detail :-( there's more in their github repo: https://github.com/dependabot/dependabot-core/blob/564ca68bfcdaa20df925c165d20834868a987d67/python/lib/dependabot/python.rb#L18-L28 If you search the issues, there are reports from cases where setup.py didn't work. I think it should work for cylc-uiserver, but not sure about cylc-flow.
I think either way should work. It's probably easier for dependabot to parse a requirements.txt. |
Managed to dig it out of my browser history, it's a note from GitHub
However, I also took a quick look at dependabot's Python parsing and it looks ok: It does actually run the ...yes Very nice, great, we can copy this to all our Python projects 👍. |
MyPy failures are completely unrelated. |
This is a small change with no associated Issue.
Maybe worth a try here before considering adding it to cylc-flow? It's a free service, used by other projects. It runs daily, and reports any dependency in our dependency range that can be updated.
I normally go through the main dependencies in our
setup.py
and look them up at PYPI. But dependabot will handle that.Furthermore, it is probably already enabled in GitHub if our repository settings has not disabled the dependabot security checks (click settings / security I think, then look for dependabot security).
I enabled it for one of my repositories with Python. It executed almost immediately.
Each PR created by dependabot will run the CI pipeline too, confirming whether there was any build/test failures due to the new version. Developers can also check out the branch and try the code.
So I think it could be helpful to use this, instead of relying on us remembering to update the dependencies before a release?
Requirements check-list
CONTRIBUTING.md
and added my name as a Code Contributor.