[1/2] test: add graph tests

Message ID 20230619204650.3348681-1-david.marchand@redhat.com (mailing list archive)
State Accepted, archived
Delegated to: Thomas Monjalon
Headers
Series [1/2] test: add graph tests |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

David Marchand June 19, 2023, 8:46 p.m. UTC
  We forgot to add graph unit tests to the CI testsuites.

Signed-off-by: David Marchand <david.marchand@redhat.com>
---
 app/test/meson.build | 3 +++
 1 file changed, 3 insertions(+)
  

Comments

David Marchand June 20, 2023, 6:45 a.m. UTC | #1
Hello guys,

On Mon, Jun 19, 2023 at 10:47 PM David Marchand
<david.marchand@redhat.com> wrote:
>
> We forgot to add graph unit tests to the CI testsuites.
>
> Signed-off-by: David Marchand <david.marchand@redhat.com>

Sorry, I forgot to Cc: you.
Can you have a look at this series?
Thanks.
  
Jerin Jacob June 20, 2023, 6:50 a.m. UTC | #2
On Tue, Jun 20, 2023 at 2:17 AM David Marchand
<david.marchand@redhat.com> wrote:
>
> We forgot to add graph unit tests to the CI testsuites.
>
> Signed-off-by: David Marchand <david.marchand@redhat.com>

Could we add Fixes: ?
Either way,
Acked-by: Jerin Jacob <jerinj@marvell.com>


