SONARJAVA-6253 Ensure integration tests do not share cache#5568
SONARJAVA-6253 Ensure integration tests do not share cache#5568tomasz-tylenda-sonarsource wants to merge 1 commit intomasterfrom
Conversation
9487245 to
a9dd221
Compare
SummaryThis PR ensures that separate integration test jobs don't share Maven caches by introducing a unique cache key per job. A new GitHub Action writes a file ( What reviewers should knowHow it works:
For reviewers:
|
a9dd221 to
bac224a
Compare
|
There was a problem hiding this comment.
LGTM! ✅
Clean, focused change with no bugs. The approach of writing a unique-content file to influence Maven's cache hash is correct and each job is properly distinguished — non-matrix jobs by github.job, matrix jobs by github.job + matrix variables. Using env vars in the composite action (FILE_PATH, CONTENT) correctly avoids shell injection risks.





Use separate caches for plugin, ruling, and other ITs. See SONARJAVA-6253 for details.
TODO:
pom.xml, something likeconfig.txt.