-
Notifications
You must be signed in to change notification settings - Fork 11
202 lines (174 loc) · 5.81 KB
/
gnu-data.yml
File metadata and controls
202 lines (174 loc) · 5.81 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
name: CI
on:
push:
branches:
- main
pull_request:
schedule:
- cron: "0 2,8,14,20 * * *"
jobs:
lint:
name: Lint and format check
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.x'
- name: Install ruff
run: pip install ruff
- name: Run ruff linter
run: ruff check .
- name: Run ruff format check
run: ruff format --check .
gnu:
name: Process the GNU and size test results
runs-on: ubuntu-latest
steps:
- name: Install deps
shell: bash
run: |
sudo apt-get update
sudo apt-get install jq python3-pandas python3-matplotlib python3-seaborn fonts-dejavu-core
- name: Checkout repo
uses: actions/checkout@v6
- name: Download the GNU result
uses: dawidd6/action-download-artifact@v16
with:
workflow: GnuTests.yml
name: test-summary
repo: uutils/coreutils
path: dl
- name: Download the busybox result
uses: dawidd6/action-download-artifact@v16
with:
workflow: CICD.yml
name: busybox-result.json
repo: uutils/coreutils
path: dl
- name: Download the toybox result
uses: dawidd6/action-download-artifact@v16
with:
workflow: CICD.yml
name: toybox-result.json
repo: uutils/coreutils
path: dl
- name: Download the individual size result
uses: dawidd6/action-download-artifact@v16
with:
workflow: CICD.yml
name: individual-size-result
repo: uutils/coreutils
path: dl
- name: Download the size result
uses: dawidd6/action-download-artifact@v16
with:
workflow: CICD.yml
name: size-result
repo: uutils/coreutils
path: dl
- name: Download the full test report
uses: dawidd6/action-download-artifact@v16
with:
workflow: GnuTests.yml
name: aggregated-result
repo: uutils/coreutils
path: dl
- name: Merge the json files
shell: bash
run: |
echo "== dl/gnu-result.json =="
cat dl/gnu-result.json
echo "== gnu-result.json =="
cat gnu-result.json|tail -100
jq -s '.[0] * .[1]' gnu-result.json dl/gnu-result.json > merged.json
echo "== merged.json ="
cat merged.json|tail -100
mv merged.json gnu-result.json
echo "== dl/busybox-result.json =="
cat dl/busybox-result.json|tail -100
echo "== busybox-result.json =="
cat busybox-result.json|tail -100
jq -s '.[0] * .[1]' busybox-result.json dl/busybox-result.json > merged.json
echo "== merged.json ="
cat merged.json
mv merged.json busybox-result.json
echo "== dl/toybox-result.json =="
cat dl/toybox-result.json|tail -100
echo "== toybox-result.json =="
cat toybox-result.json|tail -100
jq -s '.[0] * .[1]' toybox-result.json dl/toybox-result.json > merged.json
echo "== merged.json ="
cat merged.json|tail -100
mv merged.json toybox-result.json
echo "== dl/individual-size-result.json =="
cat dl/individual-size-result.json
echo "== individual-size-result.json =="
cat individual-size-result.json|tail -100
jq -s '.[0] * .[1]' individual-size-result.json dl/individual-size-result.json > merged.json
echo "== merged.json ="
cat merged.json|tail -100
mv merged.json individual-size-result.json
echo "== dl/size-result.json =="
cat dl/size-result.json|tail -100
echo "== size-result.json =="
cat size-result.json|tail -100
jq -s '.[0] * .[1]' size-result.json dl/size-result.json > merged.json
echo "== merged.json ="
cat merged.json|tail -100
mv merged.json size-result.json
echo "== dl/aggregated-result.json =="
cat dl/aggregated-result.json|tail -100
mv dl/aggregated-result.json aggregated-result.json
rm -rf dl
- name: Add & Commit
if: github.event_name != 'pull_request'
uses: EndBug/add-and-commit@v9.1.4
with:
default_author: github_actions
message: "Update of the data"
- name: Generate the graphs
shell: bash
run: |
python graph.py gnu-result.json GNU
python graph.py busybox-result.json BusyBox
python graph.py toybox-result.json Toybox
python individual-size-graph.py individual-size-result.json
python size-graph.py size-result.json
- name: Add & Commit the GNU graph
if: github.event_name != 'pull_request'
uses: EndBug/add-and-commit@v9.1.4
with:
default_author: github_actions
message: "Refresh the GNU graph"
add: gnu-results.svg
- name: Add & Commit the busybox graph
if: github.event_name != 'pull_request'
uses: EndBug/add-and-commit@v9.1.4
with:
default_author: github_actions
message: "Refresh the busybox graph"
add: busybox-results.svg
- name: Add & Commit the toybox graph
if: github.event_name != 'pull_request'
uses: EndBug/add-and-commit@v9.1.4
with:
default_author: github_actions
message: "Refresh the toybox graph"
add: toybox-results.svg
- name: Add & Commit the individual size graph
if: github.event_name != 'pull_request'
uses: EndBug/add-and-commit@v9.1.4
with:
default_author: github_actions
message: "Refresh the individual size graph"
add: individual-size-results
- name: Add & Commit the size graph
if: github.event_name != 'pull_request'
uses: EndBug/add-and-commit@v9.1.4
with:
default_author: github_actions
message: "Refresh the size graph"
add: size-results.svg