Skip to content

test(events): only count the signals caused by the test - #385

Merged
chillfox merged 1 commit into
masterfrom
fix/PPT-2375-stale-mirror-echo-regression
Aug 2, 2026
Merged

test(events): only count the signals caused by the test#385
chillfox merged 1 commit into
masterfrom
fix/PPT-2375-stale-mirror-echo-regression

Conversation

@chillfox

@chillfox chillfox commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

No description provided.

`#notify_change ignores the stale room-mailbox echo but never the master
copy` asserts exact signal counts, but its stub recorded every POST to
staff/event/changed, including ones it did not cause.

Signals are emitted from spawned fibres, so an earlier example's signal can
still be in flight when this example installs its stub, and is then counted
as ours. A full suite run leaks three such signals: they are visible in the
log as `Unhandled exception in spawn: Real HTTP connections are disabled`
whenever they land somewhere without a matching stub. Landing here instead
takes the count from 1 to 2:

    Failure/Error: captured_bodies.size.should eq 1
      Expected: 1
           got: 2

The example passes in isolation and on the seed CI reported, because
whether a stray lands inside its window is a matter of timing. It surfaced
now because PPT-2640 added a further sixteen examples that emit signals
from this controller.

Record only signals carrying this example's own dedicated system id, and
stand in a foreign signal deliberately so the isolation is asserted rather
than left to timing.
@chillfox chillfox self-assigned this Aug 2, 2026
@github-actions github-actions Bot added the type: bug something isn't working label Aug 2, 2026
@chillfox chillfox changed the title fix(spec/events): only count the signals this example caused test(events): only count the signals caused by the test Aug 2, 2026
@chillfox
chillfox marked this pull request as ready for review August 2, 2026 08:05
@chillfox
chillfox merged commit 21d3ea8 into master Aug 2, 2026
14 of 15 checks passed
@chillfox
chillfox deleted the fix/PPT-2375-stale-mirror-echo-regression branch August 2, 2026 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant