# shreyanshbhalla/ai-cicd-pipeline-1 architecture

> Architecture diagram of the GitHub repository shreyanshbhalla/ai-cicd-pipeline-1, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/shreyanshbhalla/ai-cicd-pipeline-1
- Repository: https://github.com/shreyanshbhalla/ai-cicd-pipeline-1

## Overview

This repository presents a CI/CD platform for testing and deploying AI agents, with a sample agent and a separate metrics dashboard. The documented delivery workflow starts with a push or pull request, runs automated tests, and deploys; Jenkins is described as an alternative pipeline. The dashboard reads configured metric definitions and live values from a JSON file. Pipeline implementation files and metric configuration were not excerpted, so those relationships rely on README statements; no unsupported details of their internal stages are inferred.

Main entry points: [`.github/workflows/ci-cd.yml`](https://github.com/shreyanshbhalla/ai-cicd-pipeline-1/blob/main/.github/workflows/ci-cd.yml) (GitHub Actions), [`monitoring/dashboard.py`](https://github.com/shreyanshbhalla/ai-cicd-pipeline-1/blob/main/monitoring/dashboard.py) (Metrics dashboard), [`jenkins/Jenkinsfile`](https://github.com/shreyanshbhalla/ai-cicd-pipeline-1/blob/main/jenkins/Jenkinsfile) (Jenkins pipeline), [`src/tests/test_example_agent.py`](https://github.com/shreyanshbhalla/ai-cicd-pipeline-1/blob/main/src/tests/test_example_agent.py) (Agent tests)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_delivery["CI/CD delivery"]
  node_github_workflow["GitHub Actions<br/>[ci-cd.yml]"]
  node_jenkins_pipeline["Jenkins pipeline"]
  node_agent_tests["Agent tests"]
end

subgraph group_agent["Agent runtime"]
  node_example_agent["Example agent<br/>[example_agent.py]"]
  node_agent_helpers["Input and logging helpers<br/>[helper.py]"]
end

subgraph group_monitoring["Monitoring"]
  node_dashboard["Metrics dashboard<br/>[dashboard.py]"]
  node_dashboard_config["Dashboard configuration"]
  node_live_metrics["Live metrics file<br/>[metrics.json]"]
end

node_contributor(("Contributor"))
node_deployment["Deployment target"]

node_contributor -->|"pushes changes"| node_github_workflow
node_github_workflow -->|"runs tests"| node_agent_tests
node_github_workflow -->|"deploys"| node_deployment
node_contributor -.->|"starts alternative"| node_jenkins_pipeline
node_jenkins_pipeline -.->|"deploys"| node_deployment
node_agent_tests -.->|"tests"| node_example_agent
node_dashboard -->|"reads settings"| node_dashboard_config
node_dashboard -->|"reads metrics"| node_live_metrics
node_example_agent -.->|"writes metrics"| node_live_metrics

click node_github_workflow "https://github.com/shreyanshbhalla/ai-cicd-pipeline-1/blob/main/.github/workflows/ci-cd.yml"
click node_jenkins_pipeline "https://github.com/shreyanshbhalla/ai-cicd-pipeline-1/blob/main/jenkins/Jenkinsfile"
click node_agent_tests "https://github.com/shreyanshbhalla/ai-cicd-pipeline-1/blob/main/src/tests/test_example_agent.py"
click node_example_agent "https://github.com/shreyanshbhalla/ai-cicd-pipeline-1/blob/main/src/agents/example_agent.py"
click node_agent_helpers "https://github.com/shreyanshbhalla/ai-cicd-pipeline-1/blob/main/src/utils/helper.py"
click node_dashboard "https://github.com/shreyanshbhalla/ai-cicd-pipeline-1/blob/main/monitoring/dashboard.py"
click node_dashboard_config "https://github.com/shreyanshbhalla/ai-cicd-pipeline-1/blob/main/monitoring/dashboard_config.json"
click node_live_metrics "https://github.com/shreyanshbhalla/ai-cicd-pipeline-1/blob/main/monitoring/metrics.json"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_github_workflow,node_jenkins_pipeline,node_agent_tests toneBlue
class node_example_agent,node_agent_helpers toneAmber
class node_dashboard,node_dashboard_config,node_live_metrics toneMint
class node_contributor,node_deployment toneIndigo
```

## Components

### CI/CD delivery

- [GitHub Actions](https://github.com/shreyanshbhalla/ai-cicd-pipeline-1/blob/main/.github/workflows/ci-cd.yml): `.github/workflows/ci-cd.yml`
- [Jenkins pipeline](https://github.com/shreyanshbhalla/ai-cicd-pipeline-1/blob/main/jenkins/Jenkinsfile): `jenkins/Jenkinsfile`
- [Agent tests](https://github.com/shreyanshbhalla/ai-cicd-pipeline-1/blob/main/src/tests/test_example_agent.py): `src/tests/test_example_agent.py`

### Agent runtime

- [Example agent](https://github.com/shreyanshbhalla/ai-cicd-pipeline-1/blob/main/src/agents/example_agent.py): `src/agents/example_agent.py`
- [Input and logging helpers](https://github.com/shreyanshbhalla/ai-cicd-pipeline-1/blob/main/src/utils/helper.py): `src/utils/helper.py`

### Monitoring

- [Metrics dashboard](https://github.com/shreyanshbhalla/ai-cicd-pipeline-1/blob/main/monitoring/dashboard.py): `monitoring/dashboard.py`
- [Dashboard configuration](https://github.com/shreyanshbhalla/ai-cicd-pipeline-1/blob/main/monitoring/dashboard_config.json): `monitoring/dashboard_config.json`
- [Live metrics file](https://github.com/shreyanshbhalla/ai-cicd-pipeline-1/blob/main/monitoring/metrics.json): `monitoring/metrics.json`

### Other components

- **Contributor**
- **Deployment target**

## Connections

- Contributor → GitHub Actions: pushes changes (evidence: `README.md`)
- GitHub Actions → Agent tests: runs tests (evidence: `README.md`)
- GitHub Actions → Deployment target: deploys (evidence: `README.md`)
- Contributor → Jenkins pipeline: starts alternative (evidence: `README.md`)
- Jenkins pipeline → Deployment target: deploys (evidence: `README.md`)
- Agent tests → Example agent: tests
- Metrics dashboard → Dashboard configuration: reads settings (evidence: `monitoring/dashboard.py`)
- Metrics dashboard → Live metrics file: reads metrics (evidence: `monitoring/dashboard.py`)
- Example agent → Live metrics file: writes metrics (evidence: `README.md`)
