Repository navigation
SCA-5259: Count committed lifecycle pendant tail holds - #26558
Open
Git-on-my-level wants to merge 1 commit into
Open
Git-on-my-level wants to merge 1 commit into
Git-on-my-level wants to merge 1 commit into
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This branch has not been deployed
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.
What changed and why
Count new user-held pendant transport-tail WAL rows at the first successful index commit after a lifecycle drain. The local callback receives an integer delta and counts each committed row once through repeated callbacks and failed index saves. Setting
OMI_WAL_LIFECYCLE_HELD_TAIL_COUNT_OFF=truedisables the callback independently of WAL custody.The PR provides the local measurement point. The production transport and a Release-approved baseline cohort are pending. The reporter needs an identifier-free envelope, daily UTC totals by platform and app build, and independent coverage evidence. Missing coverage stays unknown. Keep
WAL Stop Drainin its existing series. The local pending marks are process-scoped, so an exit before reporting can lose a count.Product invariants affected
How it was verified
The M1 run of
bash test.sh test/unit/local_wal_durability_seam_test.dartpassed all 138 spine checks and 15 durability tests. The 15 durability tests also passed with--dart-define=OMI_WAL_LIFECYCLE_HELD_TAIL_COUNT_OFF=true. Local and PR preflight passed. The tests exercise lifecycle drains with a committed hold, split evidence runs, repeated callbacks, index-save failure and retry, an empty buffer, an unsent tail, and explicit stop. The test callback is local and in memory.UI-Evidence: none -- local telemetry only
Line-Count-Exception: app/lib/services/wals/local_wal_sync.dart | 3368 -> 3382 | Carry lifecycle origin through the existing seal paths without splitting custody code.