A web application for visualizing and analyzing CI test results from OpenShift CI jobs. This project consists of two main components: a scraper that collects test data and a web UI that displays the results.
.
├── scraper/ # Backend service for scraping CI test results
│ ├── db/ # Database operations
│ ├── processor/ # Test result processing
│ ├── scraper/ # Web scraping logic
│ └── types/ # Data type definitions
└── ui/ # Frontend web application
├── templates/ # HTML templates
└── testgrid/ # UI handlers and logic
- Scrapes test results from OpenShift CI jobs
- Processes and stores test data in MongoDB
- Web interface for viewing test results
- Kubernetes deployment support
- Go 1.21 or later
- Docker
- Kubernetes cluster (for deployment)
- MongoDB instance
cd scraper
make buildcd ui
make build- Start MongoDB:
docker run -d -p 27017:27017 mongo:latest- Run the scraper:
cd scraper
./bin/scraper- Run the UI:
cd ui
./bin/uiThe UI will be available at http://localhost:8080
Both components can be deployed to Kubernetes using the provided manifests in their respective k8s/ directories.
-
scraper/: Contains the backend service that scrapes CI test resultsmain.go: Entry point for the scraper servicedb/: MongoDB operations and connection handlingprocessor/: Test result processing logicscraper/: Web scraping implementationtypes/: Data structures and type definitions
-
ui/: Contains the web interfacemain.go: Entry point for the web servertemplates/: HTML templates for the web interfacetestgrid/: UI handlers and business logic
- Create a new branch for your feature
- Make your changes
- Update tests if necessary
- Submit a pull request
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.