agent_crew icon indicating copy to clipboard operation
agent_crew copied to clipboard

test: E2E validation of Ollama deploy flow

Open sre-helmcode opened this issue 8 months ago • 1 comments

Summary

End-to-end tests validating the complete Ollama deployment flow, from team creation to model serving.

Test Scenarios

1. Single Team Deploy

  • Create team with OpenCode + Ollama + qwen3:8b
  • Verify Ollama container starts (agentcrew-ollama)
  • Verify model pull progress in status message
  • Verify team deploys successfully
  • Send chat message → verify response from local model

2. Shared Ollama (Multi-Team)

  • Deploy Team A with Ollama + qwen3:8b
  • Deploy Team B with Ollama + mistral:7b
  • Verify same Ollama container serves both
  • Verify both models are pulled

3. Lifecycle / Reference Counting

  • Stop Team A → verify Ollama still running (Team B active)
  • Stop Team B → verify Ollama stops (ref_count = 0)

4. Re-deploy with Cached Models

  • Re-deploy Team A with same model → verify fast start (model already cached in volume)

5. Ollama Status Endpoint

  • Query GET /api/ollama/status → verify correct running state and pulled models list

6. UI Flow

  • Select OpenCode → select Ollama → verify model list with sizes
  • Verify no credential warning
  • Verify Ollama status indicator

Dependencies

  • Depends on helmcode/agent_crew_api#67 (Ollama integration in deploy/stop)
  • Depends on helmcode/agent_crew#55 (Ollama UI)

References

  • Plan: Model Provider Constraint + Ollama Support (Phase 2, Issue F2-5)

sre-helmcode avatar Mar 23 '26 19:03 sre-helmcode

Implemented in Phase 2. 14 E2E tests for Ollama flow.

sre-helmcode avatar Mar 23 '26 20:03 sre-helmcode