Commit fc12f6b
ci: upgrade Claude orchestrator to v2.1.0 — graceful API unavailability skip (#35336)
## Summary
- Bump `ai-workflows` reference from `v2.0.0` → `v2.1.0` in
`ai_claude-orchestrator.yml`
- `v2.1.0` adds pre-flight Anthropic API availability check + runtime
error triage
## Problem
When the Claude service has an outage, all PR pipelines fail with:
```
API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"}} · check status.claude.com
```
Example blocked run:
https://github.com/dotCMS/core/actions/runs/24461196854
## What changed in `v2.1.0` (`ai-workflows`)
**Pre-flight check (Layer 1):**
- Calls `GET /v1/models` before running claude-code-action (15s timeout,
2 retries)
- 5xx or network failure → `available=false` → skip Claude step
gracefully with `::warning::`
- 401/403/429 or other codes → proceed so the action surfaces the
specific error
**Runtime protection (Layer 2):**
- `continue-on-error: true` on the Claude step
- Post-execution step re-checks the API if Claude failed
- API available after failure → re-fail the job ("legitimate error")
- API unavailable after failure → skip gracefully ("service
degradation")
## Test
Validated in dotCMS#460 (also updated to `v2.1.0`):
- Pre-flight check correctly identifies API availability
- Legitimate errors still surface and fail the job (correct)
- Service outage path is code-correct (pre-flight would skip before
Claude runs)
Fixes #35328
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 673f109 commit fc12f6b
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
0 commit comments