Repository navigation
fix(check-max-frame): stable keys, lane-scoped reports, baseline the latent frames - #4857
Merged
Merged
Conversation
…latent frames Release blocker B34. Tier 2 (run-matrix 45533259451, 939ac84) passed every cell and then failed `check::max-frame` on 20 frames over the 4,096 B cap. Not caused by #4844: that change only moves `nros build`'s two arm calls into one helper and arms the census `take`, which builds the NATIVE host image, while max-frame reads 32-bit ARM reports alone. Three causes, three changes: - Keys. The baseline keyed a function by its raw v0 symbol minus crate hashes. An impl block's index in its module (`Ms<n>_`) and back-reference offsets (`B<n>_`) move with unrelated code, so 9 of the 20 were baseline rows under another spelling (declare_parameter_overridden `Msl_` -> `Msn_`, the same 8,720 B). `stable_name` now drops both; stored keys are normalised on read. Two different symbols of ONE image under one key are refused, naming both, so the key never merges two functions. Self-tests: a renamed impl keys alike, a new frame under a fresh name still fails, a clash is refused, the key is idempotent; each mutation-tested. - Scope. The check read every report on disk, and the self-hosted runner's workspace persists, so it judged builds tier 2 never makes. It now judges the reports of the rows in the lane the fixture-build stamp names, by MEMBERSHIP through the fixture manifest's own functions (row_coord, row_artifact_root, west_build_name, row_in_coords), never by mtime (an in-lane image left current is not relinked). A report proven to belong only to out-of-lane rows is skipped and listed with a count; an unattributable one is checked; a missing stamp or `lane=all` checks everything. Self-tests in both directions, mutation-tested. - Latent frames. The rest are real nros frames the baseline never saw (none of their functions changed since it was written). Baselined with `--write-baseline --merge` over a local `build-test-fixtures lane=tier2-nightly` on host 175 at this base: 8 rows added (install_in_with_launch_params x5 for param_five_node, register_lifecycle_services_named 8,120 B, Executor::pass 4,512 B, register_action_client_raw 6,888 B), 14 raised by 8-120 B (the FreeRTOS board entries, run_bare, a create_entity closure; param_five_node's app_task_entry_runtime to 7,072 B). Two old rows now share a key; each pair is one function seen in two builds (create_client_trampoline, ensure_parameter_store), and the larger size stays. Issue 2968 lists every row to shrink, with the measured cause of the lifecycle one (the state machine is built on the stack; out-of-lining the per-service helpers only reached 8,112 B). The board entries are not frame_allow'd: they inline the board's own boot code beside the user's closure, so an allow would exempt nros frames too. Scoped check on that build: 90 reports judged, 0 residue, OK. Changelog: none Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01U3R52X4DfDAyDddVqRgrXC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release blocker B34: tier-2 run 45533259451 failed
check::max-framewith 20 frames over 4,096 B. Three causes, each fixed:Stable keys. v0 symbols carry an impl-block index (
Ms<n>_/Xs<n>_) and back-reference byte offsets (B<n>_) that move when unrelated code moves. The baseline key now drops both, so a renamed or shifted impl keys alike (9 false alarms). Two different functions of one image landing on one key are refused, naming both. Stored keys are normalised on read; a collision keeps the max (two existing pairs, each one function seen in two builds).Scope by membership. The self-hosted runner's workspace persists, so the check judged reports from other lanes' builds. It now reads the fixture stamp's
lane=/coord=lines and skips a report only when every manifest row owning its root is outside the lane, using the manifest's ownrow_artifact_root/west_build_name/row_in_coords. Unattributable or shared roots are checked (fail closed). No stamp, orlane=all, checks everything. Skipped residue is listed with a count. Not mtime: an in-lane image that was current is not relinked.Latent frames. Real frames that predated the baseline but were in no build it read: baselined via
--write-baseline --mergefrom a locallane=tier2-nightlybuild (8 added, 14 raised by 8-120 B). Issue 2968 lists each with cause and fix. Board-entry frames are baselined rather thanframe_allowed: they inline the board's own boot code beside the user closure, so an allow would exempt our frames too.Self-test: 31 checks, both scope directions; each new check mutation-tested. Local scoped run: 90 reports judged, 0 residue, OK.
just ci gategreen at this head.Changelog: none (gate fix).
🤖 Generated with Claude Code
https://claude.ai/code/session_01U3R52X4DfDAyDddVqRgrXC