fix(ci): provider-health workflow shouldn't fail on missing .ca/ (#487)#497
Merged
justn-hyeok merged 1 commit intomainfrom Apr 20, 2026
Merged
fix(ci): provider-health workflow shouldn't fail on missing .ca/ (#487)#497justn-hyeok merged 1 commit intomainfrom
justn-hyeok merged 1 commit intomainfrom
Conversation
The weekly provider-health cron was creating spurious "bug" issues every run because \`doctor --live\` treats a missing .ca/ directory and config file as failures. Those checks are meaningful for user environments but not in CI — the workspace legitimately ships without .ca/ (it's gitignored). Write a minimal stub config before invoking doctor so the env checks pass. The workflow's exit code now reflects only the live provider pings — which is what the cron is actually supposed to measure. Config mirrors the Groq-based shape already used by review.yml's fallback branch.
Contributor
There was a problem hiding this comment.
✅ CodeAgora: ACCEPT
no issues | 5 reviewers
No findings or discussions were raised, and there are no critical, warning, or unresolved issues to evaluate. Based on the available review evidence, there is nothing indicating a blocking defect or ambiguous risk, so the change appears safe to merge.
CodeAgora · Session: 2026-04-20/001
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Every weekly provider-health cron was creating a spurious `Provider health check failed` issue. Latest: #487 (2026-04-20).
Root cause: `doctor --live` runs its base environment checks first — including `.ca/ directory` and `Config file` — and treats missing state as failure. Those checks are correct for a user's local machine but wrong in CI: the workspace intentionally ships without `.ca/` (it's gitignored), so the run always fails regardless of actual provider availability.
Fix
Workflow writes a minimal stub `.ca/config.json` before invoking `doctor --live`. Stub mirrors the Groq-based shape used by `review.yml`'s fallback branch — 1 reviewer + moderator + head.
Now the cron's exit code reflects only the live provider pings, which is what the check was supposed to measure in the first place.
Alternatives considered
Test plan