Skip to content

test(memory): preserve Teensy 4.1 gains and ratchet budgets - #4756

Merged
zackees merged 1 commit into
masterfrom
fix/memory-4746-teensy41
Oct 7, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/memory-4746-teensy41

Conversation

@zackees

@zackees zackees commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Summary

Refs #4746 and #4737. Parent #4737 must remain open.

  • Preserve Teensy 4.1's recorded master gains with matched local 3.10.3/current builds and bloat for published Blink and controlled RGB.
  • Ratchet existing Blink/Apa102 flash ceilings from 120000/88000 to measured 50176/49152; update the frozen registry and history.
  • Add the scoped Blink image/attributed-RAM budget 50176/23279 and wire it into the existing Teensy 4.1 build workflow using the already-landed optional input. No native source changes or new workflow files.

Matched measurements

workload 3.10.3 current master preserved gain
published Blink 62464 / 32992 50176 / 28384 12288 / 4608
controlled RGB 62464 / 32992 50176 / 28384 12288 / 4608

Board flash / physical RAM bytes. Current matches the original meta master reference 50176/28384; new savings since that reference are zero. No historical gain is counted as a new source optimization.

3.10.3 20667c3a6413ed46a828f78ec95fb57e58d753f8, current master 8647a12f10825567c068223d20f2abbbdb68ffab. fbuild 2.5.37, Teensy framework 1.160.0, ARM GCC 11.3.1 package 1.110301.0, Cortex-M7 600MHz, normal -Os/LTO/hard-float/C++17 flags. Historical source compatibility stub ::delay(0), current normal stub. No slim opt-in.

Current published image 50176/attributedRAM 23279; control attribution 23095 despite identical rounded board totals. Historical image 62464/attributedRAM 28028. Retrospective historical budget RED 12288 image/4749 attributedRAM; current restored published budget GREEN. This protects preserved gains; no new native implementation or pre-code RED claim.

Apa102 local SDK build succeeds: board 49152/28448, image 49152/attributedRAM 23176. Existing workflow metric independently reports Blink text+data 50176 and Apa102 49152, so both lowered ceilings use their actual metric. Blink is restored before its final budget check.

Validation

  • Local sequential source builds and fbuild bloat for every version/workload; same cached project, generated-TU fingerprints, archived historical source and finally restoration. Exact GPIO 3 one-NEOPIXEL red/black 1000ms controlled sketch without Serial; normal published Blink measured separately after restoration.
  • Exact reusable-workflow gate bash bloat teensy41 --example Blink --build --budget tests/data/teensy41_bloat_budget.json passes locally. Existing workflow rebuilds Blink after its example sweep, so the budget cannot silently analyze another sketch's ELF.
  • Full lint, selected Python bloat-budget/size-threshold tests, ci-labels check, five-file manual review and git diff --check pass. No native source/test differences since previous Teensy strict SlimBridge/ObjectFLED target passes, whose shared production logic evidence is reused. Fresh Teensy 4.1 SDK builds cover actual board initialization/show integration; physical waveforms were not measured.
  • Shared Teensy platform audit: no fl::printf matches; genuine invalid-pin/bus/disabled-driver/timeout warnings retained. RMT/PARLIO are not this board's default backend. No speculative source edit is required when preservation budgets pass.
  • No feature removed, ceiling raised, worktree or CI Full. Toolchain/dependency/test caches retained. Artifacts .build/memory-4737/teensy41/.

After merge: fresh landed local gate, cumulative parent diff, close only #4746. Parent remains open; RP2040 #4747 follows last.

@zackees
zackees merged commit 893216f into master Oct 7, 2026
111 of 112 checks passed
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Oct 7, 2026
@coderabbitai

coderabbitai Bot commented Oct 7, 2026

Copy link
Copy Markdown

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Repository: FastLED/FastLED/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f6490463-3969-4c79-914b-4916bbfff1c9
📥 Commits

Reviewing files that changed from the base of the PR and between 8647a12 and ac1855b.

📒 Files selected for processing (5)
  • .github/workflows/build_teensy41.yml
  • .github/workflows/check_teensy41_size.yml
  • ci/lint/check_size_thresholds.py
  • docs/SIZE_THRESHOLD_HISTORY.md
  • tests/data/teensy41_bloat_budget.json
 ___________________________
< Domesticating the T-1000. >
 ---------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant