Bug#1018811: [Debian-pan-maintainers] Bug#1018811: Three new test issues preventing upload of patch (Was: pyfai: autopkgtest regression on armel and i386)

2023-02-18 Thread Adrian Bunk
Hi,

if pyfai should be part of bookworm, then it is now becoming urgent that 
this bug gets fixed soon.

cu
Adrian


On Sun, Jan 22, 2023 at 10:23:16PM +0100, Andreas Tille wrote:
> Am Sun, Jan 22, 2023 at 06:58:53PM +0100 schrieb Jerome Kieffer:
> > On Sun, 22 Jan 2023 16:56:46 +0100
> > Andreas Tille  wrote:
> > 
> > > Thanks for commenting on this.  Would you be able to push the needed 
> > > changes
> > > to Salsa (and preferably upload)?
> > 
> > Hi Andreas,
> > 
> > I know a bit about debian packaging and also about the gitlab-CI, but I 
> > never used the later for the former.
> > 
> > I just re-acetivated my salsa account and forked the project.
> > 
> > Now what should I do ?
> > * I guess replace the content of the master branch with the newest release
> > * should I update the content of any other branch ?
> 
> You deel only with the master branch
> 
> > * then perform a merge-request on the scient-team 
> 
> If its easier for you simply send me a patch.
> 
> > Maybe (probably) there is a documentation existing, but as usual a
> > quick googling did not provide the adequate answer.
> 
> I wrongly assumed that you were comfortable with Salsa.  I think I
> can live with any form of patch or MR.
> 
> Kind regards
> Andreas. 
> 
> -- 
> http://fam-tille.de



Bug#1018811: [Debian-pan-maintainers] Bug#1018811: Three new test issues preventing upload of patch (Was: pyfai: autopkgtest regression on armel and i386)

2023-01-22 Thread Andreas Tille
Am Sun, Jan 22, 2023 at 06:58:53PM +0100 schrieb Jerome Kieffer:
> On Sun, 22 Jan 2023 16:56:46 +0100
> Andreas Tille  wrote:
> 
> > Thanks for commenting on this.  Would you be able to push the needed changes
> > to Salsa (and preferably upload)?
> 
> Hi Andreas,
> 
> I know a bit about debian packaging and also about the gitlab-CI, but I never 
> used the later for the former.
> 
> I just re-acetivated my salsa account and forked the project.
> 
> Now what should I do ?
> * I guess replace the content of the master branch with the newest release
> * should I update the content of any other branch ?

You deel only with the master branch

> * then perform a merge-request on the scient-team 

If its easier for you simply send me a patch.

> Maybe (probably) there is a documentation existing, but as usual a
> quick googling did not provide the adequate answer.

I wrongly assumed that you were comfortable with Salsa.  I think I
can live with any form of patch or MR.

Kind regards
Andreas. 

-- 
http://fam-tille.de



Bug#1018811: [Debian-pan-maintainers] Bug#1018811: Three new test issues preventing upload of patch (Was: pyfai: autopkgtest regression on armel and i386)

2023-01-22 Thread Jerome Kieffer
On Sun, 22 Jan 2023 16:56:46 +0100
Andreas Tille  wrote:

> Thanks for commenting on this.  Would you be able to push the needed changes
> to Salsa (and preferably upload)?

Hi Andreas,

I know a bit about debian packaging and also about the gitlab-CI, but I never 
used the later for the former.

I just re-acetivated my salsa account and forked the project.

Now what should I do ?
* I guess replace the content of the master branch with the newest release
* should I update the content of any other branch ?
* then perform a merge-request on the scient-team 

Maybe (probably) there is a documentation existing, but as usual a
quick googling did not provide the adequate answer.

Cheers,

Jerome



Bug#1018811: Three new test issues preventing upload of patch (Was: pyfai: autopkgtest regression on armel and i386)

