Skip to content

test(firmware): consolidate UF2 numbering and shared reader identity - #13372

Merged
morluto merged 1 commit into
mainfrom
test/campaign-uf2-region-numbering
Nov 22, 2026
Merged

morluto merged 1 commit into
mainfrom
test/campaign-uf2-region-numbering

Conversation

@morluto

@morluto morluto commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Changes

  • Consolidate all six UF2 comment and numbering scenarios into one actual inventory matrix. Preserve leading and trailing shared-number comments, repeated addressless blocks, missing copies, exact region counts, and observed coverage.
  • Decode one split-block fixture for exact region bytes and metadata. Other cases retain whole-file and block-aligned admissions.
  • Put forged region identity and carrier-change checks in the shared HEX reader test. The retained case rewrites a valid record without changing its length, then refuses the exact old region. It still covers forged metadata and foreign entry keys.

One fewer case and 31 fewer test lines.

Validation

  • Seven exact suites passed 100 tests, including public CLI inventory/extraction and MCP retained views. npm run check:fast passed.
  • Eight controls caught lost split-block state, comment addresses affecting numbering, wrong first or later comment handling, lost ambiguity, forged region admission, size-only carrier verification, or bypassing carrier verification.
  • The checks used authored UF2 and HEX files.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T09:36:41.260319Z 47b1bcd PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; the cleanup preserves the tested behavior.

Summary

This test-only PR consolidates UF2 numbering cases and moves shared reader identity checks into the HEX suite.

  • UF2 inventory tests cover comment numbering in one scenario matrix.
  • HEX reader tests check region identity after a same-size address change.
  • UF2 decoder tests check bytes and metadata from one split-chunk decode.

Reviews (1) · Last reviewed commit: "test(firmware): consolidate UF2 numberin..." · Reviewed by Greptile

@morluto
morluto merged commit e9dead7 into main Nov 22, 2026
37 checks passed
@morluto
morluto deleted the test/campaign-uf2-region-numbering branch November 22, 2026 09:44
SahinurDEV added a commit to SahinurDEV/rea that referenced this pull request Nov 22, 2026
Resolve the Uf2ArtifactReader.test.ts conflict by following morluto#13372, which
removed the UF2 reader identity test during numbering consolidation.
Keep the 10 s mtime bump in the Node SEA, Deno, and PyInstaller tests.

Signed-off-by: Sahinur <[email protected]>
@morluto morluto added the area: tests Test suite and verification label Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tests Test suite and verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant