Skip to content

test(inbound): skip the concurrent Sudoku subtest under -race - #196

Merged
Nemu-x merged 1 commit into
devfrom
test/sudoku-concurrent-race
Nov 10, 2026
Merged

Nemu-x merged 1 commit into
devfrom
test/sudoku-concurrent-race

Conversation

@Nemu-x

@Nemu-x Nemu-x commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

The race job fails often on TestInboundSudoku_*/Concurrent with Post ... unexpected EOF (three times on 11-10 alone, on PRs that do not touch Sudoku: #193 and twice on #194).

Cause (measured earlier): under the race runtime goroutine start-up stalls for up to ~1.87 s under the load of the concurrent subtest, and the HTTP/2 first-SETTINGS timeout is 2 s, so some requests are cut. The subtest passes without -race (840/840), and upstream mihomo fails the same way under race. Raising the timeout would weaken a production limit, so only the test changes.

  • raceEnabled via race/!race build-tagged test files.
  • testInboundSudoku: sequential traffic always, concurrent only without -race (logged when skipped); sing-mux subtests unchanged.

Checked: go test -run TestInboundSudoku passes; in golang:1.26 go test -race -run TestInboundSudoku ./listener/inbound/ passed 3 runs in a row, and the skip is logged.

Under the race runtime goroutine start-up is delayed by up to about 2 s
under this subtest's load, which runs into the 2 s HTTP/2 first-SETTINGS
timeout and ends some requests with unexpected EOF. It passes without
-race; the race job keeps the sequential traffic and sing-mux subtests.
@Nemu-x
Nemu-x merged commit 9736113 into dev Nov 10, 2026
15 checks passed
@Nemu-x
Nemu-x deleted the test/sudoku-concurrent-race branch November 10, 2026 23:44
Nemu-x added a commit that referenced this pull request Nov 10, 2026
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