Add CI coverage for `ogx go` by using it as an alternative to the `ci-tests` distro
ogx go (the quickstart entrypoint, uvx ogx go) is our primary "it just works" path, but CI has no end-to-end coverage of it. The only coverage today is CLI arg-parsing unit tests (tests/unit/cli/test_stack_lets_go.py). Nothing verifies that the runtime config ogx go auto-generates (provider probing → dynamic config → embedding detection → file-search/responses wiring → TLS/auth) actually boots a stack that passes the integration suite.
All other CI coverage starts the server from a static distribution config (ogx stack run ci-tests --insecure, scripts/integration-tests.sh).
What to build
- Harness change (
scripts/integration-tests.sh): recognize a newserver:gostack-config flavor. In the existingserver:*branch, when the distro isgo, start the server withogx go --insecure --no-authinstead ofogx stack run <distro> --insecure. Everything else stays the same (port discovery viaOGX_PORT,/v1/healthpoll,OGX_TEST_INFERENCE_MODE, telemetry/metrics env,trap stop_server). Pass--skip-install-depsso the run stays deterministic/offline.--insecure --no-authare required:ogx gootherwise generates a self-signed cert and alocal_api_keyauth block that the integration client (plainhttp://localhost:$PORT, no auth) isn't configured for.
- CI job: a new offline job (no secrets → deterministic, merge-blocking):
setup-runner, thensetup-ollama(pullllama3.2:3b-instruct-fp16+nomic-embed-text:v1.5), then./scripts/integration-tests.sh --stack-config server:go --suite base --setup ollama --inference-mode replay.- Autodetection picks up local Ollama via
OLLAMA_URL; theollamasetup's default models (ollama/llama3.2:3b-instruct-fp16,ollama/nomic-embed-text:v1.5) resolve against the autodetectedollamaprovider_id (provider_id = type suffix,src/ogx/core/stack.py). - The job is picked up by
ci-status.ymland its startup log is uploaded as an artifact.
Acceptance criteria
./scripts/integration-tests.sh --stack-config server:go --suite base --setup ollamapasses locally with Ollama running.- The CI job runs the same, is merge-blocking via
ci-status.yml, and uploads theogx gostartup log as an artifact. scripts/README.md/AGENTS.mddocument the newserver:goflavor.
Why is this needed? What if we don't build it?
ogx go is the path users hit first, and the config it generates is built at runtime from probing plus a handful of assumptions that unit tests don't exercise. A regression in provider auto-detection, embedding detection, or config generation would ship silently and break the quickstart for every user, with no CI signal. Making ogx go a first-class alternative to the ci-tests distro reuses the existing suite (no new test code) to get real end-to-end coverage of the generated stack.
Other thoughts
ogx go's generated config is not yet a drop-in for the base suite, so this needs a parity decision:
- Reranker/embedding model — the runner hard-codes
--rerank-model=sentence-transformers/Qwen/Qwen3-Reranker-0.6B, butogx godoesn't register thesentence-transformersprovider. Either registerinline::sentence-transformersin thegoconfig, or omit/override the rerank flag for thegoflavor. skills/interactionsAPIs —ogx godoesn't register these, but thebaseroots includetests/integration/skills. Register them in thegoconfig or exclude those roots for this run.- MCP connector —
ci-testsdeclarestest-mcp-connector(localhost:5199/sse);ogx godeclares none. MCP tests would be skipped, or the connector must be added.
Preferred direction: bring ogx go up to parity where it's cheap (embedding + reranker + skills/interactions are all inline:: and free), and treat the MCP connector separately.
Open questions:
- Naming:
server:govs a dedicatedgo:ollamaflavor. - Scope: full
baseparity vs a narrowerogx go-compatible subset to start. - Whether the same alternative should also target the
starterdistro.
Source: ogx-ai/ogx