Title: Improve CI infrastructure for pre-commit by EliahKagan · Pull Request #2110 · gitpython-developers/GitPython · GitHub
Open Graph Title: Improve CI infrastructure for pre-commit by EliahKagan · Pull Request #2110 · gitpython-developers/GitPython
X Title: Improve CI infrastructure for pre-commit by EliahKagan · Pull Request #2110 · gitpython-developers/GitPython
Description: On CI, the pre-commit job has two shortcomings: It runs on a machine far more powerful than necessary, since anything slow should not be done in pre-commit at all (since some developers may run pre-commit locally). We've haven't been using any automated means of keeping the pre-commit hook versions up to date, and as a results some of them are quite old. This includes ruff. (There is an external integration that can keep pre-commit hooks up to date on GitHub, but it requires providing access to the repository to an external service. This is sometimes a tradeoff worth making, but it's one we've avoided doing here for this purpose, I think rightly.) These have both become easier to address recently: A lighter-weight ubuntu-slim runner is available. Running it on that should work as well and be as fast, and give an indication that we're doing too much in pre-commit if that is ever not the case. It also frees up an ubuntu-latest runner, potentially making CI finish slightly earlier in some PRs where there have been a lot of pushes. Dependabot now supports pre-commit as a beta ecosystem, so it can keep them up to date. I've tested this in my fork; the resulting grouped PR looks like EliahKagan#5. It's not ideal that the ecosystem is still in beta, but I think it's worth using--and if it turns out to have bugs I haven't yet observed, then this is an oppportunity for me to report them. This PR uses the ubuntu-slim runner to run pre-commit on CI, and enables Dependabot version updates for pre-commit hooks.
Open Graph Description: On CI, the pre-commit job has two shortcomings: It runs on a machine far more powerful than necessary, since anything slow should not be done in pre-commit at all (since some developers may run pr...
X Description: On CI, the pre-commit job has two shortcomings: It runs on a machine far more powerful than necessary, since anything slow should not be done in pre-commit at all (since some developers may run pr...
Opengraph URL: https://github.com/gitpython-developers/GitPython/pull/2110
X: @github
Domain: redirect.github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:d1e47828-f9bb-b172-4a3d-8282e7e75a7e |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D37C:3BEBFA:189624B:21AD81D:6A54710F |
| html-safe-nonce | 906d8e22aca4c9378e3928929a2a28d133de0192ade8233dba400027cd685b6b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzdDOjNCRUJGQToxODk2MjRCOjIxQUQ4MUQ6NkE1NDcxMEYiLCJ2aXNpdG9yX2lkIjoiNzc5NTY0NDI2NzE0MjM0NDk3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d4d191ab4a56453bb9123af1db5d40e54dabb495ba426c9d6c48c90e521d7431 |
| hovercard-subject-tag | pull_request:3375090692 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/gitpython-developers/GitPython/pull/2110/files |
| twitter:image | https://avatars.githubusercontent.com/u/1771172?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1771172?s=400&v=4 |
| og:image:alt | On CI, the pre-commit job has two shortcomings: It runs on a machine far more powerful than necessary, since anything slow should not be done in pre-commit at all (since some developers may run pr... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6d28624802c2f7d9500239dd6870ed7031b7353b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width