BuildID: 1882
Status: FAIL
Image: melezhik/sparrow:debian
Worker status: OK
---
Date: 22.11.2022 @ 17:11
Time elapsed: 400 sec
---
SCM:
https://github.com/melezhik/sparrowci-sandbox.git
Git sha: 15faf9a
Git comment: use echo y to confirm. ci: fez upload
image:
- melezhik/sparrow:debian
secrets:
- FEZ_TOKEN
tasks:
- name: fez-upload
default: true
language: Raku
init: |
run_task "test";
if config()<tasks><git-commit><state><comment> ~~ /'ci: fez upload'/ {
run_task "upload"
}
subtasks:
-
name: test
language: Bash
code: |
set -e
cd source
zef test .
-
name: upload
language: Bash
code: |
set -e
cat << HERE > ~/.fez-config.json
{"groups":[],"un":"melezhik","key":"${FEZ_TOKEN}"}
HERE
cd source/
zef install --/test fez
fez checkbuild
tom --clean
echo y | fez upload
depends:
-
name: git-commit
- name: git-commit
plugin: git-commit-data
config:
dir: source
[35m17:05:53[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
[35m17:05:59[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
[35m17:06:04[0m :: tar -xzf source.tar.gz
[1;36m[task run: task.bash - tasks/fez-upload][0m
[1;36m[dump code: task.bash][0m
[1] set -e
[2] cd source
[3] zef test .
[4]
[1;36m[task stdout][0m
[35m17:06:52[0m :: ===> Testing: SparrowCI-SandBox:ver<0.0.1>:auth<zef:melezhik>
[35m17:06:52[0m :: ===> Testing [OK] for SparrowCI-SandBox:ver<0.0.1>:auth<zef:melezhik>
[1;36m[task run: task.bash - tasks/fez-upload][0m
[1;36m[dump code: task.bash][0m
[1] set -e
[2] cat << HERE > ~/.fez-config.json
[3] {"groups":[],"un":"melezhik","key":"${FEZ_TOKEN}"}
[4] HERE
[5] cd source/
[6] zef install --/test fez
[7] fez checkbuild
[8] tom --clean
[9] echo y | fez upload
[10]
[1;36m[task stdout][0m
[35m17:06:54[0m :: ===> Searching for: fez
[35m17:07:16[0m :: ===> Installing: fez:ver<38>:auth<zef:tony-o>:api<0>
[35m17:07:16[0m ::
[35m17:07:16[0m :: 1 bin/ script [fez] installed to:
[35m17:07:16[0m :: /home/worker/.raku/bin
[35m17:07:17[0m :: >>= Inspecting ./META6.json
[35m17:07:17[0m :: >>= meta<provides> looks OK
[35m17:07:17[0m :: >>= meta<resources> looks OK
[35m17:07:17[0m :: >>= SparrowCI-SandBox:ver<0.0.1>:auth<zef:melezhik> looks OK
[35m17:07:20[0m :: cleaning /var/.sparrowdo/env/fez-upload/.sparrowdo/source/.tom/.cache ...
Killed
The spawned command 'docker exec -i sparrow-worker sh -l /var/.sparrowdo/env/fez-upload/.sparrowdo/sparrowrun.sh' exited unsuccessfully (exit code: 137, 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
[35m17:06:35[0m :: [repository] - index updated from https://sparrowhub.io/repo/api/v1/index
run stage: run
[35m17:06:39[0m :: [repository] - installing git-commit-data, version 0.000004
[1;36m[task run: task.bash - git-commit][0m
[1;36m[dump code: task.bash][0m
[1] cd $(config dir)
[2]
[3] echo "get commit data from $(pwd) ..."
[4]
[5] git show -s --format=%h > $cache_root_dir/sha.txt
[6] git show -s --format=%s > $cache_root_dir/comment.txt
[7]
[1;36m[task stdout][0m
[35m17:06:44[0m :: get commit data from /var/.sparrowdo/env/fez-upload/.sparrowdo/source ...
[1;36m[task run: task.pl6 - git-commit][0m
[1;36m[dump code: task.pl6][0m
[1] say "git commit: ", "{cache_root_dir()}/sha.txt".IO.slurp.chomp;
[2] say "git comment: ", "{cache_root_dir()}/comment.txt".IO.slurp.chomp;
[3]
[4]
[5] update_state({
[6] sha => "{cache_root_dir()}/sha.txt".IO.slurp.chomp,
[7] comment => "{cache_root_dir()}/comment.txt".IO.slurp.chomp
[8] });
[9]
[1;36m[task stdout][0m
[35m17:06:45[0m :: git commit: 15faf9a
[35m17:06:45[0m :: git comment: use echo y to confirm. ci: fez upload