[Debian-pan-maintainers] mccode: CI/CD en route !

Emmanuel FARHI emmanuel.farhi at synchrotron-soleil.fr
Tue Jun 25 16:42:58 BST 2024


Je suis en train de comparer la procédure de build de 'mccode' en local 
et avec le sbuild.

Ca plante en sbuild (depuis salsa), mais ca passe en local depuis un git 
clone.

Il semble que avec le sbuild on a par exemple:

    # Performing mcstas install in packages
    cd BUILD/mcstas && make install DESTDIR=/<<PKGBUILDDIR>>/debian/mcstas
    make[2]: Entering directory '/<<PKGBUILDDIR>>/BUILD/mcstas'
    make[3]: Entering directory '/<<PKGBUILDDIR>>/BUILD/mcstas'
    make[4]: Entering directory '/<<PKGBUILDDIR>>/BUILD/mcstas'
    make[4]: Leaving directory '/<<PKGBUILDDIR>>/BUILD/mcstas'
    [ 50%] Built target mcstas
    make[4]: Entering directory '/<<PKGBUILDDIR>>/BUILD/mcstas'
    make[4]: Leaving directory '/<<PKGBUILDDIR>>/BUILD/mcstas'
    [100%] Built target mcstas-pygen
    make[3]: Leaving directory '/<<PKGBUILDDIR>>/BUILD/mcstas'
    Install the project...
    -- Install configuration: ""
    -- Installing:
    /<<PKGBUILDDIR>>/debian/mcstas/usr/share/mcstas/info/COPYING
    -- Installing: /<<PKGBUILDDIR>>/debian/mcstas/usr/bin/mcstas
    -- Installing: /<<PKGBUILDDIR>>/debian/mcstas/usr/bin/mcstas-pygen
    -- Installing:
    /<<PKGBUILDDIR>>/debian/mcstas/usr/share/mcstas/mcstas-environment
    -- Installing:
    /<<PKGBUILDDIR>>/debian/mcstas/usr/share/mcstas/mcstas-labenv
    -- Installing:
    /<<PKGBUILDDIR>>/debian/mcstas/usr/share/mcstas/mcstas-module
    make[2]: Leaving directory '/<<PKGBUILDDIR>>/BUILD/mcstas'

Et en local manuel debuild -b:

    # Performing mcstas install in packages
    cd BUILD/mcstas && make install
    DESTDIR=/home/experiences/grades/farhie/dev/mccode/debian/mcstas
    make[2] : on entre dans le répertoire
    « /home/experiences/grades/farhie/dev/mccode/BUILD/mcstas »
    make[3] : on entre dans le répertoire
    « /home/experiences/grades/farhie/dev/mccode/BUILD/mcstas »
    make[4] : on entre dans le répertoire
    « /home/experiences/grades/farhie/dev/mccode/BUILD/mcstas »
    make[4] : on quitte le répertoire
    « /home/experiences/grades/farhie/dev/mccode/BUILD/mcstas »
    [ 50%] Built target mcstas
    make[4] : on entre dans le répertoire
    « /home/experiences/grades/farhie/dev/mccode/BUILD/mcstas »
    make[4] : on quitte le répertoire
    « /home/experiences/grades/farhie/dev/mccode/BUILD/mcstas »
    [100%] Built target mcstas-pygen
    make[3] : on quitte le répertoire
    « /home/experiences/grades/farhie/dev/mccode/BUILD/mcstas »
    Install the project...
    -- Install configuration: ""
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/info/COPYING
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/adapt_tree-lib.h
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/interoff-lib.h
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/interpolation-lib.h
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/mccode-r.h
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/metadata-r.h
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/opencl-lib.h
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/r-interoff-lib.h
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/read_table-lib.h
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/adapt_tree-lib.c
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/interoff-lib.c
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/interpolation-lib.c
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/mccode-r.c
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/mccode_main.c
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/metadata-r.c
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/opencl-lib.c
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/r-interoff-lib.c
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/read_table-lib.c
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/general.h
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/intersection.h
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/mcstas-r.h
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/pol-lib.h
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/ref-lib.h
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/vitess-lib.h
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/general.c
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/intersection.c
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/mcstas-r.c
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/pol-lib.c
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/ref-lib.c
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/resources/share/vitess-lib.c
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/bin/mcstas
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/bin/mcstas-pygen
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/mcstas-environment
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/mcstas-labenv
    -- Installing:
    /home/experiences/grades/farhie/dev/mccode/debian/mcstas/usr/share/mcstas/mcstas-module
    make[2] : on quitte le répertoire
    « /home/experiences/grades/farhie/dev/mccode/BUILD/mcstas »

Donc on a des fichiers qui ne sont pas installé avec le sbuild... Et ca 
se reproduit pour d'autres parties.

Je ne sais pas ce qu'il se passe là !

Emmanuel.

Le 25/06/2024 à 09:50, PICCA Frederic-Emmanuel a écrit :
> En fait il faut configurer sbuild pour entrer dans le chroot en cas de failure et à ce moment là il est possible d'explorer tout le build :)
>
>
> dgit --gbp sbuild --build-failed-commands '%SBUILD_SHELL'
-- 
signature
/ ___|__/\_| |   | ____|_ _| |      FARHI Emmanuel
\___ \\ | |   |  _|  | || |      Div Exp/Data Reduction and Analysis Team
  ___) /_  _| |___| |___ | || |___   Tel : +33 (1) 69 35 96 04 
<callto:+33%20%281%29%2069%2035%2096%2004>
|____/  \/ |_____|_____|___|_____|  Saint-Aubin BP 48 - 91192 GIF/YVETTE 
CEDEX
SYNCHROTRON http://www.synchrotron-soleil.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-pan-maintainers/attachments/20240625/2b6fda92/attachment-0001.htm>


More information about the Debian-pan-maintainers mailing list