-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathstage-graph.json
More file actions
226 lines (226 loc) · 6.38 KB
/
stage-graph.json
File metadata and controls
226 lines (226 loc) · 6.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
{
"version": "2025-09-28",
"pipelines": [
{
"id": "full-refresh-parallel",
"description": "Full catalogue refresh using the parallel worker pool.",
"stages": [
"collect-metadata",
"parallel-processing",
"aggregate-catalogue",
"generate-result-markdown"
]
}
],
"artifacts": [
{
"id": "github-api-cache",
"type": "file",
"path": "website/data/gitHubData.json",
"format": "json",
"description": "Cached repository metadata fetched from GitHub/GitLab/Bitbucket/Codeberg APIs."
},
{
"id": "cloned-modules",
"type": "directory",
"path": "modules/",
"description": "Working tree containing shallow clones of each module repository."
},
{
"id": "modules-temp",
"type": "directory",
"path": "modules_temp/",
"description": "Cache of module clones from the previous run; recycled by the pipeline to avoid full re-clones."
},
{
"id": "images-catalogue",
"type": "directory",
"path": "website/images/",
"description": "Resized module screenshots exported for the public catalogue."
},
{
"id": "modules-json",
"type": "file",
"path": "website/data/modules.json",
"format": "json",
"description": "Final module catalogue powering downstream consumers.",
"schema": "dist/schemas/modules.final.schema.json"
},
{
"id": "modules-json-min",
"type": "file",
"path": "website/data/modules.min.json",
"format": "json",
"description": "Minified variant of the module catalogue.",
"schema": "dist/schemas/modules.min.schema.json"
},
{
"id": "stats-json",
"type": "file",
"path": "website/data/stats.json",
"format": "json",
"description": "Aggregated metrics collected during analysis.",
"schema": "dist/schemas/stats.schema.json"
},
{
"id": "skipped-modules-json",
"type": "file",
"path": "website/data/skipped_modules.json",
"format": "json",
"description": "Modules that failed processing (e.g. inaccessible repositories), displayed separately on the website."
},
{
"id": "result-markdown",
"type": "file",
"path": "website/result.md",
"format": "markdown",
"description": "Human-readable issue breakdown generated from the latest in-memory analysis payload and published stats."
}
],
"stages": [
{
"id": "collect-metadata",
"name": "Collect Metadata",
"description": "Unified stage: Fetch module list from Wiki and enrich with repository metadata.",
"command": {
"executable": "node",
"args": ["scripts/collect-metadata/index.ts"]
},
"dependsOn": [],
"inputs": [
{
"type": "external",
"kind": "http",
"uri": "https://raw.githubusercontent.com/wiki/MagicMirrorOrg/MagicMirror/3rd-Party-Modules.md",
"description": "Authoritative list of community modules maintained in the MagicMirror wiki."
},
{
"artifact": "github-api-cache",
"mode": "read",
"optional": true
}
],
"outputs": [
{
"artifact": "github-api-cache",
"mode": "write"
}
],
"sideEffects": [
{
"type": "network",
"description": "Fetches Wiki and makes API calls to GitHub/GitLab/etc."
}
],
"environment": [
{
"name": "GITHUB_TOKEN",
"required": false,
"description": "Personal access token used to increase API rate limits."
}
]
},
{
"id": "parallel-processing",
"name": "Parallel module processing",
"description": "Clone, enrich, and analyze modules in parallel using the worker pool.",
"command": {
"executable": "node",
"args": ["scripts/parallel-processing.ts"]
},
"dependsOn": ["collect-metadata"],
"inputs": [],
"outputs": [
{
"artifact": "cloned-modules",
"mode": "write"
},
{
"artifact": "images-catalogue",
"mode": "write"
},
{
"artifact": "skipped-modules-json",
"mode": "write"
}
],
"sideEffects": [
{
"type": "filesystem",
"description": "Creates/updates module clones in modules/ and modules_temp/."
},
{
"type": "filesystem",
"description": "Generates resized module screenshots in website/images/."
},
{
"type": "process",
"description": "Spawns worker processes for parallel module processing."
},
{
"type": "network",
"description": "Git operations and npm commands may access external resources."
}
]
},
{
"id": "aggregate-catalogue",
"name": "Aggregate catalogue outputs",
"description": "Build final published catalogue outputs from the in-memory analysis payload.",
"command": {
"executable": "node",
"args": ["scripts/aggregate-catalogue.ts"]
},
"dependsOn": ["parallel-processing"],
"inputs": [],
"outputs": [
{
"artifact": "modules-json",
"mode": "write"
},
{
"artifact": "modules-json-min",
"mode": "write"
},
{
"artifact": "stats-json",
"mode": "write"
}
],
"sideEffects": [
{
"type": "filesystem",
"description": "Writes final published catalogue and stats JSON artifacts."
}
]
},
{
"id": "generate-result-markdown",
"name": "Generate result markdown",
"description": "Render website/result.md from the in-memory analysis payload and published stats.",
"command": {
"executable": "node",
"args": ["scripts/generate-result-markdown.ts"]
},
"dependsOn": ["aggregate-catalogue"],
"inputs": [
{
"artifact": "stats-json",
"mode": "read"
}
],
"outputs": [
{
"artifact": "result-markdown",
"mode": "write"
}
],
"sideEffects": [
{
"type": "filesystem",
"description": "Writes the published result markdown page for module issue review."
}
]
}
]
}