Control: tags -1 + confirmed
Control: reassign -1 dh-octave 1.18.0
Control: retitle -1 dh-octave: No way to set DH_OCTAVE_EXCLUDE_TEST envvar for 
autopkgtest
Control: affects -1 src:octave-linear-algebra

* Adrian Bunk <[email protected]> [2026-09-26 02:12]:

> Source: octave-linear-algebra
> Version: 2.2.4-3
> Severity: serious
>
> https://tracker.debian.org/pkg/octave-linear-algebra
>
> Migration status for octave-linear-algebra (2.2.4-2 to 2.2.4-3): BLOCKED: 
> Rejected/violates migration policy/introduces a regression
> Issues preventing migration:
> ∙ ∙ Autopkgtest for octave-linear-algebra/2.2.4-3: amd64: Regression ♻ 
> (reference ♻), arm64: Regression ♻ (reference ♻), armhf: Regression ♻ 
> (reference ♻), i386: Regression ♻ (reference ♻), ppc64el: Regression ♻ 
> (reference ♻), riscv64: Regression ♻ (reference ♻)
>
> ...
>  98s >>>>> /tmp/autopkgtest.HOS7ki/build.get/src/inst/funm.m
>  98s ***** function b = fsin (a)
>  98s   b = sin (a);
>  98s ***** endfunction
>  98s ***** test
>  98s  mtx = randn (100);
>  98s  assert (funm (mtx, "fsin"), thfm (mtx, "sin"), 1e-9)
>  98s !!!!! test failed
>  98s fsin: function called with too many inputs
>  98s 1 test, 0 passed, 0 known failure, 0 skipped
> ...
>  99s autopkgtest [23:10:48]: @@@@@@@@@@@@@@@@@@@@ summary
>  99s command1             FAIL non-zero exit status 1
>
> This is due to 2.2.4-3 no longer shipping
> /usr/share/octave/packages/linear-algebra-2.2.4/funm.m

The removal of funm.m is intentional. According to the funm documentation:

     Note that a much improved funm.m function has been implemented in Octave
     11.1.0, so funm.m will be removed from the linear-algebra package if that
     is installed in Octave 11+.

At package build time, the tests in funm.m are bypassed by setting the 
DH_OCTAVE_EXCLUDE_TEST environment variable in debian/rules. This variable is 
used by the dh_octave_check command, which in turn is used by 
autodep8/autopktest.

However, autopkgtest ignores this environment variable. Therefore, dh-octave 
must implement an alternative mechanism for excluding unit tests. I am hereby 
reassigning this bug report to dh-octave.

Thanks,

Rafael Laboissière

Reply via email to