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" },
],
);
[35m02:38:50[0m :: [repository] - index updated from https://sparrowhub.io/repo/api/v1/index
run stage: run
[1;36m[task run: task.raku - tasks/multifetch-hub][0m
[1;36m[dump code: task.raku][0m
[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]
[1;36m[task stdout][0m
[35m02:38:55[0m :: hook exit status: 1
[35m02:38:55[0m :: hook tasks/multifetch FAILED
[1;36m[stderr][0m
[35m02:38:55[0m :: Undeclared routine:
[35m02:38:55[0m :: task_run used at line 1. Did you mean 'task_dir', 'task_var'?
[35m02:38:55[0m ::
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
[35m02:38:20[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
[35m02:38:23[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
[35m02:38:27[0m :: 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