Repository navigation
fix(test): count only observer stack packets - #201725
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
vincentkoc
marked this pull request as ready for review
November 19, 2026 08:45
vincentkoc
enabled auto-merge (squash)
November 19, 2026 08:47
Member
Author
|
Merged via squash auto-merge.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 20, 2026
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 Problem This Solves
The delayed stack-capture test counts every observer packet as a stack. On Linux, the same port carries valid kernel samples, so a kernel packet fails the stack-only count assertions during full validation.
User Impact
No production behavior changes. The test now counts stack packets using the production consumer's
framesdiscriminator. Kernel sampling remains covered independently.Why This Change Was Made
Keep all timing, inspector-start, delayed-capture rejection, and shared stack-budget assertions. Filter only the three message-count assertions so they measure the intended stack contract: zero delayed stacks, three accepted stacks, and no further stacks after the budget is consumed.
Production +0/-0; tests +5/-3. No new mock, timeout, skip, or test is added.
Related: #199959
Evidence
diagnostic-stall-kernel.tsalready distinguishes stack samples byframes; the real futex integration case covers kernel sample delivery.f165544e2ce40e46682bd67b6a98777f506dafec..c0c83cfa5b585b3449903af8fd1a5161b500ae86. Native commit formatting and line-cap hooks andgit diff --checkpassed.13da704d37cd97f608273f20d1ea22f2ba6d5647d4f62b0cc4e836ee6c5977a8. The run uses the existing dual-all runtime selector.