2023-01-22 Thread Andreas Tille
Am Sun, Jan 22, 2023 at 04:24:51PM +0100 schrieb Jerome Kieffer:
> I released the verison 2023.1 last week:
> https://pypi.org/project/pyfai/
> 
> I just checked on the i386-debian sid chroot I have and none of the 3 test 
> you found were failing (they are skipped)... but there is another one failing:
> 
> ==
> FAIL: test (pyFAI.test.test_error_model.TestErrorModel.test)
> --
> Traceback (most recent call last):
>   File 
> "/tmp/pyFAI/build/lib/python3/dist-packages/pyFAI/test/test_error_model.py", 
> line 121, in test
> self.assertGreaterEqual(cormap(ref.__getattribute__(array), 
> res.__getattribute__(array)), epsilon, f"array {array} matches for {k} vs 
> numpy")
> AssertionError: 0 not greater than or equal to 0.002 : array
> sum_normalization matches for ('poisson', 'opencl', 'integrate') vs numpy
> 
> I double checked and this failure is relative to the PoCL
> implemantation used on my i386-chroot. If OpenCL is disabled for the
> tests in debian, this test should pass OK.

Thanks for commenting on this.  Would you be able to push the needed changes
to Salsa (and preferably upload)?

Kind regards
Andreas. 

-- 
http://fam-tille.de



Bug#1018811: Three new test issues preventing upload of patch (Was: pyfai: autopkgtest regression on armel and i386)

2023-01-22 Thread Jerome Kieffer
Hi Andreas,

Thanks for taking care of the packaging of pyFAI. I had a look at what
the logs and apparently you are packaging the version 0.21.3 ... while
I released the verison 2023.1 last week:
https://pypi.org/project/pyfai/

I just checked on the i386-debian sid chroot I have and none of the 3 test you 
found were failing (they are skipped)... but there is another one failing:

==
FAIL: test (pyFAI.test.test_error_model.TestErrorModel.test)
--
Traceback (most recent call last):
  File 
"/tmp/pyFAI/build/lib/python3/dist-packages/pyFAI/test/test_error_model.py", 
line 121, in test
self.assertGreaterEqual(cormap(ref.__getattribute__(array), 
res.__getattribute__(array)), epsilon, f"array {array} matches for {k} vs 
numpy")
AssertionError: 0 not greater than or equal to 0.002 : array
sum_normalization matches for ('poisson', 'opencl', 'integrate') vs numpy

I double checked and this failure is relative to the PoCL
implemantation used on my i386-chroot. If OpenCL is disabled for the
tests in debian, this test should pass OK.

Cheers,

Jerome

On Fri, 20 Jan 2023 22:20:57 +0100
Andreas Tille  wrote:

> Hi Jerome,
> 
> I've applied the suggested patch to relax the tests on 32 bit architectures.
> Unfortunately there are new test suite errors as you can see in Salsa CI[1]:
> 
> 
> ==
> FAIL: test_count_csr 
> (pyFAI.test.test_histogram.TestHistogram2d.test_count_csr)
> Test that the pixel count and the total intensity is conserved
> --
> Traceback (most recent call last):
>   File 
> "/builds/science-team/pyfai/debian/output/source_dir/.pybuild/cpython3_3.11_pyfai/build/pyFAI/test/test_histogram.py",
>  line 339, in test_count_csr
> self.assertTrue(delta == 0, msg="check all pixels were counted")
> AssertionError: False is not true : check all pixels were counted
> ==
> FAIL: test_numpy_vs_cython_vs_csr_2d 
> (pyFAI.test.test_histogram.TestHistogram2d.test_numpy_vs_cython_vs_csr_2d)
> Compare numpy histogram with cython simple implementation
> --
> Traceback (most recent call last):
>   File 
> "/builds/science-team/pyfai/debian/output/source_dir/.pybuild/cpython3_3.11_pyfai/build/pyFAI/test/test_histogram.py",
>  line 373, in test_numpy_vs_cython_vs_csr_2d
> self.assertTrue(delta_max <= self.err_max_cnt, "pixel count difference 
> numpy/csr : max delta=%s" % delta_max)
> AssertionError: False is not true : pixel count difference numpy/csr : max 
> delta=8.0
> ==
> FAIL: test_2d_nosplit (pyFAI.test.test_csr.TestCSR.test_2d_nosplit)
> --
> Traceback (most recent call last):
>   File 
> "/builds/science-team/pyfai/debian/output/source_dir/.pybuild/cpython3_3.11_pyfai/build/pyFAI/test/test_csr.py",
>  line 195, in test_2d_nosplit
> self.assertLess(error.mean(), 1e-3, "img are almost the same")
> AssertionError: 244.15215998872887 not less than 0.001 : img are almost the 
> same
> ==
> 
> Any idea how to fix these?
> 
> Kind regards
>Andreas.
> 
> 
> [1] https://salsa.debian.org/science-team/pyfai/-/jobs/3826387
> 
> -- 
> http://fam-tille.de



Bug#1018811: Three new test issues preventing upload of patch (Was: pyfai: autopkgtest regression on armel and i386)

2023-01-20 Thread Andreas Tille
Hi Jerome,

I've applied the suggested patch to relax the tests on 32 bit architectures.
Unfortunately there are new test suite errors as you can see in Salsa CI[1]:


==
FAIL: test_count_csr (pyFAI.test.test_histogram.TestHistogram2d.test_count_csr)
Test that the pixel count and the total intensity is conserved
--
Traceback (most recent call last):
  File 
"/builds/science-team/pyfai/debian/output/source_dir/.pybuild/cpython3_3.11_pyfai/build/pyFAI/test/test_histogram.py",
 line 339, in test_count_csr
self.assertTrue(delta == 0, msg="check all pixels were counted")
AssertionError: False is not true : check all pixels were counted
==
FAIL: test_numpy_vs_cython_vs_csr_2d 
(pyFAI.test.test_histogram.TestHistogram2d.test_numpy_vs_cython_vs_csr_2d)
Compare numpy histogram with cython simple implementation
--
Traceback (most recent call last):
  File 
"/builds/science-team/pyfai/debian/output/source_dir/.pybuild/cpython3_3.11_pyfai/build/pyFAI/test/test_histogram.py",
 line 373, in test_numpy_vs_cython_vs_csr_2d
self.assertTrue(delta_max <= self.err_max_cnt, "pixel count difference 
numpy/csr : max delta=%s" % delta_max)
AssertionError: False is not true : pixel count difference numpy/csr : max 
delta=8.0
==
FAIL: test_2d_nosplit (pyFAI.test.test_csr.TestCSR.test_2d_nosplit)
--
Traceback (most recent call last):
  File 
"/builds/science-team/pyfai/debian/output/source_dir/.pybuild/cpython3_3.11_pyfai/build/pyFAI/test/test_csr.py",
 line 195, in test_2d_nosplit
self.assertLess(error.mean(), 1e-3, "img are almost the same")
AssertionError: 244.15215998872887 not less than 0.001 : img are almost the same
==

Any idea how to fix these?

Kind regards
   Andreas.


[1] https://salsa.debian.org/science-team/pyfai/-/jobs/3826387

-- 
http://fam-tille.de