What I do on my MapLibre projects:
• Draft PRs against main run a small CI matrix. Draft upstack runs none
• "Ready" PRs run a representative CI matrix (every os) but not every architecture or platform version
• Main runs the full matrix, to catch if some specific android version bug, or windows arm64 specific bug sneaks through without wasting time on PRs for that
◦ Dependabot PRs and any PR with "ci:full" label applied gets the same full matrix, usually applied to build tooling PRs
• If one cell in the matrix fails, it's automatically rerun. This catches most rare flakes and infra failures
• If I ever notice a flake, I ask an agent (usually Sol) to file an issue, root cause, and pr if confident the test is either stabilized or deletable
• My agents also have standing instructions to file an issue whenever they notice a test flake
• GitHub actions infra is flaky still, especially on windows and with older android emulators. So I've got some retries in key spots in my CI workflow
With all that, I've got it to be quite a good experience. Not perfect, can't be perfect on GitHub actions, but I'm rarely bothered by transient failures now despite
some extremely heavy / complex CI