SONARRUBY-136 Set up orchestrator cache#121
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
SummaryThis PR implements caching for the SonarQube orchestrator (downloaded binary) to speed up QA test runs. It introduces a reusable composite action that caches the orchestrator directory with a year-week cache key (auto-rotates weekly), and integrates it into the build workflow's QA job. A separate cleanup-cache workflow enables S3 cache inspection and manual deletion, with dry-run enabled by default for safety. Tested on the PR's second workflow run with a real SonarQube build, confirming the orchestrator zip was successfully cached and retrieved. What reviewers should knowStart here: Review the new Key design decisions:
Worth noting: The action sets environment variables (
|
This reverts commit 7ae13d3.
|
|
|
||
| jobs: | ||
| cleanup: | ||
| runs-on: github-ubuntu-latest-s |
There was a problem hiding this comment.
Perhaps we don't need github-ubuntu-latest-s (4 CPU, 16GB) and could use sonar-xs-public (1 CPU, 4GB) here. WDYT?





Tested: Checked the logs of https://github.com/SonarSource/sonar-ruby/actions/runs/24499072420/job/71601394007 (second run on the PR branch) and verified that sonarqube-enterprise-lw-2026.2.1.121354.zip was found in the cache.
🤖 Generated with Claude Code