Skip to content

selftests: mptcp: join: fix flaky tests

Matthieu Baerts (NGI0) mptcp 2 versions – In review

Get series with b4
b4 am [email protected] change-id 20251029-slft-join-inst-e307faf42138

Versions newest first

  1. v2 Latest6 patches 16 repliesIn review
  2. v16 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Patch 6: also handle EPIPE properly.
- Link to v1: https://patch.msgid.link/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6selftests: mptcp: connect: fix fallback note due to OoOtools/testing/selftests/net/mptcp/mptcp_connect.sh+1 -11 reply
2/6selftests: mptcp: join: rm: set backup flagtools/testing/selftests/net/mptcp/mptcp_join.sh+27 -275 replies
3/6selftests: mptcp: join: endpoints: longer transfertools/testing/selftests/net/mptcp/mptcp_join.sh+4 -40 replies
4/6selftests: mptcp: join: userspace: longer transfertools/testing/selftests/net/mptcp/mptcp_join.sh+5 -50 replies
5/6selftests: mptcp: join: fastclose: drop plain RSTtools/testing/selftests/net/mptcp/mptcp_join.sh+19 -41 reply
6/6selftests: mptcp: connect: trunc: read all recv datatools/testing/selftests/net/mptcp/mptcp_connect.c+13 -53 replies

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchGeliang Tang
SeriesR-b
1/6R-b
2/6
3/6
4/6
5/6R-b T-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH mptcp-net v2 0/6] selftests: mptcp: join: fix flaky tests

When looking at the recent CI results on NIPA and MPTCP CIs, a few MPTCP Join tests are marked as unstable. Here are some fixes for that.

- Patch 1: a small fix for mptcp_connect.sh, printing a note as initially intended. For >=v5.13.

- Patch 2: avoid unexpected reset when closing subflows. For >= 5.13.

- Patches 3-4: longer transfer when not waiting for the end. For >=5.18.

- Patch 5: drop noisy plain RST packets when looking for MP_FASTCLOSE. For >= 5.18.

- Patch 6: read all received data when expecting a reset. For >= v6.1.

When reviewing patches 2-6, please double check that I'm not hiding real issues by tweaking the tests suite.

---
Changes in v2:
- Patch 6: also handle EPIPE properly.
- Link to v1: https://patch.msgid.link/[email protected]

---
Matthieu Baerts (NGI0) (6):
selftests: mptcp: connect: fix fallback note due to OoO
selftests: mptcp: join: rm: set backup flag
selftests: mptcp: join: endpoints: longer transfer
selftests: mptcp: join: userspace: longer transfer
selftests: mptcp: join: fastclose: drop plain RST
selftests: mptcp: connect: trunc: read all recv data

 tools/testing/selftests/net/mptcp/mptcp_connect.c  | 18 ++--
 tools/testing/selftests/net/mptcp/mptcp_connect.sh |  2 +-
 tools/testing/selftests/net/mptcp/mptcp_join.sh    | 95 +++++++++++++---------
 3 files changed, 69 insertions(+), 46 deletions(-)

---
base-commit: b9e1acc39cbc985ca8df781775718e39e421409b
change-id: 20251029-slft-join-inst-e307faf42138

Best regards,

Signature · 1 line
Matthieu Baerts (NGI0) <[email protected]>