DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] ci: fix unit tests with Fedora 37
@ 2024-10-18 13:56 David Marchand
  2024-10-18 14:04 ` Patrick Robb
  2024-10-18 16:07 ` David Marchand
  0 siblings, 2 replies; 3+ messages in thread
From: David Marchand @ 2024-10-18 13:56 UTC (permalink / raw)
  To: dev
  Cc: thomas, probb, Robin Jarry, Aaron Conole, Michael Santana,
	Bruce Richardson, Chengwen Feng

This was detected in UNH envs.

In Fedora 37 and other distributions, meson 0.57 breaks when calling
the unit tests (probably because of an incompatibility with Python 3.11):

$ meson test -C build --suite DPDK:fast-tests
ninja: Entering directory `/root/dpdk/build'
ninja: no work to do.
Exception in callback TestHarness._run_tests.<locals>.test_done
    (<Task finishe...explicitly.')>)
    at /usr/local/lib/python3.11/site-packages/mesonbuild/mtest.py:1806
handle: <Handle TestHarness._run_tests.<locals>.test_done
    (<Task finishe...explicitly.')>)
    at /usr/local/lib/python3.11/site-packages/mesonbuild/mtest.py:1806>
Traceback (most recent call last):
  File "/usr/lib64/python3.11/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/local/lib/python3.11/site-packages/mesonbuild/mtest.py",
    line 1808, in test_done
    f.result()
  File "/usr/local/lib/python3.11/site-packages/mesonbuild/mtest.py",
    line 1803, in run_test
    res = await test.run(self)
          ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/mesonbuild/mtest.py",
    line 1349, in run
    await self._run_cmd(harness, cmd)
  File "/usr/local/lib/python3.11/site-packages/mesonbuild/mtest.py",
    line 1415, in _run_cmd
    returncode, result, additional_error =
    await p.wait(self.runobj.timeout)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/mesonbuild/mtest.py",
    line 1241, in wait
    await try_wait_one(p.wait(), timeout=timeout)
  File "/usr/local/lib/python3.11/site-packages/mesonbuild/mtest.py",
    line 1132, in try_wait_one
    await asyncio.wait(awaitables,
  File "/usr/lib64/python3.11/asyncio/tasks.py", line 425, in wait
    raise TypeError("Passing coroutines is forbidden, use tasks
    explicitly.")
TypeError: Passing coroutines is forbidden, use tasks explicitly.
/usr/lib64/python3.11/asyncio/events.py:80: RuntimeWarning: coroutine
    'Process.wait' was never awaited
  self._context.run(self._callback, *self._args)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

This issue is fixed by upgrading to 0.57.2.

Fixes: 6f3dbd306de0 ("build: increase minimum meson version to 0.57")

Suggested-by: Robin Jarry <rjarry@redhat.com>
Signed-off-by: David Marchand <david.marchand@redhat.com>
---
Note: for now, this is a quick fix only for restoring unit tests in the
CI before rc1.
There is still the question of whether we should align the minimal
version to 0.57.2 too.
This can be rediscussed for rc2.
---
 .ci/linux-setup.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.ci/linux-setup.sh b/.ci/linux-setup.sh
index 8512a92b21..938d492cbb 100755
--- a/.ci/linux-setup.sh
+++ b/.ci/linux-setup.sh
@@ -4,7 +4,7 @@
 [ "$(id -u)" != '0' ] || alias sudo=
 
 # need to install as 'root' since some of the unit tests won't run without it
-sudo python3 -m pip install --upgrade 'meson==0.57.0'
+sudo python3 -m pip install --upgrade 'meson==0.57.2'
 
 # setup hugepages. error ignored because having hugepage is not mandatory.
 cat /proc/meminfo
-- 
2.46.2


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

* Re: [PATCH] ci: fix unit tests with Fedora 37
  2024-10-18 13:56 [PATCH] ci: fix unit tests with Fedora 37 David Marchand
@ 2024-10-18 14:04 ` Patrick Robb
  2024-10-18 16:07 ` David Marchand
  1 sibling, 0 replies; 3+ messages in thread
From: Patrick Robb @ 2024-10-18 14:04 UTC (permalink / raw)
  To: David Marchand
  Cc: dev, thomas, Robin Jarry, Aaron Conole, Michael Santana,
	Bruce Richardson, Chengwen Feng

Acked-by: Patrick Robb <probb@iol.unh.edu>

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

* Re: [PATCH] ci: fix unit tests with Fedora 37
  2024-10-18 13:56 [PATCH] ci: fix unit tests with Fedora 37 David Marchand
  2024-10-18 14:04 ` Patrick Robb
