All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH mptcp-net] selftests: mptcp: allow more slack for slow test-case
@ 2023-01-30 18:06 Paolo Abeni
  2023-01-30 19:10 ` selftests: mptcp: allow more slack for slow test-case: Tests Results MPTCP CI
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Paolo Abeni @ 2023-01-30 18:06 UTC (permalink / raw)
  To: mptcp

A test-case is frequently failing on some extremelly slow VMs.
The mptcp transfer completes before the script is able to do
all the required PM manipulation.

Address the issue in the simplest possible way, making the
transfer even more slow.

Additionally dump more info in case of failures, to help debugging
similar problems in the future.

Fixes: e274f7154008 ("selftests: mptcp: add subflow limits test-cases")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
---
this is just a wild guess, since I can't repro the issue at all. Ideally
it would be great to have a loop with mpj 115 to validate this
---
 tools/testing/selftests/net/mptcp/mptcp_join.sh | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/tools/testing/selftests/net/mptcp/mptcp_join.sh b/tools/testing/selftests/net/mptcp/mptcp_join.sh
index 387abdcec011..4e428871f961 100755
--- a/tools/testing/selftests/net/mptcp/mptcp_join.sh
+++ b/tools/testing/selftests/net/mptcp/mptcp_join.sh
@@ -1704,7 +1704,12 @@ chk_subflow_nr()
 		echo "[ ok ]"
 	fi
 
-	[ "${dump_stats}" = 1 ] && ( ss -N $ns1 -tOni ; ss -N $ns1 -tOni | grep token; ip -n $ns1 mptcp endpoint )
+	if [ "${dump_stats}" = 1 ]; then
+		ss -N $ns1 -tOni
+		ss -N $ns1 -tOni | grep token
+		ip -n $ns1 mptcp endpoint
+		dump_stats
+	fi
 }
 
 chk_link_usage()
@@ -3103,7 +3108,7 @@ endpoint_tests()
 		pm_nl_set_limits $ns1 1 1
 		pm_nl_set_limits $ns2 1 1
 		pm_nl_add_endpoint $ns2 10.0.2.2 id 2 dev ns2eth2 flags subflow
-		run_tests $ns1 $ns2 10.0.1.1 4 0 0 slow &
+		run_tests $ns1 $ns2 10.0.1.1 4 0 0 speed_20 &
 
 		wait_mpj $ns2
 		pm_nl_del_endpoint $ns2 2 10.0.2.2
-- 
2.39.1


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

* Re: selftests: mptcp: allow more slack for slow test-case: Tests Results
  2023-01-30 18:06 [PATCH mptcp-net] selftests: mptcp: allow more slack for slow test-case Paolo Abeni
@ 2023-01-30 19:10 ` MPTCP CI
  2023-01-31 11:06 ` [PATCH mptcp-net] selftests: mptcp: allow more slack for slow test-case Matthieu Baerts
  2023-01-31 12:11 ` selftests: mptcp: allow more slack for slow test-case: Tests Results MPTCP CI
  2 siblings, 0 replies; 4+ messages in thread
From: MPTCP CI @ 2023-01-30 19:10 UTC (permalink / raw)
  To: Paolo Abeni; +Cc: mptcp

Hi Paolo,

Thank you for your modifications, that's great!

Our CI did some validations and here is its report:

- KVM Validation: normal (except selftest_mptcp_join):
  - Success! ✅:
  - Task: https://cirrus-ci.com/task/4537600099221504
  - Summary: https://api.cirrus-ci.com/v1/artifact/task/4537600099221504/summary/summary.txt

- KVM Validation: normal (only selftest_mptcp_join):
  - Success! ✅:
  - Task: https://cirrus-ci.com/task/5663500006064128
  - Summary: https://api.cirrus-ci.com/v1/artifact/task/5663500006064128/summary/summary.txt

- KVM Validation: debug (only selftest_mptcp_join):
  - Success! ✅:
  - Task: https://cirrus-ci.com/task/6226449959485440
  - Summary: https://api.cirrus-ci.com/v1/artifact/task/6226449959485440/summary/summary.txt

- KVM Validation: debug (except selftest_mptcp_join):
  - Success! ✅:
  - Task: https://cirrus-ci.com/task/5100550052642816
  - Summary: https://api.cirrus-ci.com/v1/artifact/task/5100550052642816/summary/summary.txt

Initiator: Patchew Applier
Commits: https://github.com/multipath-tcp/mptcp_net-next/commits/c50fd91fa646


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-debug

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 (Tessares)

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

