ci(release): add opencode integration test job#499
Merged
sergeyklay merged 2 commits intomainfrom Apr 26, 2026
Merged
Conversation
Mirrors the test-integration-claude job pattern. Uses ANTHROPIC_API_KEY, installs opencode-ai via npm, and guards execution with SORTIE_OPENCODE_TEST=1. The new job is added to the release needs list so a failing OpenCode integration blocks the release. Closes #477
There was a problem hiding this comment.
Pull request overview
Adds an OpenCode CLI integration test gate to the release workflow so the OpenCode adapter is exercised against the real CLI before tagging/publishing a release.
Changes:
- Introduces a new
test-integration-opencodejob that installs the OpenCode CLI and runs./internal/agent/opencode/...integration tests. - Adds
test-integration-opencodeto thereleasejob’sneeds:list so failures block the release.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
🎯 Scope & Context
Type: Chore
Intent: Adds a
test-integration-opencodeCI job to the release workflow, ensuring the OpenCode adapter is exercised against the real CLI before every release. Missing secrets produce a clear error; a failed test blocks the release.Related Issues: #477
🧭 Reviewer Guide
Complexity: Low
Entry Point
.github/workflows/release.yml— the newtest-integration-opencodejob starts aftertest-integration-codex. It follows the exact same pattern astest-integration-claude: secret validation, Go setup, Node.jslts/*,npm install -g opencode-ai, then the env-gated integration test run against./internal/agent/opencode/....Sensitive Areas
.github/workflows/release.yml: thereleasejobneeds:list now includestest-integration-opencode, so a regression in this job will block all releases.