Every test writes its own raw coverage profile in the shared SonarCloud
workflow, and at 4 shards each shard wrote about 80 GB in 8,000 files.
Since 2026-12-05 the shards of main's SonarCloud runs fail with "No
space left on device" in "Run this shard's tests" (runs 47575790406
and 47566278173), so main's nightly commit gets no analysis.
8 shards halve the raw profiles each runner holds. The shared workflow
fix is storytold/craft-common-actions#486, which merges the profiles
of one test binary as each test exits; this goes back to the default
once it merges.
SonarCloud ran a full instrumented analysis for every merge commit on main
(about 90 a day, 97 to 191 minutes each). Stage 2 only reads the analysis
of the commit the nightly builds, so main is now analyzed once a day:
- sonarcloud.yml drops the push trigger and starts when the unsigned
nightly starts (workflow_run, requested). A first job fails the run when
main has moved past the nightly's commit, so the analysis is never of
another commit. Pull request analysis is unchanged.
- nightly-dispatch.yml waits, for up to 280 minutes, for the SonarCloud
check on the producer's commit to complete before it dispatches the
signer. A SonarCloud run that ended without a check stops the wait after
20 minutes. The job gains checks: read and a 300-minute timeout.
- packaging/nightly-release-tests.py runs the dispatch script against a
fake API: it dispatches only after the check completes, and refuses when
the SonarCloud run ended without one or when the deadline passes.
- docs/nightly-release-preparation.md describes both workflows.
Calls storytold/craft-common-actions/.github/workflows/sonarcloud.yml@main
with secrets: inherit. Adds SonarCloud badge to README where missing and
removes the redundant sonar-project.properties (config now passed by the
reusable workflow).