All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH mptcp-next 0/2] selftests: mptcp: add time per subtests in TAP output (part 2)
@ 2024-09-06 17:15 Matthieu Baerts (NGI0)
  2024-09-06 17:15 ` [PATCH mptcp-next 1/2] selftests: mptcp: diag: remove trailing whitespace Matthieu Baerts (NGI0)
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Matthieu Baerts (NGI0) @ 2024-09-06 17:15 UTC (permalink / raw)
  To: mptcp; +Cc: Matthieu Baerts (NGI0)

After having sent the series with the same name to Netdev, Jakub
realised the TAP parser was not properly handling the spaces around the
directive delimiter (#).

This has been fixed [1], but still better to avoid them.

Link: https://github.com/linux-netdev/nipa/pull/38 [1]
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
---
Matthieu Baerts (NGI0) (2):
      selftests: mptcp: diag: remove trailing whitespace
      selftests: mptcp: connect: remove duplicated spaces in TAP output

 tools/testing/selftests/net/mptcp/diag.sh          |  2 +-
 tools/testing/selftests/net/mptcp/mptcp_connect.sh | 14 ++++++++------
 2 files changed, 9 insertions(+), 7 deletions(-)
---
base-commit: f876b6643a4a01e34ef370da4e15d7c644585d55
change-id: 20240906-selftests-mptcp-trailing-ws-d62ce8ad81a6

Best regards,
-- 
Matthieu Baerts (NGI0) <matttbe@kernel.org>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH mptcp-next 1/2] selftests: mptcp: diag: remove trailing whitespace
  2024-09-06 17:15 [PATCH mptcp-next 0/2] selftests: mptcp: add time per subtests in TAP output (part 2) Matthieu Baerts (NGI0)
@ 2024-09-06 17:15 ` Matthieu Baerts (NGI0)
  2024-09-06 17:15 ` [PATCH mptcp-next 2/2] selftests: mptcp: connect: remove duplicated spaces in TAP output Matthieu Baerts (NGI0)
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Matthieu Baerts (NGI0) @ 2024-09-06 17:15 UTC (permalink / raw)
  To: mptcp; +Cc: Matthieu Baerts (NGI0)

It doesn't need to be there, and it can cause some issues with TAP
parsers expecting only one space around the directive delimiter (#).

Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
---
 tools/testing/selftests/net/mptcp/diag.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/net/mptcp/diag.sh b/tools/testing/selftests/net/mptcp/diag.sh
index 776d43a6922d..2bd0c1eb70c5 100755
--- a/tools/testing/selftests/net/mptcp/diag.sh
+++ b/tools/testing/selftests/net/mptcp/diag.sh
@@ -284,7 +284,7 @@ echo "b" | \
 			./mptcp_connect -p 10000 -r 0 -t ${timeout_poll} -w 20 \
 				127.0.0.1 >/dev/null &
 wait_connected $ns 10000
-chk_msk_nr 2 "after MPC handshake "
+chk_msk_nr 2 "after MPC handshake"
 chk_last_time_info 10000
 chk_msk_remote_key_nr 2 "....chk remote_key"
 chk_msk_fallback_nr 0 "....chk no fallback"

-- 
2.45.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH mptcp-next 2/2] selftests: mptcp: connect: remove duplicated spaces in TAP output
  2024-09-06 17:15 [PATCH mptcp-next 0/2] selftests: mptcp: add time per subtests in TAP output (part 2) Matthieu Baerts (NGI0)
  2024-09-06 17:15 ` [PATCH mptcp-next 1/2] selftests: mptcp: diag: remove trailing whitespace Matthieu Baerts (NGI0)
