Skip to content

test: signal background metrics hook completion - #27047

Merged
mattsse merged 2 commits into
mainfrom
mattsse/test-signal-metrics-hook
Sep 7, 2026
Merged

test: signal background metrics hook completion#27047
mattsse merged 2 commits into
mainfrom
mattsse/test-signal-metrics-hook

Conversation

@mattsse

@mattsse mattsse commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator

Hold the first background metrics hook until its scrape returns, then release it explicitly and await notification after publishing the gauge. Preserve the nonblocking-scrape, metric-output, and collection-count assertions; dropping the sender unblocks the hook on assertion failure, and later invocations remain observable.

The test fell from 2.047s on main (2.050s in the contemporary control) to 0.042s in CI, removing the two-second sleep and polling loop. All 3,251 unit tests passed without retries. Authored with Codex.

Replace the fixed two-second hook delay with an explicit release channel and completion notification. Preserve the HTTP scrape and collection assertions, with cleanup on assertion failure. Baseline CI duration was 2.047 seconds.
@mattsse mattsse added the C-test A change that impacts how or what we test label Sep 6, 2026
@github-project-automation github-project-automation Bot moved this to Backlog in Reth Tracker Sep 6, 2026
@mattsse
mattsse marked this pull request as ready for review September 6, 2026 18:25
@mattsse
mattsse merged commit abba04f into main Sep 7, 2026
35 checks passed
@mattsse
mattsse deleted the mattsse/test-signal-metrics-hook branch September 7, 2026 10:49
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Reth Tracker Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-test A change that impacts how or what we test

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant