Disable Configuration Cache in generated pre-commit Gradle call - #995
Disable Configuration Cache in generated pre-commit Gradle call#995pkubowicz wants to merge 1 commit into
Conversation
|
I'm guessing this is going to fail CI because the PR doesn't update the test testing the the pre-commit script that is generated. Just and FYI. Thanks for the contribution! |
|
Also, this needs a change log entry please! |
57e5a22 to
1dabd28
Compare
|
I added a change log entry. I also executed GitHookTasksTest and it passed. From what I see inside the test, it does not check the contents character by character, but rather asserts that certain key words (like the task name) appear. Also, the string |
|
Something for the future: instead of relying on So instead of running: the call will look like this: with the default for option not passed being |
|
Hi @pkubowicz , Like you indicated, I experienced similar. And yes, now I understand why i'm not getting benefitted from the configuration cache. And so my execution time is hitting 1.2 mins, which is high every push/commit. Was there any further decision on making it work with the alternate you suggested? |
|
Should I do anything about this PR? I can solve conflicts, but if no one want to merge this, I'll be just wasting my time. |
|
@wakingrufus can you review this quickly when you get a chance. You understand this code better than I do |
Thanks for the ping reminding us about this one. Sorry for not getting back to you about this sooner |
I'll take a look. Give me a little time to dig into this one |
|
Hey @wakingrufus - pinging this PR as an interested bystander. Would you mind giving it a review when you get a chance? We'd love to see this move forward. Thanks! |
|
@copilot resolve the merge conflicts in this pull request |
1dabd28 to
0c8fc4d
Compare
|
Okay... So copilot doesn't work on pull request from external contributors... Soooo... Conflicts will need to be resolved. Sorry |
internalKtlintGitFilter is part of the cache key, and it changes with every commit, so getting a cache hit is extremely unlikely.
0c8fc4d to
8e8d039
Compare
|
I already resolved conflicts and pushed. |
|
Running the tests |
internalKtlintGitFilter is part of the cache key, and it changes with every commit, so getting a cache hit is extremely unlikely.
If you execute the commit hook (in the form before my changes) with Configuration Cache enabled, you will see: