-
Notifications
You must be signed in to change notification settings - Fork 5
174 lines (151 loc) · 4.95 KB
/
gnu-data.yml
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
name: CI
on:
push:
branches:
- main
schedule:
- cron: "0 2,14 * * *"
jobs:
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
- name: Checkout repo
uses: actions/checkout@v4
- name: Download the GNU result
uses: dawidd6/action-download-artifact@v2
with:
workflow: GnuTests.yml
name: test-summary
repo: uutils/coreutils
path: dl
- name: Download the busybox result
uses: dawidd6/action-download-artifact@v2
with:
workflow: CICD.yml
name: busybox-result.json
repo: uutils/coreutils
path: dl
- name: Download the toybox result
uses: dawidd6/action-download-artifact@v2
with:
workflow: CICD.yml
name: toybox-result.json
repo: uutils/coreutils
path: dl
- name: Download the individual size result
uses: dawidd6/action-download-artifact@v2
with:
workflow: CICD.yml
name: individual-size-result
repo: uutils/coreutils
path: dl
- name: Download the size result
uses: dawidd6/action-download-artifact@v2
with:
workflow: CICD.yml
name: size-result
repo: uutils/coreutils
path: dl
- name: Download the full test report
uses: dawidd6/action-download-artifact@v2
with:
workflow: GnuTests.yml
name: gnu-full-result.json
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
jq -s '.[0] * .[1]' gnu-result.json dl/gnu-result.json > merged.json
echo "== merged.json ="
cat merged.json
mv merged.json gnu-result.json
echo "== dl/busybox-result.json =="
cat dl/busybox-result.json
echo "== busybox-result.json =="
cat busybox-result.json
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
echo "== toybox-result.json =="
cat toybox-result.json
jq -s '.[0] * .[1]' toybox-result.json dl/toybox-result.json > merged.json
echo "== merged.json ="
cat merged.json
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
jq -s '.[0] * .[1]' individual-size-result.json dl/individual-size-result.json > merged.json
echo "== merged.json ="
cat merged.json
mv merged.json individual-size-result.json
echo "== dl/size-result.json =="
cat dl/size-result.json
echo "== size-result.json =="
cat size-result.json
jq -s '.[0] * .[1]' size-result.json dl/size-result.json > merged.json
echo "== merged.json ="
cat merged.json
mv merged.json size-result.json
echo "== dl/gnu-full-result.json =="
cat dl/gnu-full-result.json
mv dl/gnu-full-result.json gnu-full-result.json
rm -rf dl
- name: Add & Commit
uses: EndBug/[email protected]
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-result
python individual-size-graph.py individual-size-result.json
python size-graph.py size-result.json
- name: Add & Commit the GNU graph
uses: EndBug/[email protected]
with:
default_author: github_actions
message: "Refresh the GNU graph"
add: gnu-results.png
- name: Add & Commit the busybox graph
uses: EndBug/[email protected]
with:
default_author: github_actions
message: "Refresh the busybox graph"
add: busybox-results.png
- name: Add & Commit the toybox graph
uses: EndBug/[email protected]
with:
default_author: github_actions
message: "Refresh the toybox graph"
add: toybox-results.png
- name: Add & Commit the individual size graph
uses: EndBug/[email protected]
with:
default_author: github_actions
message: "Refresh the individual size graph"
add: individual-size-results
- name: Add & Commit the size graph
uses: EndBug/[email protected]
with:
default_author: github_actions
message: "Refresh the size graph"
add: size-results.png