* Re: [PATCH mptcp-net] selftests: mptcp: allow more slack for slow test-case
  2023-01-30 18:06 [PATCH mptcp-net] selftests: mptcp: allow more slack for slow test-case Paolo Abeni
  2023-01-30 19:10 ` selftests: mptcp: allow more slack for slow test-case: Tests Results MPTCP CI
@ 2023-01-31 11:06 ` Matthieu Baerts
  2023-01-31 12:11 ` selftests: mptcp: allow more slack for slow test-case: Tests Results MPTCP CI
  2 siblings, 0 replies; 4+ messages in thread
From: Matthieu Baerts @ 2023-01-31 11:06 UTC (permalink / raw)
  To: Paolo Abeni, mptcp

Hi Paolo,

On 30/01/2023 19:06, Paolo Abeni wrote:
> A test-case is frequently failing on some extremelly slow VMs.
> The mptcp transfer completes before the script is able to do
> all the required PM manipulation.
> 
> Address the issue in the simplest possible way, making the
> transfer even more slow.
> 
> Additionally dump more info in case of failures, to help debugging
> similar problems in the future.

Thank you for looking at this!

> Fixes: e274f7154008 ("selftests: mptcp: add subflow limits test-cases")
> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
> ---
> this is just a wild guess, since I can't repro the issue at all. Ideally
> it would be great to have a loop with mpj 115 to validate this

It looks like I can still reproduce it on my side when I stress the host
and lower the priority of the VM as mentioned on the ticket:

https://github.com/multipath-tcp/mptcp_net-next/issues/323

I also have the long waiting time after having displayed the 2 OK
messages as described on the ticket but no more ignored error is
displayed, I guess this is fixed by one of your recent patch :-)

For the "long waiting time" issue, it is longer with the patch but not
new: it was already present before your modification. I can share a
patch to stop the transfer earlier and avoid waiting for nothing.


Just one detail below:

> ---
>  tools/testing/selftests/net/mptcp/mptcp_join.sh | 9 +++++++--
>  1 file changed, 7 insertions(+), 2 deletions(-)
> 
> diff --git a/tools/testing/selftests/net/mptcp/mptcp_join.sh b/tools/testing/selftests/net/mptcp/mptcp_join.sh
> index 387abdcec011..4e428871f961 100755
> --- a/tools/testing/selftests/net/mptcp/mptcp_join.sh
> +++ b/tools/testing/selftests/net/mptcp/mptcp_join.sh
> @@ -1704,7 +1704,12 @@ chk_subflow_nr()
>  		echo "[ ok ]"
>  	fi
>  
> -	[ "${dump_stats}" = 1 ] && ( ss -N $ns1 -tOni ; ss -N $ns1 -tOni | grep token; ip -n $ns1 mptcp endpoint )
> +	if [ "${dump_stats}" = 1 ]; then

I just noticed 'dump_stats' var is not reset/init (and marked as local)
at the beginning of the function.

I can add:

  local dump_stats

above as part of this fix if that's OK for you :)

Other than that:

Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>

Cheers,
Matt
-- 
Tessares | Belgium | Hybrid Access Solutions
www.tessares.net

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

* Re: selftests: mptcp: allow more slack for slow test-case: Tests Results
  2023-01-30 18:06 [PATCH mptcp-net] selftests: mptcp: allow more slack for slow test-case Paolo Abeni
  2023-01-30 19:10 ` selftests: mptcp: allow more slack for slow test-case: Tests Results MPTCP CI
  2023-01-31 11:06 ` [PATCH mptcp-net] selftests: mptcp: allow more slack for slow test-case Matthieu Baerts
@ 2023-01-31 12:11 ` MPTCP CI
  2 siblings, 0 replies; 4+ messages in thread
From: MPTCP CI @ 2023-01-31 12:11 UTC (permalink / raw)
  To: Paolo Abeni; +Cc: mptcp

Hi Paolo,

Thank you for your modifications, that's great!

Our CI did some validations and here is its report:

- KVM Validation: normal (except selftest_mptcp_join):
  - Success! ✅:
  - Task: https://cirrus-ci.com/task/5160588897157120
  - Summary: https://api.cirrus-ci.com/v1/artifact/task/5160588897157120/summary/summary.txt

- KVM Validation: debug (only selftest_mptcp_join):
  - Success! ✅:
  - Task: https://cirrus-ci.com/task/6005013827289088
  - Summary: https://api.cirrus-ci.com/v1/artifact/task/6005013827289088/summary/summary.txt

- KVM Validation: normal (only selftest_mptcp_join):
  - Success! ✅:
  - Task: https://cirrus-ci.com/task/6286488803999744
  - Summary: https://api.cirrus-ci.com/v1/artifact/task/6286488803999744/summary/summary.txt

- KVM Validation: debug (except selftest_mptcp_join):
  - Success! ✅:
  - Task: https://cirrus-ci.com/task/4879113920446464
  - Summary: https://api.cirrus-ci.com/v1/artifact/task/4879113920446464/summary/summary.txt

Initiator: Patchew Applier
Commits: https://github.com/multipath-tcp/mptcp_net-next/commits/196a242b1927


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-debug

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 (Tessares)

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

end of thread, other threads:[~2023-01-31 12:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-30 18:06 [PATCH mptcp-net] selftests: mptcp: allow more slack for slow test-case Paolo Abeni
2023-01-30 19:10 ` selftests: mptcp: allow more slack for slow test-case: Tests Results MPTCP CI
2023-01-31 11:06 ` [PATCH mptcp-net] selftests: mptcp: allow more slack for slow test-case Matthieu Baerts
2023-01-31 12:11 ` selftests: mptcp: allow more slack for slow test-case: Tests Results 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.