@ 2024-09-06 17:15 ` Matthieu Baerts (NGI0)
  2024-09-06 17:25 ` [PATCH mptcp-next 0/2] selftests: mptcp: add time per subtests in TAP output (part 2) Matthieu Baerts
  2024-09-06 18:14 ` MPTCP CI
  3 siblings, 0 replies; 5+ messages in thread
From: Matthieu Baerts (NGI0) @ 2024-09-06 17:15 UTC (permalink / raw)
  To: mptcp; +Cc: Matthieu Baerts (NGI0)

It is nice to have a visual alignment in the test output to present the
different results, but it makes less sense in the TAP output that is
there for computers.

It sounds then better to remove the duplicated whitespaces in the TAP
output, also because it can cause some issues with TAP parsers expecting
only one space around the directive delimiter (#).

While at it, change the variable name (result_msg) to something more
explicit.

Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
---
 tools/testing/selftests/net/mptcp/mptcp_connect.sh | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/tools/testing/selftests/net/mptcp/mptcp_connect.sh b/tools/testing/selftests/net/mptcp/mptcp_connect.sh
index 49d90c4dbc01..57325d57e4c6 100755
--- a/tools/testing/selftests/net/mptcp/mptcp_connect.sh
+++ b/tools/testing/selftests/net/mptcp/mptcp_connect.sh
@@ -345,9 +345,11 @@ do_transfer()
 
 	local addr_port
 	addr_port=$(printf "%s:%d" ${connect_addr} ${port})
-	local result_msg
-	result_msg="$(printf "%.3s %-5s -> %.3s (%-20s) %-5s" ${connector_ns} ${cl_proto} ${listener_ns} ${addr_port} ${srv_proto})"
-	mptcp_lib_print_title "${result_msg}"
+	local pretty_title
+	pretty_title="$(printf "%.3s %-5s -> %.3s (%-20s) %-5s" ${connector_ns} ${cl_proto} ${listener_ns} ${addr_port} ${srv_proto})"
+	mptcp_lib_print_title "${pretty_title}"
+
+	local tap_title="${connector_ns:0:3} ${cl_proto} -> ${listener_ns:0:3} (${addr_port}) ${srv_proto}"
 
 	if $capture; then
 		local capuser
@@ -443,7 +445,7 @@ do_transfer()
 
 		echo
 		cat "$capout"
-		mptcp_lib_result_fail "${TEST_GROUP}: ${result_msg}"
+		mptcp_lib_result_fail "${TEST_GROUP}: ${tap_title}"
 		return 1
 	fi
 
@@ -543,12 +545,12 @@ do_transfer()
 
 	if [ $retc -eq 0 ] && [ $rets -eq 0 ]; then
 		mptcp_lib_pr_ok "${extra:1}"
-		mptcp_lib_result_pass "${TEST_GROUP}: ${result_msg}"
+		mptcp_lib_result_pass "${TEST_GROUP}: ${tap_title}"
 	else
 		if [ -n "${extra}" ]; then
 			mptcp_lib_print_warn "${extra:1}"
 		fi
-		mptcp_lib_result_fail "${TEST_GROUP}: ${result_msg}"
+		mptcp_lib_result_fail "${TEST_GROUP}: ${tap_title}"
 	fi
 
 	cat "$capout"

-- 
2.45.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH mptcp-next 0/2] selftests: mptcp: add time per subtests in TAP output (part 2)
  2024-09-06 17:15 [PATCH mptcp-next 0/2] selftests: mptcp: add time per subtests in TAP output (part 2) Matthieu Baerts (NGI0)
  2024-09-06 17:15 ` [PATCH mptcp-next 1/2] selftests: mptcp: diag: remove trailing whitespace Matthieu Baerts (NGI0)
  2024-09-06 17:15 ` [PATCH mptcp-next 2/2] selftests: mptcp: connect: remove duplicated spaces in TAP output Matthieu Baerts (NGI0)
@ 2024-09-06 17:25 ` Matthieu Baerts
  2024-09-06 18:14 ` MPTCP CI
  3 siblings, 0 replies; 5+ messages in thread
From: Matthieu Baerts @ 2024-09-06 17:25 UTC (permalink / raw)
  To: MPTCP Linux

Hello,

On 06/09/2024 19:15, Matthieu Baerts (NGI0) wrote:
> After having sent the series with the same name to Netdev, Jakub
> realised the TAP parser was not properly handling the spaces around the
> directive delimiter (#).

I suggest sending these patches to netdev directly, as it was asked by
Jakub, and the modifications are simple.

New patches for t/upstream:
- c46ea800458c: selftests: mptcp: diag: remove trailing whitespace
- 7da3b70b8c1a: selftests: mptcp: connect: remove duplicated spaces in
TAP output
- Results: 9e55e13281d2..b378722dfb2e (export)

Tests are now in progress:

- export:
https://github.com/multipath-tcp/mptcp_net-next/commit/1d732d34a947c22f60161fa2bd1c0e6e9b14f56f/checks

Cheers,
Matt
-- 
Sponsored by the NGI0 Core fund.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH mptcp-next 0/2] selftests: mptcp: add time per subtests in TAP output (part 2)
  2024-09-06 17:15 [PATCH mptcp-next 0/2] selftests: mptcp: add time per subtests in TAP output (part 2) Matthieu Baerts (NGI0)
                   ` (2 preceding siblings ...)
  2024-09-06 17:25 ` [PATCH mptcp-next 0/2] selftests: mptcp: add time per subtests in TAP output (part 2) Matthieu Baerts
@ 2024-09-06 18:14 ` MPTCP CI
  3 siblings, 0 replies; 5+ messages in thread
From: MPTCP CI @ 2024-09-06 18:14 UTC (permalink / raw)
  To: Matthieu Baerts; +Cc: mptcp

Hi Matthieu,

Thank you for your modifications, that's great!

Our CI did some validations and here is its report:

- KVM Validation: normal: Success! ✅
- KVM Validation: debug: Success! ✅
- KVM Validation: btf (only bpftest_all): Success! ✅
- Task: https://github.com/multipath-tcp/mptcp_net-next/actions/runs/10742659832

Initiator: Patchew Applier
Commits: https://github.com/multipath-tcp/mptcp_net-next/commits/c061b56c6627
Patchwork: https://patchwork.kernel.org/project/mptcp/list/?series=887838


If there are some issues, you can reproduce them using the same environment as
the one used by the CI thanks to a docker image, e.g.:

    $ cd [kernel source code]
    $ docker run -v "${PWD}:${PWD}:rw" -w "${PWD}" --privileged --rm -it \
        --pull always mptcp/mptcp-upstream-virtme-docker:latest \
        auto-normal

For more details:

    https://github.com/multipath-tcp/mptcp-upstream-virtme-docker


Please note that despite all the efforts that have been already done to have a
stable tests suite when executed on a public CI like here, it is possible some
reported issues are not due to your modifications. Still, do not hesitate to
help us improve that ;-)

Cheers,
MPTCP GH Action bot
Bot operated by Matthieu Baerts (NGI0 Core)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-09-06 18:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-06 17:15 [PATCH mptcp-next 0/2] selftests: mptcp: add time per subtests in TAP output (part 2) Matthieu Baerts (NGI0)
2024-09-06 17:15 ` [PATCH mptcp-next 1/2] selftests: mptcp: diag: remove trailing whitespace Matthieu Baerts (NGI0)
2024-09-06 17:15 ` [PATCH mptcp-next 2/2] selftests: mptcp: connect: remove duplicated spaces in TAP output Matthieu Baerts (NGI0)
2024-09-06 17:25 ` [PATCH mptcp-next 0/2] selftests: mptcp: add time per subtests in TAP output (part 2) Matthieu Baerts
2024-09-06 18:14 ` MPTCP CI

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.