@ 2024-10-18 16:07 ` David Marchand
  1 sibling, 0 replies; 3+ messages in thread
From: David Marchand @ 2024-10-18 16:07 UTC (permalink / raw)
  To: David Marchand
  Cc: dev, thomas, probb, Robin Jarry, Aaron Conole, Michael Santana,
	Bruce Richardson, Chengwen Feng

On Fri, Oct 18, 2024 at 3:57 PM David Marchand
<david.marchand@redhat.com> wrote:
>
> This was detected in UNH envs.
>
> In Fedora 37 and other distributions, meson 0.57 breaks when calling
> the unit tests (probably because of an incompatibility with Python 3.11):
>
> $ meson test -C build --suite DPDK:fast-tests
> ninja: Entering directory `/root/dpdk/build'
> ninja: no work to do.
> Exception in callback TestHarness._run_tests.<locals>.test_done
>     (<Task finishe...explicitly.')>)
>     at /usr/local/lib/python3.11/site-packages/mesonbuild/mtest.py:1806
> handle: <Handle TestHarness._run_tests.<locals>.test_done
>     (<Task finishe...explicitly.')>)
>     at /usr/local/lib/python3.11/site-packages/mesonbuild/mtest.py:1806>
> Traceback (most recent call last):
>   File "/usr/lib64/python3.11/asyncio/events.py", line 80, in _run
>     self._context.run(self._callback, *self._args)
>   File "/usr/local/lib/python3.11/site-packages/mesonbuild/mtest.py",
>     line 1808, in test_done
>     f.result()
>   File "/usr/local/lib/python3.11/site-packages/mesonbuild/mtest.py",
>     line 1803, in run_test
>     res = await test.run(self)
>           ^^^^^^^^^^^^^^^^^^^^
>   File "/usr/local/lib/python3.11/site-packages/mesonbuild/mtest.py",
>     line 1349, in run
>     await self._run_cmd(harness, cmd)
>   File "/usr/local/lib/python3.11/site-packages/mesonbuild/mtest.py",
>     line 1415, in _run_cmd
>     returncode, result, additional_error =
>     await p.wait(self.runobj.timeout)
>     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/local/lib/python3.11/site-packages/mesonbuild/mtest.py",
>     line 1241, in wait
>     await try_wait_one(p.wait(), timeout=timeout)
>   File "/usr/local/lib/python3.11/site-packages/mesonbuild/mtest.py",
>     line 1132, in try_wait_one
>     await asyncio.wait(awaitables,
>   File "/usr/lib64/python3.11/asyncio/tasks.py", line 425, in wait
>     raise TypeError("Passing coroutines is forbidden, use tasks
>     explicitly.")
> TypeError: Passing coroutines is forbidden, use tasks explicitly.
> /usr/lib64/python3.11/asyncio/events.py:80: RuntimeWarning: coroutine
>     'Process.wait' was never awaited
>   self._context.run(self._callback, *self._args)
> RuntimeWarning: Enable tracemalloc to get the object allocation traceback
>
> This issue is fixed by upgrading to 0.57.2.
>
> Fixes: 6f3dbd306de0 ("build: increase minimum meson version to 0.57")
>
> Suggested-by: Robin Jarry <rjarry@redhat.com>
> Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Patrick Robb <probb@iol.unh.edu>

Applied, thanks.


-- 
David Marchand


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

end of thread, other threads:[~2024-10-18 16:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-18 13:56 [PATCH] ci: fix unit tests with Fedora 37 David Marchand
2024-10-18 14:04 ` Patrick Robb
2024-10-18 16:07 ` David Marchand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).