From 45f414dd64595cc0155110003b63349f227f6b37 Mon Sep 17 00:00:00 2001 From: Andre <200930841+Andre-Bzk@users.noreply.github.com> Date: Sat, 8 Aug 2026 12:42:48 +0200 Subject: [PATCH] docs: add architecture diagrams Without a stable documentation entry point, readers have to reconstruct the mirror, release, and asset flows from code alone, which makes operational review and onboarding harder. --- README.md | 10 + .../sync_mirrors.architecture.html | 13209 +++++++++++++++ .../sync_mirrors.architecture.json | 258 + docs/architecture/sync_mirrors.sequence.html | 13317 ++++++++++++++++ docs/architecture/sync_mirrors.sequence.json | 318 + 5 files changed, 27112 insertions(+) create mode 100644 docs/architecture/sync_mirrors.architecture.html create mode 100644 docs/architecture/sync_mirrors.architecture.json create mode 100644 docs/architecture/sync_mirrors.sequence.html create mode 100644 docs/architecture/sync_mirrors.sequence.json diff --git a/README.md b/README.md index a13906b..236e8a2 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,11 @@ Keeping the repositories' *git content* up to date remains Gitea's job. | Pull new commits into **existing** mirrors | Gitea itself | `MIRROR_INTERVAL` | | Synchronize release metadata and uploaded assets | this script (cron) | daily | +### Architecture + +- [Architecture diagram](docs/architecture/sync_mirrors.architecture.html) +- [Sequence diagram](docs/architecture/sync_mirrors.sequence.html) + ### Requirements - Gitea 1.20+ with an API token (scopes `write:repository,read:user`) @@ -234,6 +239,11 @@ bleibt Giteas Aufgabe. | Commits in **bestehende** Mirrors holen | Gitea selbst | `MIRROR_INTERVAL` | | Release-Metadaten und hochgeladene Assets synchronisieren | dieses Skript (Cron) | täglich | +### Architektur + +- [Architecture-Diagramm](docs/architecture/sync_mirrors.architecture.html) +- [Sequence-Diagramm](docs/architecture/sync_mirrors.sequence.html) + ### Voraussetzungen - Gitea 1.20+ mit API-Token (Scopes `write:repository,read:user`) diff --git a/docs/architecture/sync_mirrors.architecture.html b/docs/architecture/sync_mirrors.architecture.html new file mode 100644 index 0000000..cfc2472 --- /dev/null +++ b/docs/architecture/sync_mirrors.architecture.html @@ -0,0 +1,13209 @@ + + +
+ + + +Runtime components and trust boundaries used by sync_mirrors.py for repository mirrors, releases, and streamed release assets
+Inspecting compiled semantics
+No matching nodes
+ +Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.
+ +Choose a kind to inspect its nodes and touching relationships.
+Runtime sequence of sync_mirrors.py: config, repository mirroring, release sync, streamed asset copy, orphan check, and exit status
+Inspecting compiled semantics
+No matching nodes
+ +Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.
+ +Choose a kind to inspect its nodes and touching relationships.
+