* [PATCH mptcp-next] Squash to "selftests: bpf: add bpf_first test"
@ 2022-05-04 0:47 Geliang Tang
2022-05-04 1:17 ` Mat Martineau
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Geliang Tang @ 2022-05-04 0:47 UTC (permalink / raw)
To: mptcp; +Cc: Geliang Tang
Set scheduler to default after test.
Signed-off-by: Geliang Tang <geliang.tang@suse.com>
---
tools/testing/selftests/bpf/prog_tests/mptcp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/bpf/prog_tests/mptcp.c b/tools/testing/selftests/bpf/prog_tests/mptcp.c
index 925858d63a9c..3106e013b9ca 100644
--- a/tools/testing/selftests/bpf/prog_tests/mptcp.c
+++ b/tools/testing/selftests/bpf/prog_tests/mptcp.c
@@ -371,6 +371,7 @@ static void test_first(void)
close(client_fd);
close(server_fd);
+ system("sysctl -qw net.mptcp.scheduler=default");
bpf_link__destroy(link);
mptcp_bpf_first__destroy(first_skel);
}
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH mptcp-next] Squash to "selftests: bpf: add bpf_first test"
2022-05-04 0:47 [PATCH mptcp-next] Squash to "selftests: bpf: add bpf_first test" Geliang Tang
@ 2022-05-04 1:17 ` Mat Martineau
2022-05-04 2:17 ` Squash to "selftests: bpf: add bpf_first test": Tests Results MPTCP CI
2022-05-04 7:03 ` [PATCH mptcp-next] Squash to "selftests: bpf: add bpf_first test" Matthieu Baerts
2 siblings, 0 replies; 5+ messages in thread
From: Mat Martineau @ 2022-05-04 1:17 UTC (permalink / raw)
To: Geliang Tang; +Cc: mptcp
On Wed, 4 May 2022, Geliang Tang wrote:
> Set scheduler to default after test.
Looks good to squash, thanks Geliang.
- Mat
>
> Signed-off-by: Geliang Tang <geliang.tang@suse.com>
> ---
> tools/testing/selftests/bpf/prog_tests/mptcp.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tools/testing/selftests/bpf/prog_tests/mptcp.c b/tools/testing/selftests/bpf/prog_tests/mptcp.c
> index 925858d63a9c..3106e013b9ca 100644
> --- a/tools/testing/selftests/bpf/prog_tests/mptcp.c
> +++ b/tools/testing/selftests/bpf/prog_tests/mptcp.c
> @@ -371,6 +371,7 @@ static void test_first(void)
>
> close(client_fd);
> close(server_fd);
> + system("sysctl -qw net.mptcp.scheduler=default");
> bpf_link__destroy(link);
> mptcp_bpf_first__destroy(first_skel);
> }
> --
> 2.34.1
>
>
>
--
Mat Martineau
Intel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Squash to "selftests: bpf: add bpf_first test": Tests Results
2022-05-04 0:47 [PATCH mptcp-next] Squash to "selftests: bpf: add bpf_first test" Geliang Tang
2022-05-04 1:17 ` Mat Martineau
@ 2022-05-04 2:17 ` MPTCP CI
2022-05-04 7:03 ` [PATCH mptcp-next] Squash to "selftests: bpf: add bpf_first test" Matthieu Baerts
2 siblings, 0 replies; 5+ messages in thread
From: MPTCP CI @ 2022-05-04 2:17 UTC (permalink / raw)
To: Geliang Tang; +Cc: mptcp
Hi Geliang,
Thank you for your modifications, that's great!
Our CI did some validations and here is its report:
- KVM Validation: normal:
- Unstable: 1 failed test(s): selftest_mptcp_join 🔴:
- Task: https://cirrus-ci.com/task/6122010928480256
- Summary: https://api.cirrus-ci.com/v1/artifact/task/6122010928480256/summary/summary.txt
- KVM Validation: debug:
- Unstable: 3 failed test(s): packetdrill_add_addr selftest_diag selftest_mptcp_join 🔴:
- Task: https://cirrus-ci.com/task/6215194589265920
- Summary: https://api.cirrus-ci.com/v1/artifact/task/6215194589265920/summary/summary.txt
Initiator: Patchew Applier
Commits: https://github.com/multipath-tcp/mptcp_net-next/commits/6da540838c97
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] 5+ messages in thread
* Re: [PATCH mptcp-next] Squash to "selftests: bpf: add bpf_first test"
2022-05-04 0:47 [PATCH mptcp-next] Squash to "selftests: bpf: add bpf_first test" Geliang Tang
2022-05-04 1:17 ` Mat Martineau
2022-05-04 2:17 ` Squash to "selftests: bpf: add bpf_first test": Tests Results MPTCP CI
@ 2022-05-04 7:03 ` Matthieu Baerts
2 siblings, 0 replies; 5+ messages in thread
From: Matthieu Baerts @ 2022-05-04 7:03 UTC (permalink / raw)
To: Geliang Tang, mptcp
Hi Geliang, Mat,
On 04/05/2022 02:47, Geliang Tang wrote:
> Set scheduler to default after test.
Thank you for the patch and the review!
Now in our tree:
New patches for t/upstream:
- 56aa85d15070: "squashed" in "selftests: bpf: add bpf_first test"
- Results: 9cac72edfb62..ba73bf84ee7f (export)
Builds and tests are now in progress:
https://cirrus-ci.com/github/multipath-tcp/mptcp_net-next/export/20220504T070238
https://github.com/multipath-tcp/mptcp_net-next/actions/workflows/build-validation.yml?query=branch:export
Cheers,
Matt
--
Tessares | Belgium | Hybrid Access Solutions
www.tessares.net
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH mptcp-next] Squash to "selftests: bpf: add bpf_first test"
2022-05-07 6:17 [PATCH mptcp-next] Squash to "selftests: bpf: add MPTCP test base" Geliang Tang
@ 2022-05-07 6:17 ` Geliang Tang
0 siblings, 0 replies; 5+ messages in thread
From: Geliang Tang @ 2022-05-07 6:17 UTC (permalink / raw)
To: mptcp; +Cc: Geliang Tang
Address to Andrii's comments:
- use ASSERT_* instead of CHECK_FAIL
Signed-off-by: Geliang Tang <geliang.tang@suse.com>
---
tools/testing/selftests/bpf/prog_tests/mptcp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/bpf/prog_tests/mptcp.c b/tools/testing/selftests/bpf/prog_tests/mptcp.c
index 625d7a644fd4..865e3b392ac3 100644
--- a/tools/testing/selftests/bpf/prog_tests/mptcp.c
+++ b/tools/testing/selftests/bpf/prog_tests/mptcp.c
@@ -343,7 +343,7 @@ static void test_first(void)
struct bpf_link *link;
first_skel = mptcp_bpf_first__open_and_load();
- if (CHECK(!first_skel, "bpf_first__open_and_load", "failed\n"))
+ if (!ASSERT_OK_PTR(first_skel, "bpf_first__open_and_load"))
return;
link = bpf_map__attach_struct_ops(first_skel->maps.first);
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-05-07 6:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-04 0:47 [PATCH mptcp-next] Squash to "selftests: bpf: add bpf_first test" Geliang Tang
2022-05-04 1:17 ` Mat Martineau
2022-05-04 2:17 ` Squash to "selftests: bpf: add bpf_first test": Tests Results MPTCP CI
2022-05-04 7:03 ` [PATCH mptcp-next] Squash to "selftests: bpf: add bpf_first test" Matthieu Baerts
-- strict thread matches above, loose matches on Subject: below --
2022-05-07 6:17 [PATCH mptcp-next] Squash to "selftests: bpf: add MPTCP test base" Geliang Tang
2022-05-07 6:17 ` [PATCH mptcp-next] Squash to "selftests: bpf: add bpf_first test" Geliang Tang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox