Skip to content

Commit bd9e77f

Browse files
authored
Merge pull request #60 from per1234/report-all-sketches
Report data for all sketch compilations
2 parents 3c5db4b + e8c9b5c commit bd9e77f

File tree

9 files changed

+912
-214
lines changed

9 files changed

+912
-214
lines changed

reportsizedeltas.py

Lines changed: 213 additions & 47 deletions
Large diffs are not rendered by default.

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
pytest==5.4.1
1+
pytest==5.4.2
2+
pytest-mock==3.1.0
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"board": "arduino:avr:leonardo",
3+
"commit_hash": "d8fd302",
4+
"commit_url": "https://example.com/foo",
5+
"sketches": [
6+
{
7+
"name": "examples/Bar",
8+
"compilation_success": true,
9+
"sizes": [
10+
{
11+
"name": "flash",
12+
"current": {
13+
"absolute": 3494
14+
},
15+
"previous": {
16+
"absolute": "N/A"
17+
},
18+
"delta": {
19+
"absolute": "N/A"
20+
}
21+
},
22+
{
23+
"name": "RAM for global variables",
24+
"current": {
25+
"absolute": 153
26+
},
27+
"previous": {
28+
"absolute": "N/A"
29+
},
30+
"delta": {
31+
"absolute": "N/A"
32+
}
33+
}
34+
]
35+
},
36+
{
37+
"name": "examples/Foo",
38+
"compilation_success": true,
39+
"sizes": [
40+
{
41+
"name": "flash",
42+
"current": {
43+
"absolute": 3462
44+
},
45+
"previous": {
46+
"absolute": 3474
47+
},
48+
"delta": {
49+
"absolute": -12
50+
}
51+
},
52+
{
53+
"name": "RAM for global variables",
54+
"current": {
55+
"absolute": 149
56+
},
57+
"previous": {
58+
"absolute": 149
59+
},
60+
"delta": {
61+
"absolute": 0
62+
}
63+
}
64+
]
65+
}
66+
],
67+
"sizes": [
68+
{
69+
"name": "flash",
70+
"delta": {
71+
"absolute": {
72+
"minimum": -12,
73+
"maximum": -12
74+
}
75+
}
76+
},
77+
{
78+
"name": "RAM for global variables",
79+
"delta": {
80+
"absolute": {
81+
"minimum": 0,
82+
"maximum": 0
83+
}
84+
}
85+
}
86+
]
87+
}
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"board": "arduino:avr:uno",
3+
"commit_hash": "d8fd302",
4+
"commit_url": "https://example.com/foo",
5+
"sketches": [
6+
{
7+
"name": "examples/Bar",
8+
"compilation_success": true,
9+
"sizes": [
10+
{
11+
"name": "flash",
12+
"current": {
13+
"absolute": 1460
14+
},
15+
"previous": {
16+
"absolute": "N/A"
17+
},
18+
"delta": {
19+
"absolute": "N/A"
20+
}
21+
},
22+
{
23+
"name": "RAM for global variables",
24+
"current": {
25+
"absolute": 190
26+
},
27+
"previous": {
28+
"absolute": "N/A"
29+
},
30+
"delta": {
31+
"absolute": "N/A"
32+
}
33+
}
34+
]
35+
},
36+
{
37+
"name": "examples/Foo",
38+
"compilation_success": true,
39+
"sizes": [
40+
{
41+
"name": "flash",
42+
"current": {
43+
"absolute": 444
44+
},
45+
"previous": {
46+
"absolute": 1438
47+
},
48+
"delta": {
49+
"absolute": -994
50+
}
51+
},
52+
{
53+
"name": "RAM for global variables",
54+
"current": {
55+
"absolute": 9
56+
},
57+
"previous": {
58+
"absolute": 184
59+
},
60+
"delta": {
61+
"absolute": -175
62+
}
63+
}
64+
]
65+
}
66+
],
67+
"sizes": [
68+
{
69+
"name": "flash",
70+
"delta": {
71+
"absolute": {
72+
"minimum": -994,
73+
"maximum": -994
74+
}
75+
}
76+
},
77+
{
78+
"name": "RAM for global variables",
79+
"delta": {
80+
"absolute": {
81+
"minimum": -175,
82+
"maximum": -175
83+
}
84+
}
85+
}
86+
]
87+
}

tests/data/size-deltas-reports/adafruit-samd-adafruit_feather_m0.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/data/size-deltas-reports/arduino-samd-mkrnb1500.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/data/size-deltas-reports/esp8266-esp8266-huzzah.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)