> ---
>  app/test/meson.build | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/app/test/meson.build b/app/test/meson.build
> index d0fabcbb8b..35d6baeb22 100644
> --- a/app/test/meson.build
> +++ b/app/test/meson.build
> @@ -250,6 +250,8 @@ fast_tests = [
>          ['thash_autotest', true, true],
>          ['threads_autotest', true, true],
>          ['trace_autotest', true, true],
> +        ['graph_autotest', true, true],
> +        ['node_list_dump', true, true],
>  ]
>
>  # Tests known to have issues or which don't belong in other tests lists.
> @@ -298,6 +300,7 @@ perf_test_names = [
>          'trace_perf_autotest',
>          'ipsec_perf_autotest',
>          'thash_perf_autotest',
> +        'graph_perf_autotest',
>  ]
>
>  driver_test_names = [
> --
> 2.40.1
>
  
David Marchand June 20, 2023, 6:56 a.m. UTC | #3
On Tue, Jun 20, 2023 at 8:50 AM Jerin Jacob <jerinjacobk@gmail.com> wrote:
>
> On Tue, Jun 20, 2023 at 2:17 AM David Marchand
> <david.marchand@redhat.com> wrote:
> >
> > We forgot to add graph unit tests to the CI testsuites.
> >
> > Signed-off-by: David Marchand <david.marchand@redhat.com>
>
> Could we add Fixes: ?
> Either way,
> Acked-by: Jerin Jacob <jerinj@marvell.com>

Indeed.
I don't think the graph unit tests and code changed much, so it should
be ok to backport down to 20.11 and enable these ut in the CI.
  
Kevin Traynor June 20, 2023, 10:32 a.m. UTC | #4
On 20/06/2023 07:56, David Marchand wrote:
> On Tue, Jun 20, 2023 at 8:50 AM Jerin Jacob <jerinjacobk@gmail.com> wrote:
>>
>> On Tue, Jun 20, 2023 at 2:17 AM David Marchand
>> <david.marchand@redhat.com> wrote:
>>>
>>> We forgot to add graph unit tests to the CI testsuites.
>>>
>>> Signed-off-by: David Marchand <david.marchand@redhat.com>
>>
>> Could we add Fixes: ?
>> Either way,
>> Acked-by: Jerin Jacob <jerinj@marvell.com>
> 
> Indeed.
> I don't think the graph unit tests and code changed much, so it should
> be ok to backport down to 20.11 and enable these ut in the CI.
> 
> 

Sounds ok to me to add "Fixes:" tag and backport. If they pass, great - 
if they don't, the graph maintainers would need to spend time updating 
the tests etc or we could just drop the patch.
  
David Marchand June 20, 2023, 11:52 a.m. UTC | #5
On Tue, Jun 20, 2023 at 12:32 PM Kevin Traynor <ktraynor@redhat.com> wrote:
>
> On 20/06/2023 07:56, David Marchand wrote:
> > On Tue, Jun 20, 2023 at 8:50 AM Jerin Jacob <jerinjacobk@gmail.com> wrote:
> >>
> >> On Tue, Jun 20, 2023 at 2:17 AM David Marchand
> >> <david.marchand@redhat.com> wrote:
> >>>
> >>> We forgot to add graph unit tests to the CI testsuites.
> >>>
> >>> Signed-off-by: David Marchand <david.marchand@redhat.com>
> >>
> >> Could we add Fixes: ?
> >> Either way,
> >> Acked-by: Jerin Jacob <jerinj@marvell.com>
> >
> > Indeed.
> > I don't think the graph unit tests and code changed much, so it should
> > be ok to backport down to 20.11 and enable these ut in the CI.
> >
> >
>
> Sounds ok to me to add "Fixes:" tag and backport. If they pass, great -
> if they don't, the graph maintainers would need to spend time updating
> the tests etc or we could just drop the patch.

Modulo some easy to fix conflict when backporting, the graph tests pass fine:
- 20.11:
2023-06-20T11:30:44.7171265Z 87/96 DPDK:fast-tests / graph_autotest
    OK       0.13 s
2023-06-20T11:30:44.7171724Z 88/96 DPDK:fast-tests / node_list_dump
    OK       0.13 s

- 21.11:
2023-06-20T11:32:37.2132951Z  90/101 DPDK:fast-tests / graph_autotest
      OK       0.17 s
2023-06-20T11:32:37.2133397Z  91/101 DPDK:fast-tests / node_list_dump
      OK       0.17 s

- 22.11:
2023-06-20T11:50:48.2519983Z  92/106 DPDK:fast-tests / graph_autotest
      OK       0.17 s
2023-06-20T11:50:48.2520344Z  93/106 DPDK:fast-tests / node_list_dump
      OK       0.17 s
  
Kevin Traynor June 20, 2023, 1:06 p.m. UTC | #6
On 20/06/2023 12:52, David Marchand wrote:
> On Tue, Jun 20, 2023 at 12:32 PM Kevin Traynor <ktraynor@redhat.com> wrote:
>>
>> On 20/06/2023 07:56, David Marchand wrote:
>>> On Tue, Jun 20, 2023 at 8:50 AM Jerin Jacob <jerinjacobk@gmail.com> wrote:
>>>>
>>>> On Tue, Jun 20, 2023 at 2:17 AM David Marchand
>>>> <david.marchand@redhat.com> wrote:
>>>>>
>>>>> We forgot to add graph unit tests to the CI testsuites.
>>>>>
>>>>> Signed-off-by: David Marchand <david.marchand@redhat.com>
>>>>
>>>> Could we add Fixes: ?
>>>> Either way,
>>>> Acked-by: Jerin Jacob <jerinj@marvell.com>
>>>
>>> Indeed.
>>> I don't think the graph unit tests and code changed much, so it should
>>> be ok to backport down to 20.11 and enable these ut in the CI.
>>>
>>>
>>
>> Sounds ok to me to add "Fixes:" tag and backport. If they pass, great -
>> if they don't, the graph maintainers would need to spend time updating
>> the tests etc or we could just drop the patch.
> 
> Modulo some easy to fix conflict when backporting, the graph tests pass fine:
> - 20.11:
> 2023-06-20T11:30:44.7171265Z 87/96 DPDK:fast-tests / graph_autotest
>      OK       0.13 s
> 2023-06-20T11:30:44.7171724Z 88/96 DPDK:fast-tests / node_list_dump
>      OK       0.13 s
> 
> - 21.11:
> 2023-06-20T11:32:37.2132951Z  90/101 DPDK:fast-tests / graph_autotest
>        OK       0.17 s
> 2023-06-20T11:32:37.2133397Z  91/101 DPDK:fast-tests / node_list_dump
>        OK       0.17 s
> 
> - 22.11:
> 2023-06-20T11:50:48.2519983Z  92/106 DPDK:fast-tests / graph_autotest
>        OK       0.17 s
> 2023-06-20T11:50:48.2520344Z  93/106 DPDK:fast-tests / node_list_dump
>        OK       0.17 s
> 
> 

Thanks David. In that case lgtm.
  

Patch

diff --git a/app/test/meson.build b/app/test/meson.build
index d0fabcbb8b..35d6baeb22 100644
--- a/app/test/meson.build
+++ b/app/test/meson.build
@@ -250,6 +250,8 @@  fast_tests = [
         ['thash_autotest', true, true],
         ['threads_autotest', true, true],
         ['trace_autotest', true, true],
+        ['graph_autotest', true, true],
+        ['node_list_dump', true, true],
 ]
 
 # Tests known to have issues or which don't belong in other tests lists.
@@ -298,6 +300,7 @@  perf_test_names = [
         'trace_perf_autotest',
         'ipsec_perf_autotest',
         'thash_perf_autotest',
+        'graph_perf_autotest',
 ]
 
 driver_test_names = [