Skip to content

test: stabilize direct blob request metric assertion - #91

Merged
AlisinaDevelo merged 3 commits into
mainfrom
fix/streamhive-blob-get-metric-race
Sep 7, 2026
Merged

AlisinaDevelo merged 3 commits into
mainfrom
fix/streamhive-blob-get-metric-race

Conversation

@AlisinaDevelo

Copy link
Copy Markdown
Owner

What

Make the direct blob request acceptance test wait for the asynchronous BlobsSent metric update after the response frame is observed.

Why

The receiver can process the frame before the sender goroutine resumes after writePeerFrame and records the successful-send metric. The post-merge CI job exposed this timing-sensitive assertion in run 34106626297.

How

Use the existing require.Eventually polling pattern with a short bounded timeout. Production send accounting is unchanged.

Testing

  • go test -run '^TestRun_blobGetOverRealTCP$' .
  • git diff --check
  • Full CI via GitHub Actions

Copilot AI lite review requested due to automatic review settings September 7, 2026 09:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@AlisinaDevelo
AlisinaDevelo merged commit 83a07c4 into main Sep 7, 2026
41 checks passed
@AlisinaDevelo
AlisinaDevelo deleted the fix/streamhive-blob-get-metric-race branch September 7, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants