BuildID: 3355
Status: FAIL
Image: melezhik/sparrow:debian
Worker status: OK
---
Date: 18.06.2023 @ 14:27
Time elapsed: 201 sec
---
SCM:
https://github.com/libxml-raku/LibXML-raku
Git sha: c7887ed
Git comment: add LibXML::Writer to resolve-links.raku
image:
- melezhik/sparrow:debian
# - melezhik/sparrow:ubuntu
# - melezhik/sparrow:archlinux
tasks:
-
name: main
default: true
language: Raku
code: |
use Text::Table::Simple;
my @columns = ("Rakudo Version", "Status", "Time", "Linux Dist");
my @rows;
my $fail = False;
for config()<tasks><multi-versions><state><list><> -> $i {
@rows.push: [ $i<version>, $i<status>, $i<time>, os() ];
$fail = True unless $i<status> eq "OK";
}
my @table = lol2table(@columns,@rows);
.say for @table;
die "some tests failed" if $fail == True;
depends:
-
name: multi-versions
-
name: multi-versions
language: Raku
config:
list:
# - 2022.06
- 2022.07
code: |
my @state;
for config()<list><> -> $v {
my $s = %( version => $v );
if "{cache_root_dir()}/{$v}_ok".IO ~~ :e {
$s<status> = "OK";
} else {
$s<status> = "FAIL";
}
if "{cache_root_dir()}/{$v}_time".IO ~~ :e {
$s<time> = "{cache_root_dir()}/{$v}_time".IO.slurp();
} else {
$s<time> = "NA";
}
@state.push: $s;
}
update_state %( list => @state );
init: |
for config()<list><> -> $v {
run_task("test", %( version => $v ));
}
subtasks:
-
name: test
language: Bash
init: |
ignore_error
code: |
set -e
echo "Linux version: $os"
curl -sL https://rakudo.org/dl/rakudo/rakudo-moar-$version-01-linux-x86_64-gcc.tar.gz \
-o rakudo-moar-$version-01-linux-x86_64-gcc.tar.gz
tar -xzf rakudo-moar-$version-01-linux-x86_64-gcc.tar.gz
echo "activating rakudo version $version ..."
eval "$(rakudo-moar-$version-01-linux-x86_64-gcc/scripts/set-env.sh)" > /dev/null
which raku
which zef
raku --version
zef --version
cd source/
zef install . --deps-only --test-depends --build-depends --/test --to=home
zef build .
/usr/bin/time -o "${cache_root_dir}/${version}_time" \
zef test . --verbose && touch "${cache_root_dir}/${version}_ok"
depends:
-
name: install-deps
-
name: install-deps
language: Bash
code: |
if test $os = "debian"; then
sudo apt-get install -y libxml2-dev libxslt-dev time
elif test $os = "ubuntu"; then
sudo apt-get install -y libxml2-dev libxslt-dev time
elif test $os = "arch"; then
sudo pacman -S --needed --noconfirm -q libxml2 libxslt time
fi
zef install --/test Text::Table::Simple
[35m14:25:10[0m :: [repository] - index updated from https://sparrowhub.io/repo/api/v1/index
run stage: run
[1;36m[task run: task.bash - tasks/install-deps][0m
[1;36m[dump code: task.bash][0m
[1] if test $os = "debian"; then
[2] sudo apt-get install -y libxml2-dev libxslt-dev time
[3] elif test $os = "ubuntu"; then
[4] sudo apt-get install -y libxml2-dev libxslt-dev time
[5] elif test $os = "arch"; then
[6] sudo pacman -S --needed --noconfirm -q libxml2 libxslt time
[7] fi
[8] zef install --/test Text::Table::Simple
[9]
[1;36m[task stdout][0m
[35m14:25:12[0m :: Reading package lists...
[35m14:25:12[0m :: Building dependency tree...
[35m14:25:12[0m :: Reading state information...
[35m14:25:12[0m :: The following additional packages will be installed:
[35m14:25:12[0m :: icu-devtools libicu-dev libicu67 libxml2 libxslt1.1
[35m14:25:12[0m :: Suggested packages:
[35m14:25:12[0m :: icu-doc pkg-config
[35m14:25:12[0m :: The following NEW packages will be installed:
[35m14:25:12[0m :: icu-devtools libicu-dev libicu67 libxml2 libxml2-dev libxslt1-dev libxslt1.1
[35m14:25:12[0m :: time
[35m14:25:12[0m :: 0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
[35m14:25:12[0m :: Need to get 20.5 MB of archives.
[35m14:25:12[0m :: After this operation, 88.0 MB of additional disk space will be used.
[35m14:25:12[0m :: Get:1 http://deb.debian.org/debian bullseye/main amd64 libicu67 amd64 67.1-7 [8622 kB]
[35m14:25:12[0m :: Get:2 http://deb.debian.org/debian bullseye/main amd64 icu-devtools amd64 67.1-7 [201 kB]
[35m14:25:12[0m :: Get:3 http://deb.debian.org/debian bullseye/main amd64 libicu-dev amd64 67.1-7 [9597 kB]
[35m14:25:13[0m :: Err:4 http://deb.debian.org/debian-security bullseye-security/main amd64 libxml2 amd64 2.9.10+dfsg-6.7+deb11u3
[35m14:25:13[0m :: 404 Not Found [IP: 151.101.210.132 80]
[35m14:25:13[0m :: Err:5 http://deb.debian.org/debian-security bullseye-security/main amd64 libxml2-dev amd64 2.9.10+dfsg-6.7+deb11u3
[35m14:25:13[0m :: 404 Not Found [IP: 151.101.210.132 80]
[35m14:25:13[0m :: Get:6 http://deb.debian.org/debian bullseye/main amd64 libxslt1.1 amd64 1.1.34-4+deb11u1 [240 kB]
[35m14:25:13[0m :: Get:7 http://deb.debian.org/debian bullseye/main amd64 libxslt1-dev amd64 1.1.34-4+deb11u1 [329 kB]
[35m14:25:13[0m :: Get:8 http://deb.debian.org/debian bullseye/main amd64 time amd64 1.9-0.1 [50.8 kB]
[35m14:25:13[0m :: Fetched 19.0 MB in 1s (37.4 MB/s)
[35m14:25:14[0m :: ===> Searching for: Text::Table::Simple
[35m14:25:25[0m :: ===> Installing: Text::Table::Simple:ver<0.1.0>:auth<github:ugexe>
[1;36m[task stderr][0m
[35m14:25:25[0m :: E: Failed to fetch http://deb.debian.org/debian-security/pool/updates/main/libx/libxml2/libxml2_2.9.10%2bdfsg-6.7%2bdeb11u3_amd64.deb 404 Not Found [IP: 151.101.210.132 80]
[35m14:25:25[0m :: E: Failed to fetch http://deb.debian.org/debian-security/pool/updates/main/libx/libxml2/libxml2-dev_2.9.10%2bdfsg-6.7%2bdeb11u3_amd64.deb 404 Not Found [IP: 151.101.210.132 80]
[35m14:25:25[0m :: E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
[35m14:25:25[0m :: ===> Updating fez mirror: https://360.zef.pm/
[35m14:25:25[0m :: ===> Updated fez mirror: https://360.zef.pm/
[35m14:25:25[0m :: ===> Updating rea mirror: https://raw.githubusercontent.com/Raku/REA/main/META.json
[35m14:25:25[0m :: ===> Updated rea mirror: https://raw.githubusercontent.com/Raku/REA/main/META.json
[35m14:24:54[0m :: [repository] - index updated from https://sparrowhub.io/repo/api/v1/index
run stage: run
[1;36m[task run: task.bash - tasks/multi-versions][0m
[1;36m[dump code: task.bash][0m
[1] set -e
[2]
[3] echo "Linux version: $os"
[4]
[5] curl -sL https://rakudo.org/dl/rakudo/rakudo-moar-$version-01-linux-x86_64-gcc.tar.gz \
[6] -o rakudo-moar-$version-01-linux-x86_64-gcc.tar.gz
[7] tar -xzf rakudo-moar-$version-01-linux-x86_64-gcc.tar.gz
[8] echo "activating rakudo version $version ..."
[9] eval "$(rakudo-moar-$version-01-linux-x86_64-gcc/scripts/set-env.sh)" > /dev/null
[10]
[11] which raku
[12] which zef
[13]
[14] raku --version
[15] zef --version
[16]
[17] cd source/
[18]
[19] zef install . --deps-only --test-depends --build-depends --/test --to=home
[20] zef build .
[21]
[22] /usr/bin/time -o "${cache_root_dir}/${version}_time" \
[23] zef test . --verbose && touch "${cache_root_dir}/${version}_ok"
[24]
[1;36m[task stdout][0m
[35m14:25:31[0m :: Linux version: debian
[35m14:25:33[0m :: activating rakudo version 2022.07 ...
[35m14:25:33[0m :: /var/.sparrowdo/env/main/.sparrowdo/rakudo-moar-2022.07-01-linux-x86_64-gcc/bin/raku
[35m14:25:33[0m :: /var/.sparrowdo/env/main/.sparrowdo/rakudo-moar-2022.07-01-linux-x86_64-gcc/share/perl6/site/bin/zef
[35m14:25:33[0m :: Welcome to Rakudo™ v2022.07.
[35m14:25:33[0m :: Implementing the Raku® Programming Language v6.d.
[35m14:25:33[0m :: Built on MoarVM version 2022.07.
[35m14:25:51[0m :: v0.14.5
[35m14:26:05[0m :: ===> Searching for missing dependencies: File::Temp, Method::Also, W3C::DOM:ver<0.0.2+>, XML, OO::Monitors, App::Prove6, LibraryMake
[35m14:26:50[0m :: ===> Searching for missing dependencies: Shell::Command, Getopt::Long:ver<0.3.0+>, Path::Finder:ver<0.4.4+>, Pod::Usage, TAP:ver<0.3.4+>, sigpipe
[35m14:26:50[0m :: ===> Searching for missing dependencies: File::Which, File::Find
[35m14:26:50[0m :: ===> Installing: XML:ver<0.3.3>:auth<zef:raku-community-modules>
[35m14:26:50[0m :: ===> Installing: File::Which:ver<1.0.4>
[35m14:26:50[0m :: ===> Installing: File::Find:ver<0.1.1>
[35m14:26:50[0m :: ===> Installing: Shell::Command
[35m14:26:50[0m :: ===> Installing: LibraryMake:ver<1.0.0>
[35m14:26:50[0m :: ===> Installing: File::Temp:ver<0.0.10>:auth<zef:rbt>
[35m14:26:50[0m :: ===> Installing: W3C::DOM:ver<0.0.3>:auth<zef:dwarring>
[35m14:26:50[0m :: ===> Installing: Getopt::Long:ver<0.4.2>
[35m14:26:50[0m :: ===> Installing: Path::Finder:ver<0.4.5>
[35m14:26:50[0m :: ===> Installing: Pod::Usage:ver<0.0.1>:auth<zef:leont>
[35m14:26:50[0m :: ===> Installing: TAP:ver<0.3.14>
[35m14:26:50[0m :: ===> Installing: sigpipe:ver<0.0.3>:auth<zef:leont>
[35m14:26:50[0m :: ===> Installing: App::Prove6:ver<0.0.17>:auth<cpan:LEONT>
[35m14:26:50[0m :: ===> Installing: Method::Also:ver<0.0.8>:auth<zef:lizmat>
[35m14:26:50[0m :: ===> Installing: OO::Monitors:ver<1.1.1>
[35m14:26:50[0m ::
[35m14:26:50[0m :: 1 bin/ script [prove6] installed to:
[35m14:26:50[0m :: /home/worker/.raku/bin
[35m14:26:52[0m :: ===> Building: LibXML:ver<0.10.3>:auth<zef:dwarring>:api<0.10.0>
[35m14:26:53[0m :: [LibXML] In file included from src/dom.c:10:
[35m14:26:53[0m :: [LibXML] src/dom.h:17:10: fatal error: libxml/tree.h: No such file or directory
[35m14:26:53[0m :: [LibXML] 17 | #include <libxml/tree.h>
[35m14:26:53[0m :: [LibXML] | ^~~~~~~~~~~~~~~
[35m14:26:53[0m :: [LibXML] compilation terminated.
[35m14:26:53[0m :: [LibXML] make: *** [Makefile:26: src/dom.o] Error 1
[35m14:26:53[0m :: [LibXML] The spawned command 'make' exited unsuccessfully (exit code: 2, signal: 0)
[35m14:26:53[0m :: [LibXML] in sub make at /var/.sparrowdo/env/main/.sparrowdo/source/Build.pm6 line 42
[35m14:26:53[0m :: [LibXML] in method build at /var/.sparrowdo/env/main/.sparrowdo/source/Build.pm6 line 49
[35m14:26:53[0m :: [LibXML] in sub MAIN at /var/.sparrowdo/env/main/.sparrowdo/source/Build.pm6 line 56
[35m14:26:53[0m :: [LibXML] in block <unit> at /var/.sparrowdo/env/main/.sparrowdo/source/Build.pm6 line 5
[35m14:26:53[0m :: [LibXML] in block <unit> at -e line 1
[35m14:26:53[0m :: ===> Building [FAIL]: LibXML:ver<0.10.3>:auth<zef:dwarring>:api<0.10.0>
[1;36m[task stderr][0m
[35m14:26:53[0m :: Aborting due to build failure: LibXML:ver<0.10.3>:auth<zef:dwarring>:api<0.10.0> (use --force-build to override)
[1;36m[task run: task.raku - tasks/multi-versions][0m
[1;36m[dump code: task.raku][0m
[1] my @state;
[2] for config()<list><> -> $v {
[3] my $s = %( version => $v );
[4] if "{cache_root_dir()}/{$v}_ok".IO ~~ :e {
[5] $s<status> = "OK";
[6] } else {
[7] $s<status> = "FAIL";
[8] }
[9] if "{cache_root_dir()}/{$v}_time".IO ~~ :e {
[10] $s<time> = "{cache_root_dir()}/{$v}_time".IO.slurp();
[11] } else {
[12] $s<time> = "NA";
[13] }
[14] @state.push: $s;
[15] }
[16] update_state %( list => @state );
[17]
[1;36m[task stdout][0m
[35m14:24:23[0m :: [repository] - index updated from https://sparrowhub.io/repo/api/v1/index
run stage: run
source directory does not yet exist, download source archive from storage
[35m14:24:25[0m :: [repository] - installing pack-unpack, version 0.000001
[1;36m[task run: task.bash - unpack source archive][0m
[1;36m[dump code: task.bash][0m
[1] set -e
[2]
[3] file=$(config file)
[4] dir=$(config dir)
[5]
[6] echo "tar -xzf $file "
[7]
[8] tar -xzf $file
[9]
[10] if test $dir; then
[11] ls -l $dir
[12] fi
[13]
[14]
[1;36m[task stdout][0m
[35m14:24:27[0m :: tar -xzf source.tar.gz
[1;36m[task run: task.raku - tasks/main][0m
[1;36m[dump code: task.raku][0m
[1] use Text::Table::Simple;
[2] my @columns = ("Rakudo Version", "Status", "Time", "Linux Dist");
[3] my @rows;
[4] my $fail = False;
[5] for config()<tasks><multi-versions><state><list><> -> $i {
[6] @rows.push: [ $i<version>, $i<status>, $i<time>, os() ];
[7] $fail = True unless $i<status> eq "OK";
[8] }
[9] my @table = lol2table(@columns,@rows);
[10] .say for @table;
[11] die "some tests failed" if $fail == True;
[12]
[1;36m[task stdout][0m
[35m14:26:58[0m :: O----------------O--------O------O------------O
[35m14:26:58[0m :: | Rakudo Version | Status | Time | Linux Dist |
[35m14:26:58[0m :: O================O========O======O============O
[35m14:26:58[0m :: | 2022.07 | FAIL | NA | debian |
[35m14:26:58[0m :: -----------------------------------------------
[1;36m[task stderr][0m
[35m14:26:58[0m :: some tests failed
[35m14:26:58[0m :: in block <unit> at /var/.sparrowdo/env/main/.sparrowdo/tasks/main/task.raku line 11
[35m14:26:58[0m ::
[35m14:26:58[0m :: task exit status: 1
[35m14:26:58[0m :: task tasks/main FAILED
The spawned command 'docker exec -i sparrow-worker sh -l /var/.sparrowdo/env/main/.sparrowdo/sparrowrun.sh' exited unsuccessfully (exit code: 1, signal: 0)
in block <unit> at /home/sparrow/.rakubrew/versions/moar-2022.12/share/perl6/site/resources/D89191B85489D8D1AA2CA29B23BB54732926E4C8 line 13
in sub MAIN at /home/sparrow/.rakubrew/versions/moar-2022.12/share/perl6/site/bin/sparrowdo line 3
in block <unit> at /home/sparrow/.rakubrew/versions/moar-2022.12/share/perl6/site/bin/sparrowdo line 1