-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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: Put pre-commit cache under CI_PROJECT_DIR #11929
base: master
Are you sure you want to change the base?
Conversation
/retest |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: MrFreezeex, VannTen The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
c6b39b5
to
8c28ca0
Compare
New changes are detected. LGTM label has been removed. |
8c28ca0
to
1d92ffe
Compare
d8f2ccf
to
c52b93d
Compare
https://gitlab.com/gitlab-org/gitlab-runner/-/issues/28139 Hum. Apparently this break pre-commit caching (CI_PROJECT_DIR is not stable, pre-commit stores full path in it's db) |
c52b93d
to
94f82b4
Compare
There is a workaround (noted in the link above) but it requires changes to the runner config. Will work on that |
94f82b4
to
54a83e0
Compare
Apparently gitlab-runner can't cache stuff outside of the project directory. Put the cache under CI_PROJECT_DIR to make it work (which also means we need to ignore it from ansible-lint). Also update the pre-commit image while we're at it. Link: https://gitlab.com/gitlab-org/gitlab/-/issues/14151
54a83e0
to
59a885e
Compare
So the cache finally works, but pre-commit ansible-lint is quirky since #11831 for some reasons... |
It needs to rebase the master branch to pass the CI. |
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Apparently gitlab-runner can't cache stuff outside of the project
directory.
Put the cache under CI_PROJECT_DIR to make it work.
Also update the pre-commit image while we're at it.
Link: https://gitlab.com/gitlab-org/gitlab/-/issues/14151
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
/label ci-short
Does this PR introduce a user-facing change?: