How amitpandey1992/java-gke-cicd works
This repository’s documented primary product is a CI/CD failure analyzer: it retrieves build logs, prepares them for analysis, reuses similar past failures or invokes an AI provider, then returns and records a suggested fix. It also exposes feedback and dashboard statistics, and documents Slack notifications. The graph uses README-described capabilities where source excerpts are incomplete; the dashboard JavaScript excerpt currently uses demo data, so its live connection to the statistics API is not shown.
Main entry points: analyze.py Analyze API · ai_engine AI engine · postgres_client.py Postgres access · ingestion CI log fetchers
Components 20
Failure analysis
- Analyze API
app/api/analyze.py - CI log fetchers
app/ingestion - Log preparation
app/processing - AI engine
app/ai_engine - Provider selection
app/ai_engine/ai_factory.py - Prompt builder
app/ai_engine/prompt_builder.py
Analysis memory
- Similarity search
app/memory/similarity_search.py - ChromaDB memory
app/memory/chromadb_store.py - Feedback API
app/api/feedback.py
Reporting
- Postgres access
app/database/postgres_client.py - PostgreSQL
app/database/models.py - Dashboard stats API
app/api/dashboard.py - Metrics dashboard
dashboard/charts.js
External integrations
- Slack notifications
app/notifications/slack_notifier.py
Other components
- API caller
- Jenkins
- GitHub Actions
- TeamCity
- Ollama or Vertex AI
- Slack
Connections 21
- API caller → Analyze API: submits analysis
- Analyze API → CI log fetchers: fetches logs
- Jenkins → CI log fetchers: provides logs
- GitHub Actions → CI log fetchers: provides logs
- TeamCity → CI log fetchers: provides logs
- Analyze API → Log preparation: sanitizes and truncates
- Analyze API → Similarity search: searches failures
- Similarity search → ChromaDB memory: queries
- Analyze API → AI engine: analyzes unmatched logs
- AI engine → Provider selection: selects provider
- AI engine → Prompt builder: builds prompt
- AI engine → Ollama or Vertex AI: requests analysis
- Analyze API → ChromaDB memory: stores analysis
- Analyze API → Postgres access: records result
- Postgres access → PostgreSQL: reads and writes
- API caller → Feedback API: submits feedback
- Feedback API → Postgres access: updates feedback
- API caller → Dashboard stats API: requests statistics
- Dashboard stats API → Postgres access: loads statistics
- Metrics dashboard → Dashboard stats API: live wiring unshown
- Slack notifications → Slack: sends summary