Hi Diane,

Am Wed, Feb 01, 2023 at 02:21:08PM -0800 schrieb Diane Trout:
> > 
> > could you please give an update about the status of numba?  The
> > window
> > of opportunity is closing soon.  Please be as verbose as possible
> > what
> > help you might need.
> > 
> 
> Ok what I've been doing so far was I did manage to backport all of
> upstreams python 3.11 patches.
> 
> Though I did make a mistake in one of them that generated a great deal
> of errors (and more importantly I did find, fix, and pushed the fix for
> that error to salsa)
> 
> Mostly I've been running the tests and watching it fail, and trying to
> add to the list of tests to ignore.
> 
> I've been building on a server with 24 GB of ram but have been getting
> out of memory errors with sbuild & autopkgtest for some reason, and my
> system monitoring seems to suggest it was only getting up to 6-7 GB
> used. (I'm using an old server because no one else is using it...)
> 
> To get around crashing due to the OOM killer I switched from upstreams
> numba.runtests to pytest-xdist. pytest also makes it easier to ignore
> specific tests that are causing trouble and xdist does a better job of
> restarting failed worker processes.
> 
> It might be good for someone else to run the tests and see what
> happens, is it something about my sbuild / autopkgtest that's causing
> it to crash with an out of memory error?

It seems to me that build time tests are working and the failure is
just in autopkgtest.  I'm drawing this conclusion from your latest
push to Salsa where amd64 and i386 were building successfully

   https://salsa.debian.org/science-team/numba/-/pipelines/493712

while the autopkgtest failed[1].
 
> There's also asking upstream if this is expected behavior?
> 
> But run tests for 3-4 hours to see what test failed and then ignore
> that is not a particularly efficient method.
> 
> I'm open for more suggestions.
> 
> Also I may have found a bug in autopkgtest....but haven't investigated
> it yet.
> 
> [gw22] [ 99%] FAILED
> tests/test_array_methods.py::TestArrayMethods::test_np_frombuffer_dtype
> self.testbed.check_exec(['rm', '-rf', 
> self.tb])                                                             
>   File "/usr/share/autopkgtest/lib/adt_testbed.py", line 559, in
> check_exec                                                            
>     (code, out, err) = self.execute(argv,                             
>   File "/usr/share/autopkgtest/lib/adt_testbed.py", line 531, in
> execute                                                               
>     killtree(proc.pid)                                                
> UnboundLocalError: local variable 'proc' referenced before assignment 

As in [1] it failed with

[gw0] [  4%] PASSED 
tests/test_array_reductions.py::TestArrayReductions::test_array_nanmin_complex64_2d
 
tests/test_array_reductions.py::TestArrayReductions::test_array_nanmin_complex64_3d
 
[gw0] [  4%] PASSED 
tests/test_array_reductions.py::TestArrayReductions::test_array_nanmin_complex64_3d
 
tests/test_array_reductions.py::TestArrayReductions::test_array_nanmin_float32_1d
 autopkgtest [21:28:49]: ERROR: timed out on command "su -s /bin/bash debci -c 
set -e; export USER=`id -nu`; . /etc/profile >/dev/null 2>&1 || true;  . 
~/.profile >/dev/null 2>&1 || true; 
buildtree="/tmp/autopkgtest-lxc.bwdnkpny/downtmp/build.4kI/src"; mkdir -p -m 
1777 -- "/tmp/autopkgtest-lxc.bwdnkpny/downtmp/python3-numba-artifacts"; export 
AUTOPKGTEST_ARTIFACTS="/tmp/autopkgtest-lxc.bwdnkpny/downtmp/python3-numba-artifacts";
 export ADT_ARTIFACTS="$AUTOPKGTEST_ARTIFACTS"; mkdir -p -m 755 
"/tmp/autopkgtest-lxc.bwdnkpny/downtmp/autopkgtest_tmp"; export 
AUTOPKGTEST_TMP="/tmp/autopkgtest-lxc.bwdnkpny/downtmp/autopkgtest_tmp"; export 
ADTTMP="$AUTOPKGTEST_TMP"; export DEBIAN_FRONTEND=noninteractive; export 
LANG=C.UTF-8; export DEB_BUILD_OPTIONS=parallel=2; unset LANGUAGE LC_CTYPE 
LC_NUMERIC LC_TIME LC_COLLATE   LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME 
LC_ADDRESS   LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION LC_ALL;cd 
"$buildtree"; chmod +x 
/tmp/autopkgtest-lxc.bwdnkpny/downtmp/build.4kI/src/debian/tests/python3-numba; 
exec /tmp/autopkgtest-lxc.bwdnkpny/downtmp/wrapper.sh 
--script-pid-file=/tmp/autopkgtest_script_pid 
--stderr=/tmp/autopkgtest-lxc.bwdnkpny/downtmp/python3-numba-stderr 
--stdout=/tmp/autopkgtest-lxc.bwdnkpny/downtmp/python3-numba-stdout -- 
/tmp/autopkgtest-lxc.bwdnkpny/downtmp/build.4kI/src/debian/tests/python3-numba 
;" (kind: test)
Session terminated, killing shell...autopkgtest [21:28:50]: test python3-numba: 
-----------------------]

I tried to exclude this with a "rude" patch[2] where I first excluded
test_array_nanmin_* to avoid the situation above.  In my local
autobuilder I've got something similar with test_array_var_* and
thus I excluded these tests as well.  Now Salsa CI is crashing twice
when extracting the source which does not bring us forward at all.

So I would suggest to "forcefully" make autopkgtest passing for the
moment by something like

diff --git a/debian/tests/python3-numba b/debian/tests/python3-numba
index 275ffcd..fdbf0e0 100755
--- a/debian/tests/python3-numba
+++ b/debian/tests/python3-numba
@@ -65,5 +65,5 @@ for py in $(py3versions -d); do
     echo "[*] Testing with $py:";
     #MPLBACKEND=Agg $py -m numba.runtests -b 
--exclude-tags='long-running,gdb,compiled_caching' -v -m $TEST_NPROCS 2>&1;
     # pytest is better at continuing in case of crashes
-    MPLBACKEND=Agg $py -m pytest -nauto -k "not ( $SKIP_TESTS )" -m "not 
(long-running or gdb or compiled_caching)" -v --ignore 
/usr/lib/python3/dist-packages/numba/cuda/ --pyargs numba
+    MPLBACKEND=Agg $py -m pytest -nauto -k "not ( $SKIP_TESTS )" -m "not 
(long-running or gdb or compiled_caching)" -v --ignore 
/usr/lib/python3/dist-packages/numba/cuda/ --pyargs numba || true
 done

I know that's cheating but there is no time for fiddling around here
any more. We are running the same test as at build-time where it is
passing so we can assume that numba works.

What do you think?

Any better idea would be more than welcome.

Kind regards
    Andreas.


[1] https://salsa.debian.org/science-team/numba/-/pipelines/493712 
[2] 
https://salsa.debian.org/science-team/numba/-/blob/debian/master/debian/patches/zz_ignore_array_nanmin_tests.patch

-- 
http://fam-tille.de

Reply via email to