mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-06 14:03:16 -05:00
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.