Skip to content

test(e2e): support gemini in live runtime smoke tests - #700

Draft
FradSer wants to merge 1 commit into
langgenius:mainfrom
FradSer:test/e2e-gemini-provider
Draft

FradSer wants to merge 1 commit into
langgenius:mainfrom
FradSer:test/e2e-gemini-provider

Conversation

@FradSer

@FradSer FradSer commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Allow MOSOO_E2E_PROVIDER=gemini in the existing live Preview and Public API runtime smoke cases. Use the existing admitted Gemini default on OpenCode, its public endpoint, and provider-owned credentials. Preview selects the matching model and confirms the saved selection after reload.

Why

Gemini is already admitted by the runtime catalog (#661), but the smoke harness rejects that provider before creating an agent. This expands the harness without changing admission, model metadata, protocol inference, or pricing.

Extracted from #693 following review request 6. Existing issues and PRs were searched; no dedicated open harness issue was found. No issue is closed by this PR.

Prerequisites for online acceptance

All branches target main independently. This Draft contains only the Gemini harness delta; it does not duplicate those fixes.

Verification

  • just test-file scripts/e2e-env-preflight.test.ts: 3 passed (Gemini identity/model, generic-key precedence, missing-key failure before resource creation).
  • just tc-package @mosoo/e2e; just lint; just docs-check; just commit-check: passed.
  • Not run: live Gemini Public API/Preview acceptance. No real Gemini key was used. Model selection UI and provider execution still require online acceptance after the prerequisites land. Repository-wide just check was not run.

Review

  • Closest review areas: provider preflight and live smoke runtime/model selection.
  • Env/config changes: adds an empty optional MOSOO_E2E_GEMINI_API_KEY example; generic key override keeps precedence.
  • Known trade-offs: uses the existing reviewed model default. No Pi implementation changes, new model metadata, Driver code/gitlink, or pricing changes.

Impact

  • Generated files / GraphQL / DB / lockfile: N/A; unchanged.
  • Risk and rollback: revert this isolated commit. No deployment or migration.

Design

N/A: no product UI changes.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant