Skip to content

Follow-ups from #747: /proc/stat test comments and direction, a dial assertion that cannot fail, the uncommitted fd-delta probe #778

Description

@FumingPower3925

Follow-ups from the review of #747 (#737). None blocks the merge (maintainer's two-round cap, 2026-09-27). The review reproduced every number in the body (CI shape: main 5 FAIL / 23 of 25 subtests; head -count=3 18 top-level and 75 subtests PASS; revert 5 FAIL; merged with #746 on 698bed6, root 382/0/1).

Handled in round 2, no code change:

Open (test text and process):

  1. The /proc/stat test comments overclaim isolation. start_failure_release_linux_test.go:24 says that counting only /proc/stat links means descriptors other tests open or close "cannot move it". Every celeris server in the same binary opens and closes a /proc/stat monitor in doPrepare. The tests are safe only because they are non-parallel top-level tests. Reword the comment, or it invites a t.Parallel later.
  2. after != before should be after > before (:64, :129). A monitor closed by something else in the window, for example a finalizer queued before SetGCPercent(-1), would fail the check. The leak direction is >. No flake observed: main's first subtest starts at 2 and ends at 22, and every run passes at the head.
  3. The dial assertion in TestFailedStartClosesTheSuppliedListener cannot fail. The test closes the listener itself (start_failure_release_test.go:79, the ErrClosed check) before it dials (:82), so the dial is refused whether or not the fix closed it. It could only catch a surviving duplicate of the fd. Under the revert arm, left the supplied listener open fired 12 times and still connected 0 times. Dial first, or drop the claim from the test's doc.
  4. The fd-delta probe is not committed. The body's scenario table comes from 737/probe/ in the lane's evidence root, which is not version-controlled, so only the maintainer can re-run it. The committed tests reproduce the /proc/stat half. Either commit the probe (as a test, or in probatorium) or mark the table maintainer-local.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/testTesting infrastructuretestingTesting infrastructure and helpers

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions