[PATCH mptcp-net v3 0/4] selftests: mptcp: mark unstable subtests as flaky

Matthieu Baerts (NGI0) posted 4 patches 3 months, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/multipath-tcp/mptcp_net-next tags/patchew/20240522-selftests-mptcp-disable-flaky-v3-0-a10c68bf2680@kernel.org
tools/testing/selftests/net/mptcp/mptcp_join.sh   | 10 +++++++-
tools/testing/selftests/net/mptcp/mptcp_lib.sh    | 30 +++++++++++++++++++++--
tools/testing/selftests/net/mptcp/simult_flows.sh |  6 ++---
3 files changed, 40 insertions(+), 6 deletions(-)
[PATCH mptcp-net v3 0/4] selftests: mptcp: mark unstable subtests as flaky
Posted by Matthieu Baerts (NGI0) 3 months, 2 weeks ago
Some subtests can be unstable, failing once every X runs. Fixing them
can take time: there could be an issue in the kernel or in the subtest,
and it is then important to do a proper analysis, not to hide real bugs.

To avoid creating noises on the different CIs, some subtests have been
marked as flaky. As a result, errors with these subtests (if any) are
ignored.

Note that the MPTCP CI will continue to track these flaky subtests. All
these unstable subtests are also tracked by our bug tracker.

Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
---
Changes in v3:
- Patch 1/4:
  - use SELFTESTS_MPTCP_LIB_OVERRIDE_FLAKY env var (Mat)
  - clearly indicate 'flaky' in the output / TAP format
- Target mptcp-net: these are "fixes" for the selftests. I don't think
  we need to add Fixes tag, right?
- Link to v2: https://lore.kernel.org/r/20240521-selftests-mptcp-disable-flaky-v2-0-eba143bcbad0@kernel.org

Changes in v2:
- Patch 2/4: only mark "unbalanced bwidth" subtest as flaky (Paolo)
- Link to v1: https://lore.kernel.org/r/20240520-selftests-mptcp-disable-flaky-v1-0-02e23ba0bc3b@kernel.org

---
Matthieu Baerts (NGI0) (4):
      selftests: mptcp: lib: support flaky subtests
      selftests: mptcp: simult flows: mark 'unbalanced' tests as flaky
      selftests: mptcp: join: mark 'fastclose' tests as flaky
      selftests: mptcp: join: mark 'fail' tests as flaky

 tools/testing/selftests/net/mptcp/mptcp_join.sh   | 10 +++++++-
 tools/testing/selftests/net/mptcp/mptcp_lib.sh    | 30 +++++++++++++++++++++--
 tools/testing/selftests/net/mptcp/simult_flows.sh |  6 ++---
 3 files changed, 40 insertions(+), 6 deletions(-)
---
base-commit: d048726b432ccff9b4e3d8b0012a7328c5c7c2f6
change-id: 20240520-selftests-mptcp-disable-flaky-380759d6503c

Best regards,
-- 
Matthieu Baerts (NGI0) <matttbe@kernel.org>
Re: [PATCH mptcp-net v3 0/4] selftests: mptcp: mark unstable subtests as flaky
Posted by Mat Martineau 3 months, 2 weeks ago
On Wed, 22 May 2024, Matthieu Baerts (NGI0) wrote:

> Some subtests can be unstable, failing once every X runs. Fixing them
> can take time: there could be an issue in the kernel or in the subtest,
> and it is then important to do a proper analysis, not to hide real bugs.
>
> To avoid creating noises on the different CIs, some subtests have been
> marked as flaky. As a result, errors with these subtests (if any) are
> ignored.
>
> Note that the MPTCP CI will continue to track these flaky subtests. All
> these unstable subtests are also tracked by our bug tracker.
>
> Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
> ---
> Changes in v3:
> - Patch 1/4:
>  - use SELFTESTS_MPTCP_LIB_OVERRIDE_FLAKY env var (Mat)
>  - clearly indicate 'flaky' in the output / TAP format
> - Target mptcp-net: these are "fixes" for the selftests. I don't think
>  we need to add Fixes tag, right?
> - Link to v2: https://lore.kernel.org/r/20240521-selftests-mptcp-disable-flaky-v2-0-eba143bcbad0@kernel.org
>

