Skip to content

Sort the probe lines before comparing stderr - #23

Merged
BKPepe merged 1 commit into
masterfrom
test/parity-common-lines
Sep 28, 2026
Merged

BKPepe merged 1 commit into
masterfrom
test/parity-common-lines

Conversation

@BKPepe

@BKPepe BKPepe commented Sep 28, 2026

Copy link
Copy Markdown
Member

The parity case debug_autoselect fails on master from time to time, with a
line both clients printed reported as a difference on both sides — for
example in run 36305132931 on d0decf9:

only Go:   [..., "Server Fixture Dead (127.0.0.1) doesn't seem to be up, skipping"]
only Rust: [..., "Server Fixture Dead (127.0.0.1) doesn't seem to be up, skipping"]

The probe runs the servers concurrently and prints each one's lines as it
finishes, where the Go client goes through the list in order. The comparison
is an LCS diff, so where the two orders cross it keeps only one of the
crossing lines and the other lands on both sides.

Sorting that block leaves exactly one line per side on real captures, which
is what the case declares. From the measurement's first line on, nothing
changes, so a reordered report or usage error still fails.

Copilot AI lite review requested due to automatic review settings September 28, 2026 07:17

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.

The probe runs the servers concurrently and prints each one's lines as it
finishes, so its order crosses the Go client's, causing the comparison to
report a line printed by both clients as a difference on both sides. Only
that block is sorted: a reordered measurement or usage error still fails.
@BKPepe
BKPepe force-pushed the test/parity-common-lines branch from 3531c0d to 4540272 Compare September 28, 2026 07:40
@BKPepe
BKPepe merged commit 4ff486f into master Sep 28, 2026
13 checks passed
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