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

SparrowCI Report - gh-melezhik-hub-example | [image: melezhik/sparrow:alpine]

  • Summary
  • Pipeline YAML
  • Report
BuildID: 2621
Status: FAIL
Image: melezhik/sparrow:alpine
Worker status: OK
---
Date: 16.01.2023 @ 02:39
Time elapsed: 94 sec
---
SCM: https://github.com/melezhik/hub-example.git
Git sha: 3220b99
Git comment: Update sparrow.yaml
tasks:
  -
    name: main
    language: Raku
    default: true
    code: |
      for config()<tasks><multifetch><stat><> -> \i {
        say "url: {i<url>} - [{i<status>}]";
      }
    depends:
      -
        name: multifetch

  -
    name: multifetch
    language: Raku
    code: |
      if "{cache_root_dir()}/status.OK".IO ~~ :e {
        update_state %( url => config()<url>, status => "OK" );
      } else {
        update_state %( url => config()<url>, status => "FAIL" );
      }
    init: |
      task_run "fetch"
    subtasks:
      -
        name: fetch
        language: Bash
        code: |
          curl -f $(config url) && touch $cache_root_dir/status.OK
          echo $?
    hub:
      language: Raku
      code: |
        update_state %(
          list => [
              config => { url => "https://raku.org" },
              config => { url => "https://raku.land" },
              config => { url => "http://irclogs.raku.org" },
          ],
        );
02:38:50 :: [repository] - index updated from https://sparrowhub.io/repo/api/v1/index
run stage: run
[task run: task.raku - tasks/multifetch-hub]
[dump code: task.raku]
[1] update_state %(
[2]   list => [
[3]       config => { url => "https://raku.org" },
[4]       config => { url => "https://raku.land" },
[5]       config => { url => "http://irclogs.raku.org" },
[6]   ],
[7] );
[8] 
[task stdout]
02:38:55 :: hook exit status: 1
02:38:55 :: hook tasks/multifetch FAILED
[stderr]
02:38:55 :: Undeclared routine:
02:38:55 ::     task_run used at line 1. Did you mean 'task_dir', 'task_var'?
02:38:55 :: 
The spawned command 'docker exec -i sparrow-worker sh -l /var/.sparrowdo/env/multifetch/.sparrowdo/sparrowrun.sh' exited unsuccessfully (exit code: 101, signal: 0)
  in block <unit> at /home/sph/.raku/resources/57C38AFDF922EB0C43584FF5F701A03850B5346F line 13
  in sub MAIN at /home/sph/.raku/bin/sparrowdo line 3
  in block <unit> at /home/sph/.raku/bin/sparrowdo line 1

02:38:20 :: [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
02:38:23 :: [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]
02:38:27 :: tar -xzf source.tar.gz 
some depends jobs failed or timeouted: ${:FAIL(1), :OK(0), :TIMEOUT(0)}
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/sph/.raku/resources/57C38AFDF922EB0C43584FF5F701A03850B5346F line 13
  in sub MAIN at /home/sph/.raku/bin/sparrowdo line 3
  in block <unit> at /home/sph/.raku/bin/sparrowdo line 1