Skip to content

chore: assert the on_init collector reaches the exporter - #150

Merged
rustatian merged 1 commit into
masterfrom
chore/on-init-metrics-assert
Aug 21, 2026
Merged

chore: assert the on_init collector reaches the exporter#150
rustatian merged 1 commit into
masterfrom
chore/on-init-metrics-assert

Conversation

@rustatian

Copy link
Copy Markdown
Member

TestOnInitRunsWithMetricsEndpoint only asserted go_goroutines, which proves the exporter is serving but says nothing about the on_init script. The weak assertion existed because the metrics plugin used to resolve api-go beta.13 while spiral/roadrunner-metrics speaks the v1 line, so the Declare message decoded empty. Master pins metrics beta.6 with the plain-struct RPC now, so the test polls for the foo_bar_test counter the script actually declares.

Cannot run this locally (no ext-sockets in the local PHP, which the goridge SocketRelay in the fixture needs), so CI is the proof here.

The weak go_goroutines assertion only proved the exporter was serving. The metrics plugin is on the plain-struct RPC line now, so the test polls for the foo_bar_test counter the on_init script declares.
Copilot AI lite review requested due to automatic review settings August 21, 2026 11:28

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.

@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.20%. Comparing base (2b75d57) to head (2ff8313).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #150   +/-   ##
=======================================
  Coverage   88.20%   88.20%           
=======================================
  Files           4        4           
  Lines         178      178           
=======================================
  Hits          157      157           
  Misses         21       21           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rustatian rustatian self-assigned this Aug 21, 2026
@rustatian
rustatian merged commit 68166fe into master Aug 21, 2026
8 checks passed
@rustatian
rustatian deleted the chore/on-init-metrics-assert branch August 21, 2026 11:36
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