Skip to content

ci: move coverage badge updates to a daily PR-based cron#369

Merged
tinder-maxwellelliott merged 2 commits into
masterfrom
claude/dazzling-ptolemy-c7ab7d
Jun 11, 2026
Merged

ci: move coverage badge updates to a daily PR-based cron#369
tinder-maxwellelliott merged 2 commits into
masterfrom
claude/dazzling-ptolemy-c7ab7d

Conversation

@tinder-maxwellelliott

@tinder-maxwellelliott tinder-maxwellelliott commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Removes the merge-time coverage badge publish step from ci.yaml, which committed and force-pushed a regenerated coverage.json back to master on every push. That step raced against concurrent merges and failed CI.
  • Drops the now-unneeded contents: write permission from the test-jre21 job. The threshold-enforcement step still regenerates coverage.json and gates PRs at 90% — it just no longer pushes.
  • Adds a new daily cron workflow (coverage_badge.yaml) that regenerates the badge and opens a PR only when the coverage value has actually changed.

New workflow behavior

  • Runs daily at 13:00 UTC (plus manual workflow_dispatch).
  • Runs bazel coverage on the canonical Bazel 9.x runner and regenerates coverage.json via the same //tools:coverage-check invocation CI uses.
  • No change → exits cleanly.
  • Change → commits to a dedicated bot branch (ci/coverage-badge-update), force-pushes that branch (never master), and opens/reuses a PR into master for manual review.

🤖 Generated with Claude Code

tinder-maxwellelliott and others added 2 commits June 11, 2026 11:54
The CI job pushed a regenerated coverage.json directly to master on every
push, which force-pushed/raced against concurrent merges and failed CI.

Remove that merge-time publish step (and the job's contents:write
permission), and add a daily scheduled workflow that regenerates the badge
and opens an auto-merging PR only when the coverage value changes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Open the badge PR for manual review instead of queuing it to auto-merge.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@tinder-maxwellelliott tinder-maxwellelliott merged commit 760ff68 into master Jun 11, 2026
15 checks passed
@tinder-maxwellelliott tinder-maxwellelliott deleted the claude/dazzling-ptolemy-c7ab7d branch June 11, 2026 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant