Skip to content

fix(artifacts): report S-record data after the final count - #14260

Merged
morluto merged 4 commits into
morluto:mainfrom
ShuaixinHuang:fix/srec-data-after-count
Nov 24, 2026
Merged

morluto merged 4 commits into
morluto:mainfrom
ShuaixinHuang:fix/srec-data-after-count

Conversation

@ShuaixinHuang

@ShuaixinHuang ShuaixinHuang commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Keep decoded S-record regions when data follows the last S5 or S6 count, and report that the last count covers only the preceding records.

Problem and change

REA already rejects counts that disagree with the number of preceding S1, S2 or S3 records. A final count can agree with that prefix while leaving trailing data uncounted. The first version of this PR rejected that input. The updated decoder preserves the regions and the declared count, then reports a limitation with the count line and the observed total. A subsequent valid count that covers all data clears the limitation. Termination still determines region coverage, and the output schema is unchanged.

Evidence and validation

  • GNU objcopy 2.44 accepted the exact S5 fixtures used in the regression, with and without a later final count. Running objcopy -I srec -O binary produced all 33 bytes, 00 through 1f followed by 2a. The extraction assertions check those bytes.
  • The same version of objcopy rejected the analogous S6 fixture with trailing data, and accepted the S6 control without trailing data. REA previously accepted both variants, and the revised PR preserves that behavior while recording the uncovered count. The portable regression does not require objcopy.
  • The revised artifact-reader regressions reproduced two failures against the previous PR head. All 21 reader tests and all 43 decoder tests passed after the change. Normal commit and push checks passed. Separately packaged CLI and MCP invocations were not run.

Conflict resolution

Merged current main and retained the S5/S6 extraction regressions alongside the upstream physical-run and lifecycle tests. All 65 focused tests passed.

Supersedes #12750.

Resubmission of #14059.

Author readiness

Human owner: @ShuaixinHuang

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@greptile-apps

greptile-apps Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable issues were found.

Summary

The decoder now reports data records after the last S5 or S6 count while preserving decoded regions and the declared count.

  • S-record inventories flag data that follows the final count.

Reviews (1) · Last reviewed commit: "Merge upstream main into S-record count ..." · Reviewed by Greptile

@ShuaixinHuang
ShuaixinHuang marked this pull request as ready for review November 24, 2026 02:48
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-24T02:48:54.077369Z
We couldn’t complete this review. Comment @codex review to try again.
657a9cc Draft marked ready
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@morluto
morluto merged commit 90d774f into morluto:main Nov 24, 2026
139 of 140 checks passed
vincentkoc added a commit that referenced this pull request Nov 24, 2026
…-20261124

* origin/main: (3854 commits)
  fix(ci): retry recorded crash dependency acquisition without stale index cache (#14076)
  chore(deps): bump rcssmin from 1.2.2 to 1.3.0 in /website (#14229)
  chore(deps): bump markdownify from 1.2.3 to 1.2.4 in /website (#14227)
  ci: compare frozen selections with observed test failures (#14301)
  ci: record affected-test predictions above the live cutoff (#14300)
  ci: wait for static checks before broad PR test shards (#14299)
  ci: validate workflow anchors with actionlint 1.7.12 (#14298)
  ci: measure portable runner time for recorded selection predictions (#14304)
  test(pe): distinguish unsupported DOS input from truncated input (#14302)
  test(go): check build information in a one-directory PE32 fixture (#14303)
  fix(tests): damage Deno PE resource framing the loader-equivalent reader reads
  test(go): expect loader-equivalent PE header facts in the MZ diagnostics (#14293)
  perf(resources): refuse non-ASAR Pickle prefixes without building errors
  perf(artifacts): reuse the streamed XML plist verdict when classifying
  perf(artifacts): decide the FAT header once per classified stream
  test: run repeated CLI formatting capacity pairings in process (#14279)
  fix(limits)!: make the IL2CPP pointer index adjustable and require owned refusal limits (#14243)
  fix(artifacts): report S-record data after the final count (#14260)
  feat(artifacts): report declared DDS, GLB, KTX and KTX2 headers and regions (#14248)
  fix(pe)!: share one loader-equivalent PE header owner across static readers (#14253)
  ...
@morluto morluto added area: evidence Evidence, artifacts, and reconstruction bug Something isn't working labels Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: evidence Evidence, artifacts, and reconstruction bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants