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

SparrowCI Report - git-melezhik-http-tiny.git | [image: melezhik/sparrow:alpine]

  • Summary
  • Pipeline YAML
  • Report
BuildID: 2893
Status: OK
Image: melezhik/sparrow:alpine
Worker status: OK
---
Date: 07.02.2023 @ 21:17
Time elapsed: 106 sec
---
SCM: https://gitlab.com/melezhik/http-tiny.git
Git sha: a7bd556
Git comment: Update 2 files
tasks:
  -
    name: zef-build
    language: Bash
    default: true
    code: |
      set -e
      cd source/
      zef install --deps-only --test-depends --build-depends --/test .
      zef test .
    followup:
      -
        name: good-doc
  -
    name: good-doc
    plugin: good-doc
    config:
      path: source/README.md
21:16:12 :: [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:16:15 :: [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:16:17 :: tar -xzf source.tar.gz 
[task run: task.bash - tasks/zef-build]
[dump code: task.bash]
[1] set -e
[2] cd source/
[3] zef install --deps-only --test-depends --build-depends --/test .
[4] zef test .
[5] 
[task stdout]
21:16:20 :: ===> Testing: HTTP::Tiny:ver<0.2.5>:auth<zef:jjatria>
21:16:30 :: ===> Testing [OK] for HTTP::Tiny:ver<0.2.5>:auth<zef:jjatria>
[task stderr]
21:16:30 :: All candidates are currently installed
21:17:05 :: [repository] - index updated from https://sparrowhub.io/repo/api/v1/index
run stage: run
21:17:07 :: [repository] - installing good-doc, version 0.000014
[task run: task.bash - good-doc]
[dump code: task.bash]
[1] set -e
[2] 
[3] cd $dir
[4] 
[5] cat $file
[6] 
[7] rakudo_path=$(config rakudo_path)
[8] 
[9] if ! test -z $rakudo_path; then
[10]   echo "Using rakudo from $rakudo_path:"
[11]   eval "$($rakudo_path/scripts/set-env.sh --quiet)"
[12]   raku --version
[13] fi
[14] 
[15] echo "run raku -I lib $file ..."
[16] 
[17] raku -I lib $file || echo "warn: good_doc failed"
[18] 
[task stdout]
21:17:09 :: 
21:17:09 :: use HTTP::Tiny;
21:17:09 :: 
21:17:09 :: my $response = HTTP::Tiny.new.get: 'http://httpbin.org/get';
21:17:09 :: 
21:17:09 :: die "Failed!\n" unless $response<success>;
21:17:09 :: 
21:17:09 :: say "$response<status> $response<reason>";
21:17:09 :: # OUTPUT:
21:17:09 :: # 200 OK
21:17:09 :: 
21:17:09 :: for $response<headers>.kv -> $key, $v {
21:17:09 ::     for $v.List -> $value {
21:17:09 ::         say "$key: $value";
21:17:09 ::     }
21:17:09 :: }
21:17:09 :: # OUTPUT:
21:17:09 :: # content-type: application/json
21:17:09 :: # date: Fri, 09 Oct 2020 21:49:38 GMT
21:17:09 :: # connection: close
21:17:09 :: # content-length: 230
21:17:09 :: # server: gunicorn/19.9.0
21:17:09 :: # access-control-allow-origin: *
21:17:09 :: # access-control-allow-credentials: true
21:17:09 :: 
21:17:09 :: print $response<content>.decode if $response<content>;
21:17:09 :: # OUTPUT:
21:17:09 :: # {
21:17:09 :: #   "args": {},
21:17:09 :: #   "headers": {
21:17:09 :: #     "Host": "httpbin.org",
21:17:09 :: #     "User-Agent": "HTTP-Tiny",
21:17:09 :: #     "X-Amzn-Trace-Id": "..."
21:17:09 :: #   },
21:17:09 :: #   "origin": "...",
21:17:09 :: #   "url": "http://httpbin.org/get"
21:17:09 :: # }
21:17:09 :: run raku -I lib /home/worker/.sparrow6/tmp/1796/code.raku ...
21:17:13 :: 200 OK
21:17:13 :: content-type: application/json
21:17:13 :: access-control-allow-origin: *
21:17:13 :: connection: keep-alive
21:17:13 :: content-length: 238
21:17:13 :: date: Tue, 07 Feb 2023 21:17:13 GMT
21:17:13 :: server: gunicorn/19.9.0
21:17:13 :: access-control-allow-credentials: true
21:17:13 :: {
21:17:13 ::   "args": {}, 
21:17:13 ::   "headers": {
21:17:13 ::     "Host": "httpbin.org", 
21:17:13 ::     "User-Agent": "HTTP::Tiny/* Raku", 
21:17:13 ::     "X-Amzn-Trace-Id": "Root=1-63e2bfd9-0df913a747027bea60f03468"
21:17:13 ::   }, 
21:17:13 ::   "origin": "5.161.144.202", 
21:17:13 ::   "url": "http://httpbin.org/get"
21:17:13 :: }