Skip to content

Commit

Permalink
Upload multiple test data artifacts to provide coverage for artifact …
Browse files Browse the repository at this point in the history
…name pattern feature

The action was originally designed for a use case where there will only be a single sketches reports workflow artifact.
Due to a change in the "actions/upload-artifact" GitHub Actions action, it became necessary to add the capability for
the "arduino/report-size-deltas" action to be able to consume reports from multiple artifacts.

The "Upload test sketches report artifact" GitHub Actions workflow is hereby updated to produce multiple test data
artifacts in order to allow the "Run integration tests" workflow to provide coverage for the new capability.

As was previously the case, one of the artifacts uploaded by the workflow contains multiple sketches report files in
order to provide test data necessary to continue providing coverage for the <=actions/upload-artifact@v3 single artifact
system. Even though the produced test data (multiple artifacts, with multiple reports in a single artifact) would not
occur under real world usage, it is the cleanest way (the alternative being to create and maintain separate copies of
the system implemented in the `report-target-pr` branch for each use pattern) to provide effective integration test
coverage.
  • Loading branch information
per1234 committed Jan 24, 2024
1 parent 39c0012 commit e99610b
Show file tree
Hide file tree
Showing 4 changed files with 751 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,245 @@
{
"commit_hash": "0123456789abcdef0123456789abcdef01234567",
"commit_url": "https://github.com/per1234/generate-size-deltas-report/commit/651f05f4d4aca30ac359e972c01568f873112d43",
"boards": [
{
"board": "arduino:avr:leonardo",
"sketches": [
{
"name": "examples/MIDIUSB_clock",
"compilation_success": true,
"sizes": [
{
"name": "flash",
"maximum": 28672,
"current": {
"absolute": 4792,
"relative": 16.71
},
"previous": {
"absolute": 4792,
"relative": 16.71
},
"delta": {
"absolute": 0,
"relative": 0.0
}
},
{
"name": "RAM for global variables",
"maximum": 2560,
"current": {
"absolute": 443,
"relative": 17.3
},
"previous": {
"absolute": 443,
"relative": 17.3
},
"delta": {
"absolute": 0,
"relative": 0.0
}
}
],
"warnings": {
"current": {
"absolute": 2
},
"previous": {
"absolute": 2
},
"delta": {
"absolute": 0
}
}
},
{
"name": "examples/MIDIUSB_loop",
"compilation_success": true,
"sizes": [
{
"name": "flash",
"maximum": 28672,
"current": {
"absolute": 4870,
"relative": 16.99
},
"previous": {
"absolute": 4870,
"relative": 16.99
},
"delta": {
"absolute": 0,
"relative": 0.0
}
},
{
"name": "RAM for global variables",
"maximum": 2560,
"current": {
"absolute": 441,
"relative": 17.23
},
"previous": {
"absolute": 441,
"relative": 17.23
},
"delta": {
"absolute": 0,
"relative": 0.0
}
}
],
"warnings": {
"current": {
"absolute": 3
},
"previous": {
"absolute": 3
},
"delta": {
"absolute": 0
}
}
},
{
"name": "examples/MIDIUSB_read",
"compilation_success": true,
"sizes": [
{
"name": "flash",
"maximum": 28672,
"current": {
"absolute": 4908,
"relative": 17.12
},
"previous": {
"absolute": 4908,
"relative": 17.12
},
"delta": {
"absolute": 0,
"relative": 0.0
}
},
{
"name": "RAM for global variables",
"maximum": 2560,
"current": {
"absolute": 457,
"relative": 17.85
},
"previous": {
"absolute": 457,
"relative": 17.85
},
"delta": {
"absolute": 0,
"relative": 0.0
}
}
],
"warnings": {
"current": {
"absolute": 3
},
"previous": {
"absolute": 3
},
"delta": {
"absolute": 0
}
}
},
{
"name": "examples/MIDIUSB_write",
"compilation_success": true,
"sizes": [
{
"name": "flash",
"maximum": 28672,
"current": {
"absolute": 4524,
"relative": 15.78
},
"previous": {
"absolute": 4564,
"relative": 15.92
},
"delta": {
"absolute": -40,
"relative": -0.14
}
},
{
"name": "RAM for global variables",
"maximum": 2560,
"current": {
"absolute": 197,
"relative": 7.7
},
"previous": {
"absolute": 213,
"relative": 8.32
},
"delta": {
"absolute": -16,
"relative": -0.62
}
}
],
"warnings": {
"current": {
"absolute": 3
},
"previous": {
"absolute": 3
},
"delta": {
"absolute": 0
}
}
}
],
"sizes": [
{
"name": "flash",
"maximum": 28672,
"delta": {
"absolute": {
"minimum": -40,
"maximum": 0
},
"relative": {
"minimum": -0.14,
"maximum": 0.0
}
}
},
{
"name": "RAM for global variables",
"maximum": 2560,
"delta": {
"absolute": {
"minimum": -16,
"maximum": 0
},
"relative": {
"minimum": -0.62,
"maximum": 0.0
}
}
}
],
"warnings": {
"delta": {
"absolute": {
"minimum": 0,
"maximum": 0
}
}
}
}
]
}
Loading

0 comments on commit e99610b

Please sign in to comment.