Repository navigation
chore(opencode): migrate to released contextual-orchestrator (owner prerequisite) #881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from 2 commits
5f8d748
8f3f163
acf1f37
e40172e
4e07356
13306c6
398e807
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5073,14 +5073,40 @@ def test_opencode_approval_write_failure_updates_overview_only() -> None: | |
| assert "source-backed repository findings" in policy | ||
|
|
||
|
|
||
| def test_opencode_uses_nvidia_nim_only() -> None: | ||
| """Ensure local OpenCode is NVIDIA NIM only and does not use GitHub Models.""" | ||
| repo_root = Path(__file__).resolve().parents[3] | ||
| opencode_text = (repo_root / "opencode.jsonc").read_text(encoding="utf-8") | ||
| opencode_config = json.loads(opencode_text) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📝 Info: json.loads on .jsonc breaks if comments are added
Was this helpful? React with 👍 or 👎 to provide feedback. |
||
|
|
||
| assert opencode_config["model"] == "nvidia-nim/nvidia/llama-3.3-nemotron-super-49b-v1.5" | ||
| assert opencode_config["small_model"] == "nvidia-nim/meta/llama-3.3-70b-instruct" | ||
| assert opencode_config["enabled_providers"] == ["nvidia-nim"] | ||
| assert set(opencode_config["provider"]) == {"nvidia-nim"} | ||
|
|
||
| nim_provider = opencode_config["provider"]["nvidia-nim"] | ||
| assert nim_provider["options"]["baseURL"] == "https://integrate.api.nvidia.com/v1" | ||
| assert nim_provider["options"]["apiKey"] == "{env:NVIDIA_API_KEY}" | ||
| assert "nvidia/llama-3.3-nemotron-super-49b-v1.5" in nim_provider["models"] | ||
| assert "meta/llama-3.3-70b-instruct" in nim_provider["models"] | ||
|
|
||
| leftover_tokens = ( | ||
| "github-models", | ||
| "STRIX_GITHUB_MODELS_TOKEN", | ||
| "COPILOT_GITHUB_TOKEN", | ||
| "openai/gpt-5", | ||
| "openai/o3", | ||
| "openai/o4-mini", | ||
| "models.github.ai", | ||
| ) | ||
| for leftover in leftover_tokens: | ||
| assert leftover not in opencode_text | ||
|
|
||
|
|
||
| def test_pr_review_merge_scheduler_uses_central_mutation_credential() -> None: | ||
| """Ensure mechanical PR queue handling uses the central mutation credential.""" | ||
| repo_root = Path(__file__).resolve().parents[3] | ||
| policy = central_required_workflow_policy_text() | ||
|
|
||
| opencode_config = (repo_root / "opencode.jsonc").read_text(encoding="utf-8") | ||
| assert '"openai/o3"' in opencode_config | ||
| assert '"openai/o4-mini"' in opencode_config | ||
| assert_local_review_workflows_removed() | ||
| assert "selected workflow mutation" in policy | ||
| assert "credential, not by a maintainer's local `gh` session" in policy | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.