-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
ci, pre-commit: rely on pre-commit.ci service to run tests #244
ci, pre-commit: rely on pre-commit.ci service to run tests #244
Conversation
Perhaps this is a fix we need to make in frigate? |
@jacobtomlinson yepp absolutely - that would be great! If you get that setup, it would be the last time you had to manually add commits or wait for people to add them to PRs after having made a change that isn't updated. Having pre-commit.ci push a commit for such changes would make perfect sense I think. |
Circling back here because if we had pre-commit CI then #274 would be passing. The problem here seemed to be around chart dependencies not being up to date. It looks like frigate does already update dependencies so I'm not entirely sure why we are also doing it in the existing action. But I don't expect it to be a problem to drop it. Unless there is a bug in Frigate that I'm not aware of that we are working around here. https://github.com/rapidsai/frigate/blob/762e75b56fb071d30cf0823c341747a738db1dd2/frigate/gen.py#L98 |
Hmmm, I'm not so read up on how frigate works or does, but I can conclude that README.md includes details about the JupyterHub Helm chart's default values.yaml, which means that frigate has consumed the Also, there is a coupling to the jupyterhub helm chart about values in the daskhub helm chart somehow, I think what happens is that the daskhub helm chart imports values from the dependency chart. If that is done, it would also make sense that the default values of daskhub would require jupyterhub to be around to provide default values. Lines 11 to 13 in b09f9b2
Overall, I think the practice of generating these kind of reports in the markdown document alongside values.yaml and alongside a values.schema.json file that helm chart now can ship with, is outdated. This is an off topic discussion though. On topic though, perhas the fix would be to make the pre-commit hook about frigate use a Looking at the firgate code you linked, I conclude that
|
I would be keen to dig into this comment elsewhere. Frigate supports both generating static documentation files and also has a Sphinx extension. I'm curious what the replacement is for this kind of documentation? I feel I'm a little out of touch with being a helm chart user, so if folks are going elsewhere for configuration docs I'd be keen to learn.
Ah I see it's the |
@jacobtomlinson I've opened rapidsai/frigate#44 which I think also fixes a few bugs that we have managed to survive because the following parts, which shouldn't be needed as that is supposed to be done by helm-chart/.github/workflows/pre-commit.yml Lines 15 to 17 in b09f9b2
|
7086a99
to
196dffd
Compare
@jacobtomlinson I updated this PR to also remove the By removing this, we don't reduce our test suites capability to catch things. What Action points
|
196dffd
to
0439bee
Compare
0439bee
to
467b9d3
Compare
@jacobtomlinson we can start using pre-commit.ci and automatically provided formatting soon. We need a new frigate release (or reference the current default branch in frigare, and we need to activate pre-commit.ci for this project. |
Thanks @consideRatio. I've pinged RAPIDS Ops to get a release of frigate out. I'll let you know when it is done. |
Thanks @jacobtomlinson!! |
@jacobtomlinson at this point with the 0.6.0 release out (rapidsai/frigate#55), I think things will work with pre-commit.ci, and we will get automatic frigate commits added to PRs needing them! Action points
|
Wieee @jacobtomlinson!!! |
dask/community#222
UPDATE: For
frigate
to run and generate daskhub/README.md, it seems it must first dohelm dep up
to download dependency Helm charts. But, pre-commit.ci can't be configured to do that first I think. So, I think we can't use pre-commit.ci.Action points
This is done by visiting the pre-commit.ci GitHub app and making it available for the dask GitHub organization to use: https://results.pre-commit.ci/
And declare it to be used specifically on this github repository at: https://github.com/organizations/dask/settings/installations
This means it would...
a) automatically runs a pre-commit CI/CD check like a github workflow would
b) automatically create PRs updating the version of pre-commit hooks defined in .pre-commit-config.yaml when new versions are out - at most once a week.
c) automatically add commits to PRs with autoformatting changes based on the .pre-commit-config.yaml file if needed