Allow persisting repository cache after uploading to S3 #28217
PhilipAbed
started this conversation in
Suggest an Idea
Replies: 2 comments 12 replies
-
what about a simpler solution that is same behavior for both |
Beta Was this translation helpful? Give feedback.
0 replies
-
I would see this as an array. That way you get the cache written to both AND we can have remote and local cache simultanios. |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Tell us more.
The current behavior is to not save repository cache to disk when uploading to S3.
I would like to allow saving the repository cache so i can use it after the run, and then delete it manually.
I noticed that the repository cache file path is implemented differently in
S3
andlocal
.local
: saves the cache under{cacheDir}/renovate/repository/{platform}/{organization}/{repository}.json
s3
: saves the cache unders3://{Bucket/subDirectory}/{platform}/{organization}/{repository}/cache.json
since the file name is not consistent and i don't want to change the current behaviour.
I suggest adding new self hosted config option
repositoryCachePersist
,This flag is related to S3 only currently,
when enabled, it will persist the cache locally
there are 2 options
if it's true, then it will copy the local.ts implementation, and save file locally as well.
this means that the path to the file will be the same as if we set
repositoryCacheType = local
(default) in addition to uploading to s3.if its false then the repository cache will be uploaded to S3 and will not be persisted in local cache.
the flag will have 3 options:
disabled
,s3
,local
by default it will be
disabled
,if set to
s3
, we will add it to the same path as s3 under cacheDir.if set to
local
we will add it to the same path as local under cacheDirBeta Was this translation helpful? Give feedback.
All reactions