Should PR comment cache entries be persisted across repository cache runs? #44327
Unanswered
ag-linden
asked this question in
Request Help
Replies: 1 comment 4 replies
-
|
What is the reason to edit a comment made by renovate? or delete it? FYI Renovate deletes outdated comments itself. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How are you running Renovate?
Self-hosted Renovate CLI.
Which platform are you running Renovate on?
GitHub.com.
Which version of Renovate are you using?
Current
mainbehavior observed at81040a45ae29e7947dd91c835530a1470d778368.Please tell us more about your question or problem
I opened PR #44296 with one possible implementation, but the PR was closed as needing discussion first.
I would like to confirm the expected behavior before continuing.
ensureComment()currently stores a desired comment body hash inrepoCache.prComments[number][topic].When the desired content hash matches that cached value, the wrapper returns
truewithout calling the platformensureComment()implementation.That avoids duplicate platform calls when the same comment is ensured more than once in a single run.
The part I wanted to clarify is whether the same comment-assurance hash should be restored from persisted repository cache across later runs.
A concrete scenario:
My assumption in PR #44296 was that platform comments are mutable remote state, so persisted repository cache should not be treated as proof that a comment still exists or still has the expected body.
The implementation kept the existing in-run dedupe but made
prCommentsruntime-only by dropping it on repository-cache load and excluding it from repository-cache persistence.Before reopening or revising the PR, should Renovate:
prCommentsas runtime-only stateprCommentsto suppress platform checks across runsLogs
No runtime logs.
This is based on the current code path and the behavior in PR #44296.
Beta Was this translation helpful? Give feedback.
All reactions