# bgrgicak/playground-tester architecture

> Architecture diagram of the GitHub repository bgrgicak/playground-tester, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2024-12-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bgrgicak/playground-tester
- Repository: https://github.com/bgrgicak/playground-tester

## Overview

- WordPress.org → Update Manager
- Update Manager → Test Runner System

- Test Runner → Blueprint Generator
- Blueprint Generator → WordPress Playground
- WordPress Playground → Log Parser

- Log Parser → Raw Logs Storage
- Log Parser → Parsed Results Storage
- Report Generator → Generated Reports
- All Storage → Git Repository

- GitHub Actions Workflows
- Continuous Test Execution Loop
- Scheduled Report Generation

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph "Input Sources"
        WPPlugins["WordPress.org Plugin Repository"]
        WPThemes["WordPress.org Theme Repository"]
    end

    subgraph "Core Processing"
        UpdateMgr[("Update Manager")]
        TestRunner[("Test Runner System")]
        Blueprint[("Blueprint Generator")]
        LogParser[("Log Parser")]
        ReportGen[("Report Generator")]
    end

    subgraph "Storage"
        RawLogs[(Raw Logs Storage)]
        ParsedResults[(Parsed Results Storage)]
        GenReports[(Generated Reports)]
    end

    subgraph "External Dependencies"
        WPPlayground(("WordPress Playground"))
        Git(("Git Repository"))
        NodeJS(("Node.js Runtime"))
    end

    subgraph "Automation"
        GHActions{"GitHub Actions"}
        TestEnv{"Test Environment"}
    end

    %% Data Flows
    WPPlugins --> |Input| UpdateMgr
    WPThemes --> |Input| UpdateMgr
    UpdateMgr --> |Updates| TestRunner
    TestRunner --> |Test Config| Blueprint
    Blueprint --> |Test Cases| WPPlayground
    WPPlayground --> |Results| LogParser
    LogParser --> |Raw Data| RawLogs
    LogParser --> |Processed Data| ParsedResults
    ParsedResults --> |Input| ReportGen
    ReportGen --> |Reports| GenReports
    
    %% Storage Flows
    RawLogs --> Git
    ParsedResults --> Git
    GenReports --> Git

    %% Automation Flows
    GHActions -.-> UpdateMgr
    GHActions -.-> TestRunner
    GHActions -.-> ReportGen
    TestEnv -.-> WPPlayground
    NodeJS -.-> WPPlayground

    %% Click Events
    click UpdateMgr "https://github.com/bgrgicak/playground-tester/blob/main/scripts/update-available-themes-and-plugins.sh"
    click TestRunner "https://github.com/bgrgicak/playground-tester/blob/main/scripts/run-batch.sh"
    click Blueprint "https://github.com/bgrgicak/playground-tester/blob/main/scripts/lib/blueprints/generate-blueprint.sh"
    click LogParser "https://github.com/bgrgicak/playground-tester/blob/main/scripts/lib/log-parser/parse-raw-logs.sh"
    click ReportGen "https://github.com/bgrgicak/playground-tester/blob/main/scripts/generate-reports.sh"
    click GHActions "https://github.com/bgrgicak/playground-tester/tree/main/.github/workflows"
    click TestEnv "https://github.com/bgrgicak/playground-tester/blob/main/.github/actions/setup-test-environment/action.yml"

    %% Styling
    classDef input fill:#e1f5fe,stroke:#01579b
    classDef process fill:#e8f5e9,stroke:#2e7d32
    classDef storage fill:#fff3e0,stroke:#ef6c00
    classDef external fill:#f3e5f5,stroke:#7b1fa2
    classDef automation fill:#fce4ec,stroke:#c2185b

    class WPPlugins,WPThemes input
    class UpdateMgr,TestRunner,Blueprint,LogParser,ReportGen process
    class RawLogs,ParsedResults,GenReports storage
    class WPPlayground,Git,NodeJS external
    class GHActions,TestEnv automation

    %% Legend
    subgraph Legend
        Input[Input Source]:::input
        Process[Processing Component]:::process
        Store[Storage]:::storage
        Ext[External Dependency]:::external
        Auto[Automation]:::automation
    end
```
