Conversation
3121756 to
3c1a973
Compare
SummaryAdds a new What reviewers should knowWhere to start: Check Key decisions to review:
Test coverage: The author links to real-world testing in sonarlint-core showing the feature works on both cold and warm caches. Worth verifying the behavior matches the README examples.
|
3c1a973 to
289e59d
Compare
julien-carsique-sonarsource
left a comment
There was a problem hiding this comment.
There's a bug to resolve (dead code).
Clarify the validation and setup of default values at the top, or first use. Not on every call (i.e. "${INPUT_RESTORE_KEYS:-}").
Use the simplified syntax (i.e. in [[ ]], there is no need for double quotes on the left side of the condition).
289e59d to
00e1a5d
Compare
5ab0f5f to
e5a09e6
Compare
There was a problem hiding this comment.
Conclusion: The feature logic is sound and the new fallback-to-default-branch behaviour is correctly implemented. However, the previously requested fix (quoting $INPUT_RESTORE_KEYS in the [[ -n ]] tests) has not been applied — it still appears unquoted at both lines 46 and 79.
e5a09e6 to
46c99b0
Compare
…restore-keys to default branch
556e203 to
5f49da5
Compare
SonarQube reviewer guide
|
SonarQube reviewer guide
|




What Changed?
fallback-to-default-branchoption, which is enabled by default, for setting therestore-keysvalue to the same exact cache path, but on the repo's default branchrestore-keys: node-linux-andfallback-to-default-branch: true, then the finalbranch-restore-keyspassed toruns-on/cachewould be:First Test
[Edit 19/03 1:16pm CET] Tested Successfully using latest commit:
Cache restored from key: refs/heads/master/maven-Linux-Build-b50b0c779ede66991f6393f3b8e901d98462992773465df71c125f902ada551fCache restored from key: BUILD-10699-test-fallback-to-default-branch-v2/maven-Linux-Build-b50b0c779ede66991f6393f3b8e901d98462992773465df71c125f902ada551f