Only run cache upstream ws if no .repos file changed in PRs#674
Only run cache upstream ws if no .repos file changed in PRs#674rhaschke merged 5 commits intomoveit:mainfrom
Conversation
vatanaksoytezer
left a comment
There was a problem hiding this comment.
Thanks a ton for fixing that @JafarAbdi! I saw the issue but I can't think of a better solution right now. This looks clean and neat.
Codecov Report
@@ Coverage Diff @@
## main #674 +/- ##
==========================================
+ Coverage 54.24% 54.38% +0.14%
==========================================
Files 192 191 -1
Lines 20230 20100 -130
==========================================
- Hits 10972 10929 -43
+ Misses 9258 9171 -87
Continue to review full report at Codecov.
|
|
I pushed a simpler fixup. However, unfortunately, the calculation of @vatanaksoytezer, could you have a look at this in a smaller toy example? |
This is exactly what I was trying to do, the problem we have is when someone opens a PR and change one of the repo's branch in The ultimate solution would be to always force pull but that's not possible in vcs right now EDIT: force pulling didn't work :/ JafarAbdi#18 |
The point is that the cache wouldn't be rewritten as well. So it stays disabled forever! |
Yes, it will be disabled forever only for the PRs that have changes to
I don't think this will help, in my case I pushed a conflicting change to the branch I used in the temporary repo way after changing the |
Sure, I'll make a minimal example and see what I can do. |
It will also be disabled as soon as we want to push a change in the |
I don't think this will be the case, this only work for pull-request, the expression inside the if-statement will evaluate to false for the branches, I even tried changing it on my fork see
If we can get the cache-key solution to work it will be better than the original one, I'll meet with Vatan to work on fixing this |
Looks like any kind of computed values for list of files is not considered at all. That is, the following tests failed: - hashFiles(steps.config.outputs.FILES) - hashFiles(fromJSON(steps.config.outputs.FILES))
|
I performed a series of tests in this toy repo. Looks like |
|
@rhaschke are we good to merge this? If so I'll start removing hashFiles from other repos as well so we don't hit this issue again. |
|
Thanks @rhaschke! |
Description
One issue I had in this PR is a conflict between one of the cached upstream packages and the newly added hash for it which was causing the CI to always fail with the following error during
vcs pull $BASEDIR/upstream_ws/srcThis will only affect PRs
Checklist