[ci] Fix triage workflow: pin opencode, use opus-4-8, comment via gh#14650
[ci] Fix triage workflow: pin opencode, use opus-4-8, comment via gh#14650penalosa wants to merge 1 commit into
Conversation
The triage workflow merged in #14647 fails for two reasons: 1. It ran `opencode run` with no explicit model on an unpinned opencode, so it used opencode's built-in default models (claude-sonnet-4-6 / claude-haiku-4-5) which are not provisioned in our AI Gateway, failing with "Invalid Anthropic API Key". Pin opencode to 1.15.13, pass --model claude-opus-4-8, and set small_model to claude-sonnet-4-5 so the title/summary agent no longer defaults to claude-haiku-4-5. 2. It posted the comment with marocchino/sticky-pull-request-comment, which only supports PRs and errors with "Could not resolve to a PullRequest" on issues. Replace it with a gh-based sticky upsert: find the previous report comment by a hidden marker and edit it, otherwise create a new one. Update the re-triage loop guard to match the marker.
|
|
UnknownError: ProviderInitError |
|
@penalosa Bonk workflow failed. Check the logs for details. View workflow run · To retry, trigger Bonk again. |
@cloudflare/autoconfig
create-cloudflare
@cloudflare/deploy-helpers
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-auth
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
|
Codeowners approval required for this PR:
Show detailed file reviewers |
workers-devprod
left a comment
There was a problem hiding this comment.
Codeowners reviews satisfied
Follow-up fix to #14647. The triage workflow as merged fails on every run for two independent reasons; this PR fixes both. Verified end-to-end via
workflow_dispatchagainst issue #10531 (all steps green, comment posted as workers-devprod,breaking-changelabel applied).1. Unprovisioned default models → "Invalid Anthropic API Key"
opencode runwas called with no explicit model on an unpinned opencode, so it used opencode's built-in defaults (claude-sonnet-4-6/claude-haiku-4-5), which are not provisioned in our AI Gateway. Fix:1.15.13(matches the working Bonk workflow).--model cloudflare-ai-gateway/anthropic/claude-opus-4-8to the triage run.small_modeltoclaude-sonnet-4-5so the title/summary agent stops defaulting to the unprovisionedclaude-haiku-4-5.The AI Gateway credentials were never the problem — they're the same secrets Bonk uses.
2. marocchino can't comment on issues → "Could not resolve to a PullRequest"
marocchino/sticky-pull-request-commentis PR-only (it resolves the number as aPullRequest), so it errors on issues. Replaced with agh-based sticky upsert (find the previous report comment by a hidden marker and edit it, else create a new one).ghis already used elsewhere in this workflow, so this adds no new dependency. The re-triage loop guard now matches the new marker.gh workflow run triage-issue.yml -f issue-number=10531on this branch — the workflow completed successfully (Analyze, Upload, Post comment, Apply labels all green), posted a single triage comment as workers-devprod, and applied thebreaking-changelabel.