[CI][binary-size] Add bloaty measurement to arm-bare-metal size job#19968
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/19968
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (2 Unrelated Failures)As of commit 68e12bc with merge base 915a82d ( BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
Adds a custom bloaty data source that buckets demangled symbols into ExecuTorch-meaningful groups (runtime / extension / backends / kernels / flatbuffer / stdlib / libc / etc), and a helper script that runs bloaty against the size_test ELF, writes metadata.json + human-readable text output as a CI artifact, and appends a per-bucket markdown table to the GitHub Actions step summary. Wired into the test-arm-cortex-m-size-test job only — the existing ls -la threshold check is untouched. Other size jobs will be wired up in follow-up PRs in this stack; later PRs add the sticky PR comment and replace the coarse byte threshold with per-bucket gating. Authored with Claude.
70271e3 to
68e12bc
Compare
| # This source code is licensed under the BSD-style license found in the | ||
| # LICENSE file in the root directory of this source tree. | ||
|
|
||
| """Bloaty binary-size reports for CI.""" |
There was a problem hiding this comment.
Can this script be used on a given executirch binary that is locally built say on my local setup too ?
There was a problem hiding this comment.
Yes, though it is probably of limited use locally. This script is mostly a GitHub CI wrapper around bloaty meant create the markdown and artifacts from the CI build.
…19968) ### Summary Adds a custom bloaty data source that buckets demangled symbols into ExecuTorch-meaningful groups (runtime / extension / backends / kernels / flatbuffer / stdlib / libc / etc), and a helper script that runs bloaty against the size_test ELF, writes metadata.json + human-readable text output as a CI artifact, and appends a per-bucket markdown table to the GitHub Actions step summary. Wired into the test-arm-cortex-m-size-test job only — the existing ls -la threshold check is untouched. Other size jobs will be wired up in follow-up PRs in this stack; later PRs add the sticky PR comment and replace the coarse byte threshold with per-bucket gating. ### Test Plan CI artifact creation Authored with Claude.
Summary
Adds a custom bloaty data source that buckets demangled symbols into ExecuTorch-meaningful groups (runtime / extension / backends / kernels / flatbuffer / stdlib / libc / etc), and a helper script that runs bloaty against the size_test ELF, writes metadata.json + human-readable text output as a CI artifact, and appends a per-bucket markdown table to the GitHub Actions step summary.
Wired into the test-arm-cortex-m-size-test job only — the existing ls -la threshold check is untouched. Other size jobs will be wired up in follow-up PRs in this stack; later PRs add the sticky PR comment and replace the coarse byte threshold with per-bucket gating.
Test Plan
CI artifact creation
Authored with Claude.