[Pkg-javascript-devel] Archive rebuilds as a service

Xavier yadd at debian.org
Tue Oct 13 17:13:27 BST 2020


Le 13/10/2020 à 17:30, Xavier a écrit :
> Le 13/10/2020 à 17:17, Lucas Nussbaum a écrit :
>> Hi,
>>
>> FYI:
>> I'm able to run archive rebuilds on a quite regular basis. I do that to
>> find (and file) FTBFS bugs, but it's also possible to test candidate
>> changes in Debian (for example, new versions of compilers, interpreters,
>> or other packages that are common build-depends).
>>
>> If that's useful for you or your team, please get in touch with me.
> 
> Hi,
> 
> I think this is very interesting for JS Team
> 
>> I'll ask you to provide:
>>
>> 1) a script that customizes a chroot. Examples are available at:
>> https://salsa.debian.org/lucas/collab-qa-tools/-/tree/master/modes
> 
> I think we don't need anything special
> 
>> 2) a list of source packages to test-build. (if there are many of them
>> and if it's not trivial to determine the exact set of packages to
>> test-build, building all of unstable is of course possible)
> 
> At least, packages to test are all that build-depends on a JS builder
> like node-babel7, node-buble, grunt, gulp, rollup or webpack

Here is a little script to find this list (240 packages)

  #!/usr/bin/perl
  use strict;
  use Dpkg::IPC;
  our @LIST = (
    'node-rollup', 'node-babel7', 'node-buble', 'grunt',
    'node-gulp',   'node-webpack', 'node-gyp',
  );
  my %res;
  foreach my $builder (@LIST) {
     my ($out);
     spawn(
        exec            => [ 'reverse-depends', '-b', "src:$builder" ],
        error_to_string => \$out,
        wait_child      => 1,
        no_check        => 1,
     );
     $out =~ s/Reverse-Test.*?\n(\S|$)/$1/sg;
     my @pkgs = ( $out =~ /\*\s+(\S+)/g );
     $res{$_} = 1 foreach (@pkgs);
  }
  {
     local $, = "\n";
     print( sort keys %res );
  }
  print "\n";

>> I usually factor a few of those rebuilds together, so you might have to
>> wait a few weeks. There's some manual process involved, so please also
>> provide a small explanation of why that's useful.
> 
> Many thanks!
> 
> Cheers,
> Xavier
> 



More information about the Pkg-javascript-devel mailing list