FailTale Uyuni PoC with CrewAI Agents
This is the second milestone of the FailTale project: a new Proof of Concept focused on agentic test failure review for Uyuni test environments.
Project repository: FailTale for Uyuni on GitHub
It follows the original FailTale experiment and is built around a multi-agent workflow powered by crewAI.
Why this PoC
When an automated test fails in a large environment, the hardest part is not seeing the failure itself. The hardest part is collecting the right context quickly and turning it into a useful root cause hint.
This PoC focuses on automating exactly that path: from failure signal, to targeted data collection, to guided analysis.
Key Features
- Targeted Collection: The system uses configuration files to define which logs and commands are useful for each product component.
- Agentic Collaboration: Multiple agents split responsibilities (target identification, data collection, and analysis) and collaborate on each failure.
- Secure Data Retrieval: Data is collected through SSH with minimal privileges and source-side filtering (
tail,grep) to reduce noise and exposure. - Flexible LLM Usage: The architecture supports cloud providers (OpenAI, Gemini) and local models through Ollama.
Architecture and Workflow
The flow is collaborative instead of linear:
- Trigger: FailTale receives failure context (report, failure details, screenshot, config).
- Targeting: An agent identifies the most relevant hosts and components.
- Execution and Collection: Agents run targeted commands via custom tools (Uyuni MCP and SSH MCP).
- Analysis: The collected context is processed to generate root cause hints.
- Output: Insights are returned in a format that can be injected back into test results or client tooling.
Agent roles and tasks are configured in:
src/failtale/config/agents.yamlsrc/failtale/config/tasks.yaml
Runtime Notes
The project uses Python and UV tooling, with a couple of important runtime prerequisites:
GOOGLE_API_KEYconfigured in.env(Gemini is the default provider).dockeravailable inPATHfor the Uyuni MCP tool.npxavailable inPATHfor the SSH MCP tool.- Ollama running locally with
nomic-embed-textfor knowledge embeddings.
A practical detail is that inputs can be pointed to one concrete failure through .env variables (CONFIG_PATH, TEST_REPORT_PATH, TEST_FAILURE_PATH, SCREENSHOT_PATH), which makes it easier to run focused analysis sessions.
Cucumber Integration
One of the most useful integrations is triggering FailTale in a Cucumber After hook only when a scenario fails. The hook can persist failure artifacts and call crewai run automatically, making post-failure debugging far more consistent.
What Improves in This Iteration
Compared to the first PoC, this version moves toward a cleaner and more modular architecture:
- Configuration-driven targeting by component role.
- Better separation between orchestration and data collection tools.
- Better support for combining product context and documentation knowledge.
The result is not just “more AI”, but a workflow that is easier to evolve and reason about.
Next Steps
Planned improvements for this PoC:
- Better prompt and task design for more consistent root cause quality.
- More reusable integrations with existing test frameworks.
- More observability around agent decisions to validate and tune the workflow.
If you are working with Uyuni, Cucumber-based suites, or large acceptance test environments, feedback is welcome.