Skip to content

ci: don't red-fail main when coverage-badge gist push fails#76

Open
JordanCoin wants to merge 1 commit into
mainfrom
fix/ci-coverage-badge-nonblocking
Open

ci: don't red-fail main when coverage-badge gist push fails#76
JordanCoin wants to merge 1 commit into
mainfrom
fix/ci-coverage-badge-nonblocking

Conversation

@JordanCoin

Copy link
Copy Markdown
Owner

Problem

Main CI has been failing on every push (since #73) — but not because of tests. The Test (ubuntu-latest, 1.23) job's "Update coverage badge" step (schneegans/dynamic-badges-action) returns 401 Unauthorized pushing to the coverage gist, which fails the whole job. Tests pass (coverage computes fine); only the badge push fails.

Fix

Mark the cosmetic badge step continue-on-error: true so an expired/invalid GIST_TOKEN no longer red-fails the build.

Follow-up (needs maintainer)

The badge itself won't update until GIST_TOKEN (a PAT with gist scope, for gist 6ffe3276…) is rotated in repo secrets. This PR just stops it from breaking CI.

🤖 Generated with Claude Code

The "Update coverage badge" step pushes to a gist via GIST_TOKEN. When
that token is expired/invalid it returns 401 and fails the whole
Test (ubuntu-latest, 1.23) job, turning main CI red even though all
tests pass. Mark the cosmetic badge update continue-on-error so a badge
auth issue no longer red-fails the build.

Note: GIST_TOKEN (a PAT with gist scope) still needs rotating to restore
the badge itself.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 2, 2026 14:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR prevents the main CI workflow from failing when the coverage badge gist update step can’t push due to an invalid/expired GIST_TOKEN. The intent is to keep CI green when tests and coverage computation succeed, while treating the badge update as non-blocking.

Changes:

  • Marks the “Update coverage badge” GitHub Actions step as continue-on-error: true.
  • Adds inline comments documenting why the step is non-blocking and how to restore badge updates (rotate GIST_TOKEN).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

3 participants