[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How can I successfully prevent debci from running on s390x for r-cran-stars



On Thu, Jan 26, 2023 at 07:53:03PM +0100, Andreas Tille wrote:
> Hi Paul,
> 
> Am Thu, Jan 26, 2023 at 08:48:31AM +0100 schrieb Paul Gevers:
> > > in debian/tests/control for r-cran-stars[1].  Unfortunately debci is running on
> > > s390x anyway and considers it a regression[2]:
> > 
> > Well, the log has this:
> > run-unit-test        SKIP Test declares architecture as not supported: s390x
> > 
> > So that works as intended.
> 
> Thanks for confirming.
>  
> > > The following packages have unmet dependencies:
> > >   r-cran-stars : Depends: r-cran-lwgeom but it is not installable
> > > E: Unable to correct problems, you have held broken packages.
> > 
> > This is in the `pkg-r-autopkgtest` test, which doesn't have the
> > `Architecture` field set. It's run because you have `Testsuite:
> > autopkgtest-pkg-r` in your d/control [3]. You'll need to tell autodep8 to
> > also skip that test on s390x, see `autodep8 (1)` [4].
> 
> Thanks a lot for the clarification.  I've thought I would have implemented
> your hints in debian/tests/autopkgtest-pkg-r.conf[5] but it seems that's
> not all I need to do here since the debci failure on s390x persists[6].

You can check the results of the configuartion before uploading by
running autodep8 on the source:

----------------8<----------------8<----------------8<-----------------
r-cran-stars (master) $ autodep8
Tests: run-unit-test
Depends: @, r-cran-testthat,
            r-cran-spacetime,
            r-cran-ncmeta,
            r-cran-raster,
            r-cran-pcict,
            r-cran-ggplot2,
            r-cran-lwgeom,
            r-cran-ncdfgeom,
            r-cran-spatstat (>= 2.0),
            r-cran-spatstat.geom,
            r-cran-cubelyr,
            r-cran-rgdal,
            r-cran-terra
Restrictions: allow-stderr, skip-not-installable
Architecture: !s390x


W: debian/tests/autopkgtest-pkg-r.conf: invalid configuration line: extra_restrictions: skip-not-installable (ignored)
W: debian/tests/autopkgtest-pkg-r.conf: invalid configuration line: architecture: !s390x (ignored)
Test-Command: /usr/share/dh-r/pkg-r-autopkgtest
Depends: @, r-cran-cairo,r-cran-cairo-dbgsym,r-cran-pcict,r-cran-pcict-dbgsym,r-cran-rnetcdf,r-cran-rnetcdf-dbgsym,r-cran-clue,r-cran-clue-dbgsym,r-cran-covr,r-cran-covr-dbgsym,r-cran-cubelyr,r-cran-digest,r-cran-digest-dbgsym,r-cran-dplyr,r-cran-dplyr-dbgsym,r-cran-fnn,r-cran-fnn-dbgsym,r-cran-future.apply,r-cran-ggforce,r-cran-ggforce-dbgsym,r-cran-ggplot2,r-cran-ggthemes,r-cran-gstat,r-cran-gstat-dbgsym,r-cran-httr,r-cran-jsonlite,r-cran-jsonlite-dbgsym,r-cran-knitr,r-cran-maps,r-cran-maps-dbgsym,r-cran-mapdata,r-cran-ncdfgeom,r-cran-ncmeta,r-cran-pbapply,r-cran-plm,r-cran-randomforest,r-cran-randomforest-dbgsym,r-cran-raster,r-cran-raster-dbgsym,r-cran-rgdal,r-cran-rgdal-dbgsym,r-cran-rmarkdown,r-cran-sp,r-cran-sp-dbgsym,r-cran-spacetime,r-cran-spatstat,r-cran-spatstat.core,r-cran-spatstat.core-dbgsym,r-cran-spatstat.data,r-cran-spatstat.explore,r-cran-spatstat.explore-dbgsym,r-cran-spatstat.geom,r-cran-spatstat.geom-dbgsym,r-cran-spatstat.linnet,r-cran-spatstat.linnet-dbgsym,r-cran-spatstat.model,r-cran-spatstat.model-dbgsym,r-cran-spatstat.random,r-cran-spatstat.random-dbgsym,r-cran-spatstat.sparse,r-cran-spatstat.sparse-dbgsym,r-cran-spatstat.utils,r-cran-spatstat.utils-dbgsym,r-cran-spatstat.geom,r-cran-spatstat.geom-dbgsym,r-cran-terra,r-cran-terra-dbgsym,r-cran-testthat,r-cran-testthat-dbgsym,r-cran-tidyr,r-cran-tidyr-dbgsym,r-cran-viridis,r-cran-xts,r-cran-xts-dbgsym,r-cran-zoo,r-cran-zoo-dbgsym, pkg-r-autopkgtest,
Restrictions: allow-stderr,
Features: test-name=pkg-r-autopkgtest
----------------8<----------------8<----------------8<-----------------

You are using the wrong syntax. You want:

diff --git a/debian/tests/autopkgtest-pkg-r.conf b/debian/tests/autopkgtest-pkg-r.conf
index c327438..ec4e90a 100644
--- a/debian/tests/autopkgtest-pkg-r.conf
+++ b/debian/tests/autopkgtest-pkg-r.conf
@@ -1,2 +1,2 @@
-extra_restrictions: skip-not-installable
-architecture: !s390x
+extra_restrictions = skip-not-installable
+architecture = !s390x

Attachment: signature.asc
Description: PGP signature


Reply to: