Labsco
kasturinarra logo

MicroShift Test Analyzer

from kasturinarra

Analyzes MicroShift test failures from Google Sheets to correlate them with specific MicroShift versions.

๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredAdvanced setup

MicroShift Test Analyzer MCP Server

A Python-based MCP (Model Context Protocol) server that analyzes MicroShift test failures from Google Sheets, providing specialized tools for correlating test failures with MicroShift versions.

Features

  • Failed Pipelines by Version: Get failed testing pipelines grouped by MicroShift version
  • Failure Summary: Get aggregate statistics of test failures across all versions
  • Pipeline Failure Trends: Analyze failure trends for specific testing pipelines over time
  • Search Failure Reasons: Search for specific failure reasons across all tests
  • Version Comparison: Compare test results between different MicroShift versions
  • Real-time Data: Fetches data directly from Google Sheets

Spreadsheet Format

The server expects your Google Sheet to have the following column structure:

  • Column A: Date (e.g., "21/06/2025_04:52:27")
  • Column B: ID (e.g., "1233")
  • Column C: MICROSHIFT_TARGET (e.g., "4.18.0~0.nightly")
  • Column D: BREW_VERSION (e.g., "microshift-4.18.0~0.nightly_2025_06_20_030312...")
  • Column E: MicroShift version (e.g., "4.18.0~0.nightly")
  • Columns F+: Build images and testing pipelines with multi-line format containing:
    • Architecture (x86_64, aarch64, x86)
    • Test type (install, upgrade, etc.)
    • Framework (RobotFramework, Ginkgo)
    • Status (SUCCESS, FAILURE)
    • Failure reason (if status is FAILURE)

Integration with MCP Clients

This server follows the official MCP Python SDK pattern using FastMCP. It can be used with any MCP-compatible client like Claude for Desktop.

Claude for Desktop Configuration

Add this to your Claude Desktop configuration file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "microshift-test-analyzer": {
      "command": "python",
      "args": ["/absolute/path/to/mcp-test-scenarios-server/server.py"],
      "cwd": "/absolute/path/to/mcp-test-scenarios-server"
    }
  }
}

Example Usage

Once connected to Claude for Desktop, you can ask questions like:

  • "What testing pipelines failed for MicroShift version 4.18.0?"
  • "Show me all failures related to 'ssh connection failed'"
  • "Compare test results between version 4.18.0 and 4.17.0"
  • "What are the failure trends for the rpm upgrade pipeline?"
  • "Give me a summary of all test failures grouped by reason"

API Examples

Using curl to test the server directly