Skip to content

test(rttrpm): keep the packet-splitting markers off the wall clock - #497

Merged
michelhonold merged 1 commit into
mainfrom
test/packet-splitting-frozen-clock
Oct 21, 2026
Merged

michelhonold merged 1 commit into
mainfrom
test/packet-splitting-frozen-clock

Conversation

@michelhonold

Copy link
Copy Markdown
Contributor

Summary

The packet-splitting tests built their markers on the real clock and sent them through the RTTrPM server, which withholds a trackable that has not been written for a second. On a loaded test Pi, building the markers took longer than that. The early markers were withheld and the count assertions failed: two make ci-remote gates today failed this way, with 12 of 14 and 137 of 299 trackables withheld.

The fix: the shared marker factory and the renaming marker now stamp from one frozen instant, so no marker can age during a test. The stale-marker test keeps the real clock on purpose.

Test plan

  • With every marker clock read jumping 2 s (a simulated slow host), 16 RTTrPM tests failed before this change and none fail after it.
  • The file passes normally: 99 tests.
  • make ci-remote on the testing Pi.

🤖 Generated with Claude Code

The packet-splitting tests built their markers on the real clock and sent
them through the RTTrPM server, which withholds a trackable unwritten for
a second. On a loaded test Pi, building the markers took longer than
that, so the early ones were withheld and the count assertions failed
(two gates failed this way: 12 of 14 and 137 of 299 withheld).

The shared marker factory and the renaming marker now stamp from one
frozen instant, so no marker can age during a test. The stale-marker test
keeps the real clock on purpose. With every marker clock read jumping 2 s,
16 RTTrPM tests failed before and none fail now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@michelhonold
michelhonold marked this pull request as ready for review October 21, 2026 06:08
@michelhonold
michelhonold merged commit 1320231 into main Oct 21, 2026
4 checks passed
@michelhonold
michelhonold deleted the test/packet-splitting-frozen-clock branch October 21, 2026 06:08
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.

1 participant