Thanks for the v3, this version LGTM:

Reviewed-by: Mat Martineau <martineau@kernel.org>

> Changes in v2:
> - Patch 2/4: only mark "unbalanced bwidth" subtest as flaky (Paolo)
> - Link to v1: https://lore.kernel.org/r/20240520-selftests-mptcp-disable-flaky-v1-0-02e23ba0bc3b@kernel.org
>
> ---
> Matthieu Baerts (NGI0) (4):
>      selftests: mptcp: lib: support flaky subtests
>      selftests: mptcp: simult flows: mark 'unbalanced' tests as flaky
>      selftests: mptcp: join: mark 'fastclose' tests as flaky
>      selftests: mptcp: join: mark 'fail' tests as flaky
>
> tools/testing/selftests/net/mptcp/mptcp_join.sh   | 10 +++++++-
> tools/testing/selftests/net/mptcp/mptcp_lib.sh    | 30 +++++++++++++++++++++--
> tools/testing/selftests/net/mptcp/simult_flows.sh |  6 ++---
> 3 files changed, 40 insertions(+), 6 deletions(-)
> ---
> base-commit: d048726b432ccff9b4e3d8b0012a7328c5c7c2f6
> change-id: 20240520-selftests-mptcp-disable-flaky-380759d6503c
>
> Best regards,
> -- 
> Matthieu Baerts (NGI0) <matttbe@kernel.org>
>
>
>
Re: [PATCH mptcp-net v3 0/4] selftests: mptcp: mark unstable subtests as flaky
Posted by Matthieu Baerts 3 months, 2 weeks ago
Hi Mat,

On 22/05/2024 17:38, Mat Martineau wrote:
> On Wed, 22 May 2024, Matthieu Baerts (NGI0) wrote:
> 
>> Some subtests can be unstable, failing once every X runs. Fixing them
>> can take time: there could be an issue in the kernel or in the subtest,
>> and it is then important to do a proper analysis, not to hide real bugs.
>>
>> To avoid creating noises on the different CIs, some subtests have been
>> marked as flaky. As a result, errors with these subtests (if any) are
>> ignored.
>>
>> Note that the MPTCP CI will continue to track these flaky subtests. All
>> these unstable subtests are also tracked by our bug tracker.
>>
>> Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
>> ---
>> Changes in v3:
>> - Patch 1/4:
>>  - use SELFTESTS_MPTCP_LIB_OVERRIDE_FLAKY env var (Mat)
>>  - clearly indicate 'flaky' in the output / TAP format
>> - Target mptcp-net: these are "fixes" for the selftests. I don't think
>>  we need to add Fixes tag, right?
>> - Link to v2: https://lore.kernel.org/r/20240521-selftests-mptcp-
>> disable-flaky-v2-0-eba143bcbad0@kernel.org
>>
> 
> Thanks for the v3, this version LGTM:
> 
> Reviewed-by: Mat Martineau <martineau@kernel.org>

Thank you for the reviews!

Now in our tree (fixes for -net):

New patches for t/upstream-net and t/upstream:
- 31a8e77f8a8e: selftests: mptcp: lib: support flaky subtests
- 72b77cdcc01a: selftests: mptcp: simult flows: mark 'unbalanced' tests
as flaky
- 15017664727f: selftests: mptcp: join: mark 'fastclose' tests as flaky
- 37d7a595c026: selftests: mptcp: join: mark 'fail' tests as flaky
- Results: c60497ee2fda..dffeea9a0a9a (export-net)
- Results: 1d530a1e5853..40645b1ba57f (export)

Tests are now in progress:

- export-net:
https://github.com/multipath-tcp/mptcp_net-next/commit/1dfb0687fdfad507a166c105b9b9963b6055ea37/checks
- export:
https://github.com/multipath-tcp/mptcp_net-next/commit/e74ff5f00596022e8aca0d5de76ada6e5aad7066/checks

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