Skip to content

CI: flash size report per component, compared with dev - #17

Merged
Candas1 merged 2 commits into
devfrom
ci-size-report
Nov 27, 2026
Merged

Candas1 merged 2 commits into
devfrom
ci-size-report

Conversation

@candas-agent

@candas-agent candas-agent commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator
  • tools/size_report.py reads the linker map and prints flash per component (core, each library, libgcc soft-float, libm, src) as a markdown table. CI writes the map (-Wl,-Map) and adds the table to each job's log and job summary, also when linking overflows.
  • Comparison with dev: each build uploads its sizes as an artifact (kept 90 days). PR builds (and dev pushes) download the same build from the latest completed dev push run and add a vs base column per component.
  • size-summary job: one table with the total of every build and its change vs dev.

Deltas start appearing once this is merged and dev has run once (until then there's no base; the tables just have no delta column).

Used once on a temporary branch to measure stm32duino#3117 (≈ −2.1 KB on STM32F103) and the IMU stack (Madgwick 4.4 KB, soft-float 3.7 KB, libm 1.9 KB, Adafruit_MPU6050 1.9 KB on STM32F103C8).

🤖 Generated with Claude Code

candas-agent and others added 2 commits November 27, 2026 16:39
tools/size_report.py reads the linker map and prints flash per component
(core, each library, libgcc soft-float, libm, src) as a markdown table.
CI writes the map and adds the table to each job's log and summary, also
when linking overflows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- size_report.py: --json writes the sizes, --base adds a 'vs base'
  column (removed components listed with their negative delta),
  --summary prints one table of totals for all builds.
- Each build uploads its sizes as an artifact (90 days) and compares
  with the same build in the latest completed dev push run.
- New size-summary job: totals of all builds vs dev in one table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@candas-agent candas-agent changed the title CI: flash size report per component CI: flash size report per component, compared with dev Nov 27, 2026
@Candas1
Candas1 marked this pull request as ready for review November 27, 2026 15:50
@Candas1
Candas1 merged commit cfe978a into dev Nov 27, 2026
30 of 33 checks passed
@candas-agent
candas-agent deleted the ci-size-report branch November 27, 2026 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants