#6653·ogx

Add CI coverage for `ogx go` by using it as an alternative to the `ci-tests` distro

Author: mattfCreated Sep 25, 2026Updated Sep 25, 2026
Labelsenhancement

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

  1. Harness change (scripts/integration-tests.sh): recognize a new server:go stack-config flavor. In the existing server:* branch, when the distro is go, start the server with ogx go --insecure --no-auth instead of ogx stack run <distro> --insecure. Everything else stays the same (port discovery via OGX_PORT, /v1/health poll, OGX_TEST_INFERENCE_MODE, telemetry/metrics env, trap stop_server). Pass --skip-install-deps so the run stays deterministic/offline.
    • --insecure --no-auth are required: ogx go otherwise generates a self-signed cert and a local_api_key auth block that the integration client (plain http://localhost:$PORT, no auth) isn't configured for.
  2. CI job: a new offline job (no secrets → deterministic, merge-blocking):
    • setup-runner, then setup-ollama (pull llama3.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; the ollama setup's default models (ollama/llama3.2:3b-instruct-fp16, ollama/nomic-embed-text:v1.5) resolve against the autodetected ollama provider_id (provider_id = type suffix, src/ogx/core/stack.py).
    • The job is picked up by ci-status.yml and its startup log is uploaded as an artifact.

Acceptance criteria

  • ./scripts/integration-tests.sh --stack-config server:go --suite base --setup ollama passes locally with Ollama running.
  • The CI job runs the same, is merge-blocking via ci-status.yml, and uploads the ogx go startup log as an artifact.
  • scripts/README.md / AGENTS.md document the new server:go flavor.

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:

  1. Reranker/embedding model — the runner hard-codes --rerank-model=sentence-transformers/Qwen/Qwen3-Reranker-0.6B, but ogx go doesn't register the sentence-transformers provider. Either register inline::sentence-transformers in the go config, or omit/override the rerank flag for the go flavor.
  2. skills / interactions APIs — ogx go doesn't register these, but the base roots include tests/integration/skills. Register them in the go config or exclude those roots for this run.
  3. MCP connector — ci-tests declares test-mcp-connector (localhost:5199/sse); ogx go declares 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:go vs a dedicated go:ollama flavor.
  • Scope: full base parity vs a narrower ogx go-compatible subset to start.
  • Whether the same alternative should also target the starter distro.