Home Quick start All builds News Donations
More
Log In
Light Theme Docs
Workers

SparrowCI Report - gh-melezhik-Raku-DateTime-Grammar | [image: melezhik/sparrow:alpine]

  • Summary
  • Pipeline YAML
  • Report
BuildID: 2931
Status: OK
Image: melezhik/sparrow:alpine
Worker status: OK
---
Date: 08.02.2023 @ 21:04
Time elapsed: 148 sec
---
SCM: https://github.com/melezhik/Raku-DateTime-Grammar.git
Git sha: 0bd2d5c
Git comment: Update sparrow.yaml
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.04
        #- 2022.06
        - 2022.07
        - 2022.12
    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
          rakubrew download moar-$version
          rakubrew switch moar-$version
          cd source/
          zef install --/test --deps-only --to=home .
          /usr/bin/time -o "${cache_root_dir}/${version}_time" \
          zef test . && touch "${cache_root_dir}/${version}_ok"
    depends:
      -
        name: rakubrew-install
  -
    name: rakubrew-install
    language: Bash
    code: |
      set -e
      curl -sf https://rakubrew.org/perl/rakubrew -o rakubrew
      sudo mv rakubrew /usr/local/bin
      sudo chmod a+x /usr/local/bin/rakubrew
      rakubrew mode shim
      zef install --/test Text::Table::Simple
      sudo apk add time  --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/
21:03:59 :: [repository] - index updated from https://sparrowhub.io/repo/api/v1/index
run stage: run
[task run: task.bash - tasks/rakubrew-install]
[dump code: task.bash]
[1] set -e
[2] curl -sf https://rakubrew.org/perl/rakubrew -o rakubrew
[3] sudo mv rakubrew /usr/local/bin
[4] sudo chmod a+x /usr/local/bin/rakubrew
[5] rakubrew mode shim
[6] zef install --/test Text::Table::Simple
[7] sudo apk add time  --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/
[8] 
[task stdout]
21:04:03 :: Updating shims
21:04:04 :: ===> Searching for: Text::Table::Simple
21:04:13 :: ===> Installing: Text::Table::Simple:ver<0.1.0>:auth<github:ugexe>
21:04:13 :: fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
21:04:13 :: fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
21:04:13 :: fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz
21:04:13 :: fetch https://dl.cloudsmith.io/public/nxadm-pkgs/rakudo-pkg/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
21:04:14 :: (1/1) Installing time (1.9-r1)
21:04:14 :: Executing busybox-1.35.0-r17.trigger
21:04:14 :: OK: 710 MiB in 61 packages
[task stderr]
21:04:14 :: ===> Updating fez mirror: https://360.zef.pm/
21:04:14 :: ===> Updated fez mirror: https://360.zef.pm/
21:04:14 :: ===> Updating rea mirror: https://raw.githubusercontent.com/Raku/REA/main/META.json
21:04:14 :: ===> Updated rea mirror: https://raw.githubusercontent.com/Raku/REA/main/META.json
21:03:32 :: [repository] - index updated from https://sparrowhub.io/repo/api/v1/index
run stage: run
[task run: task.bash - tasks/multi-versions]
[dump code: task.bash]
[1] set -e
[2] rakubrew download moar-$version
[3] rakubrew switch moar-$version
[4] cd source/
[5] zef install --/test --deps-only --to=home .
[6] /usr/bin/time -o "${cache_root_dir}/${version}_time" \
[7] zef test . && touch "${cache_root_dir}/${version}_ok"
[8] 
[task stdout]
21:04:20 :: Downloading https://rakudo.org/dl/rakudo/rakudo-moar-2022.07-01-linux-x86_64-gcc.tar.gz
21:04:20 :: Extracting
21:04:21 :: Updating shims
21:04:21 :: Switching to moar-2022.07
21:04:21 :: Done, moar-2022.07 installed
21:04:21 :: Switching to moar-2022.07
21:04:24 :: ===> Testing: DateTime::Grammar:ver<0.1.1>:auth<zef:antononcube>:api<1>
21:04:27 :: ===> Testing [OK] for DateTime::Grammar:ver<0.1.1>:auth<zef:antononcube>:api<1>
[task stderr]
21:04:27 :: All candidates are currently installed
[task run: task.bash - tasks/multi-versions]
[dump code: task.bash]
[1] set -e
[2] rakubrew download moar-$version
[3] rakubrew switch moar-$version
[4] cd source/
[5] zef install --/test --deps-only --to=home .
[6] /usr/bin/time -o "${cache_root_dir}/${version}_time" \
[7] zef test . && touch "${cache_root_dir}/${version}_ok"
[8] 
[task stdout]
21:04:28 :: Downloading https://rakudo.org/dl/rakudo/rakudo-moar-2022.12-01-linux-x86_64-gcc.tar.gz
21:04:29 :: Extracting
21:04:30 :: Updating shims
21:04:30 :: Done, moar-2022.12 installed
21:04:30 :: Switching to moar-2022.12
21:04:32 :: ===> Testing: DateTime::Grammar:ver<0.1.1>:auth<zef:antononcube>:api<1>
21:04:34 :: ===> Testing [OK] for DateTime::Grammar:ver<0.1.1>:auth<zef:antononcube>:api<1>
[task stderr]
21:04:34 :: All candidates are currently installed
[task run: task.raku - tasks/multi-versions]
[dump code: task.raku]
[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] 
[task stdout]
21:03:01 :: [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
21:03:03 :: [repository] - installing pack-unpack, version 0.000001
[task run: task.bash - unpack source archive]
[dump code: task.bash]
[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] 
[task stdout]
21:03:05 :: tar -xzf source.tar.gz 
[task run: task.raku - tasks/main]
[dump code: task.raku]
[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] 
[task stdout]
21:04:41 :: O----------------O--------O-----------------------------------------------------------------------------------O------------O
21:04:41 :: | Rakudo Version | Status | Time                                                                              | Linux Dist |
21:04:41 :: O================O========O===================================================================================O============O
21:04:41 :: | 2022.07        | OK     | 7.01user 0.65system 0:04.39elapsed 174%CPU (0avgtext+0avgdata 275412maxresident)k | alpine     |
21:04:41 :: |                |        | 0inputs+1816outputs (0major+89243minor)pagefaults 0swaps                          |            |
21:04:41 :: | 2022.12        | OK     | 4.04user 0.43system 0:02.64elapsed 169%CPU (0avgtext+0avgdata 273380maxresident)k | alpine     |
21:04:41 :: |                |        | 0inputs+0outputs (0major+65061minor)pagefaults 0swaps                             |            |
21:04:41 :: ----------------------------------------------------------------------------------------------------------------------------