Skip to content

Pr/rewrite test size#21

Open
peterbarker wants to merge 8 commits intomasterfrom
pr/rewrite-test-size
Open

Pr/rewrite test size#21
peterbarker wants to merge 8 commits intomasterfrom
pr/rewrite-test-size

Conversation

@peterbarker
Copy link
Copy Markdown
Owner

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 14, 2025

📊 Size Comparison Report

Build completed for commit 9e378e5

📦 Size Changes

Board,AP_Periph,antennatracker,blimp,bootloader,copter,heli,plane,rover,sub
DrotekP3Pro,,-12464,-12552,*,-47440,-47496,-46952,-47136,-47036
Durandal,,-16872,-16928,*,-51632,-51928,-51360,-51920,-51636
Hitec-Airspeed,96,,,*,,,,,
KakuteF7,,-416,-440,*,472,408,816,-16,856
MambaH743v4,,-10112,-10152,*,-44152,-44408,-44264,-44328,-44436
MatekF405,,-224,-248,*,648,592,1000,-16,856
MatekF405-CAN,,-536,-544,*,192,112,528,-80,752
MatekH743-bdshot,,-12512,-12608,*,-47520,-47800,-47024,-47512,-47268
Pixhawk1-1M,,-432,-480,*,192,136,624,-168,680
f103-GPS,72,,,*,,,,,
Board,AP_Periph,antennatracker,blimp,bootloader,copter,heli,plane,rover,sub
DrotekP3Pro,,"-AP_CAMERA_SEND_FOV_STATUS_ENABLED
Durandal,,"-AP_CAMERA_SEND_FOV_STATUS_ENABLED
Hitec-Airspeed,"",,,"",,,,,
KakuteF7,,"","","","","","","",""
MambaH743v4,,"-AP_CAMERA_SEND_THERMAL_RANGE_ENABLED
MatekF405,,"","","","","","","",""
MatekF405-CAN,,"","","","","","","",""
MatekH743-bdshot,,"-AP_CAMERA_SEND_FOV_STATUS_ENABLED
Pixhawk1-1M,,"","","","","","","",""
f103-GPS,"",,,"",,,,,

Updated automatically by the size test workflow

peterbarker and others added 8 commits January 23, 2026 16:35
Significantly simplifies the test_size workflow by replacing ~300 lines of
manual build steps with a single call to size_compare_branches.py.

Changes:
- Removed matrix build strategy
- Use single job with size_compare_branches.py parallelization (--parallel-copies 4)
- Removed manual build logic for base and PR branches
- Removed manual size comparison steps (pretty_diff_size.py)
- Removed manual feature extraction steps (extract_features.py)
- Use --all-vehicles to let size_compare_branches.py determine what to build
- Removed artifact upload (output stays in job logs)

Benefits:
- Reduced workflow from ~330 lines to ~110 lines (-67%)
- Single source of truth for size comparison logic
- Easier to maintain
- Same experience for CI and local development
- Parallelization handled by size_compare_branches.py

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Add a step to fetch the base branch as 'upstream' remote before running
size_compare_branches.py. This fixes the "Not a valid object name master"
error by ensuring the base branch exists as a git reference.

Changes:
- Add git remote for base repository
- Fetch base branch to upstream remote
- Pass --master-branch upstream/<ref> instead of just <ref>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
The --parallel-copies option requires rsync which is not available in the
CI environment. Use --jobs instead to control build parallelization.
Add step to install rsync package which is required by size_compare_branches.py
when using --parallel-copies. Restore --parallel-copies 4 with -j 2 for better
parallelization across multiple source tree copies.
Keep rsync installed but don't use --parallel-copies. Use -j 8 for build
parallelization instead.
Disable mount support by default to reduce flash usage.
Add a new step that captures the output from size_compare_branches.py and
posts it as a formatted PR comment. The comment includes:

- Size changes section with code block formatting
- Feature changes section with readable ✅/❌ symbols for added/removed features
- Auto-updates on each CI run
- Clear headings and organization

The comment is created on first run and updated on subsequent runs to avoid
cluttering the PR with multiple bot comments.
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.

1 participant