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

SparrowCI Report - gh-FCO-Red | [image: melezhik/sparrow:alpine]

  • Summary
  • Pipeline YAML
  • Report
BuildID: 2260
Status: FAIL
Image: melezhik/sparrow:alpine
Worker status: OK
---
Date: 21.12.2022 @ 01:28
Time elapsed: 725 sec
---
SCM: https://github.com/FCO/Red.git
Git sha: b268ea9
Git comment: Fix typos
tasks:
  -
    language: Bash
    name: zef_test
    default: true
    code: |
      set -e
      sudo apk add --no-cache sqlite-libs sqlite-dev
      export RED_DATABASE="Pg host=localhost port=5432 user=testuser password=testpass dbname=redtest"
      cd source/
      raku --version
      zef install . --deps-only --test-depends --build-depends --/test .
      zef test . --verbose
    depends:
      -
        name: install_pg_server 
  -
    name: install_pg_server
    plugin: sparkyci-service-postgresql
    config:
      db_name: redtest
      db_user: testuser
      db_pass: testpass
01:17:29 :: [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
01:17:33 :: [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]
01:17:36 :: tar -xzf source.tar.gz 
[task run: task.bash - tasks/zef_test]
[dump code: task.bash]
[1] set -e
[2] sudo apk add --no-cache sqlite-libs sqlite-dev
[3] export RED_DATABASE="Pg host=localhost port=5432 user=testuser password=testpass dbname=redtest"
[4] cd source/
[5] raku --version
[6] zef install . --deps-only --test-depends --build-depends --/test .
[7] zef test . --verbose
[8] 
[task stdout]
01:18:13 :: fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
01:18:13 :: fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz
01:18:13 :: fetch https://dl.cloudsmith.io/public/nxadm-pkgs/rakudo-pkg/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
01:18:13 :: (1/2) Installing sqlite-libs (3.38.5-r0)
01:18:13 :: (2/2) Installing sqlite-dev (3.38.5-r0)
01:18:14 :: OK: 741 MiB in 74 packages
01:18:14 :: Welcome to Rakudo™ v2022.07.
01:18:14 :: Implementing the Raku® Programming Language v6.d.
01:18:14 :: Built on MoarVM version 2022.07.
01:18:20 :: ===> Searching for missing dependencies: DBIish, DB::Pg, UUID, Test::META, App::RaCoCo
01:21:14 :: ===> Searching for missing dependencies: NativeLibs:ver<0.0.7+>:auth<github:salortiz>, LibUUID, Test::When, NativeHelpers::Blob, NativeLibs:ver<0.0.9+>:auth<github:salortiz>, NativeCall::TypeDiag, META6:ver<0.0.24+>, URI, License::SPDX, App::Prove6
01:21:14 :: ===> Searching for missing dependencies: JSON::Class:ver<0.0.14+>, JSON::Class:ver<0.0.15+>, JSON::Name, File::Temp, Getopt::Long:ver<0.3.0+>, Path::Finder:ver<0.4.4+>, Pod::Usage, TAP:ver<0.3.4+>, sigpipe
01:21:14 :: ===> Searching for missing dependencies: JSON::OptIn, JSON::Marshal:ver<0.0.23+>, JSON::Unmarshal:ver<0.08+>
01:21:14 :: ===> Installing: NativeLibs:ver<0.0.9>:auth<github:salortiz>
01:21:14 :: ===> Installing: Test::When:ver<1.001009>:auth<zef:raku-community-modules>
01:21:14 :: ===> Installing: JSON::OptIn:ver<0.0.2>:auth<zef:jonathanstowe>
01:21:14 :: ===> Installing: JSON::Name:ver<0.0.7>:auth<zef:jonathanstowe>:api<1.0>
01:21:14 :: ===> Installing: JSON::Marshal:ver<0.0.24>:auth<zef:jonathanstowe>:api<1.0>
01:21:14 :: ===> Installing: JSON::Unmarshal:ver<0.11>:auth<zef:raku-community-modules>
01:21:14 :: ===> Installing: JSON::Class:ver<0.0.19>:auth<zef:jonathanstowe>:api<1.0>
01:21:14 :: ===> Installing: META6:ver<0.0.29>:auth<zef:jonathanstowe>:api<1.0>
01:21:14 :: ===> Installing: URI:ver<0.3.6>:auth<zef:raku-community-modules>
01:21:14 :: ===> Installing: License::SPDX:ver<3.19.0>:auth<zef:jonathanstowe>:api<1.0>
01:21:14 :: ===> Installing: Test::META:ver<0.0.19>:auth<zef:jonathanstowe>:api<1.0>
01:21:14 :: ===> Installing: LibUUID:ver<0.5>:auth<github:CurtTilmes>
01:21:14 :: ===> Installing: DB::Pg:ver<1.1>:auth<github:CurtTilmes>:api<1>
01:21:14 :: ===> Installing: NativeHelpers::Blob:ver<0.1.12>:auth<github:salortiz>
01:21:14 :: ===> Installing: File::Temp:ver<0.0.10>:auth<zef:rbt>
01:21:14 :: ===> Installing: NativeCall::TypeDiag
01:21:14 :: ===> Installing: DBIish:ver<0.6.6>:auth<zef:raku-community-modules>:api<1>
01:21:14 :: ===> Installing: Getopt::Long:ver<0.4.1>
01:21:14 :: ===> Installing: Path::Finder:ver<0.4.5>
01:21:14 :: ===> Installing: Pod::Usage:ver<0.0.1>:auth<zef:leont>
01:21:14 :: ===> Installing: TAP:ver<0.3.8>
01:21:14 :: ===> Installing: sigpipe:ver<0.0.3>:auth<zef:leont>
01:21:14 :: ===> Installing: App::Prove6:ver<0.0.17>:auth<cpan:LEONT>
01:21:14 :: ===> Installing: App::RaCoCo:ver<1.6.0>:auth<zef:atroxaper>:api<1>
01:21:14 :: ===> Installing: UUID:ver<1.0.0>
01:21:14 :: 
01:21:14 :: 2 bin/ scripts [prove6 racoco] installed to:
01:21:14 :: /home/worker/.raku/bin
01:21:16 :: ===> Testing: Red:ver<0.1.66>:auth<zef:FCO>:api<2>
01:28:42 :: [Red] t/00-meta.t ........................... ok
01:28:42 :: [Red] t/02-tdd.t ............................ skipped
01:28:42 :: [Red] t/03-sqlite.t ......................... skipped
01:28:42 :: [Red] t/04-blog.t ........................... ok
01:28:42 :: [Red] t/05-ticket.t ......................... ok
01:28:42 :: [Red] t/06-better-map.t ..................... skipped
01:28:42 :: [Red] t/07-optimizer.t ...................... ok
01:28:42 :: [Red] t/08-best-tree.t ...................... ok
01:28:42 :: [Red] t/09-alternate-relation.t ............. ok
01:28:42 :: [Red] t/10-alternate-relation-modules.t ..... ok
01:28:42 :: [Red] t/11-join.t ........................... ok
01:28:42 :: [Red] t/12-types.t .......................... ok
01:28:42 :: [Red] t/13-roles.t .......................... ok
01:28:42 :: [Red] t/14-result-seq-update.t .............. ok
01:28:42 :: [Red] t/15-union.t .......................... ok
01:28:42 :: [Red] t/16-result-seq-bool.t ................ ok
01:28:42 :: [Red] t/17-create-related-pars.t ............ ok
01:28:42 :: [Red] t/18-pp.t ............................. ok
01:28:42 :: [Red] t/19-phasers.t ........................ ok
01:28:42 :: [Red] t/20-in-sql.t ......................... ok
01:28:42 :: [Red] t/21-new-with-id.t .................... ok
01:28:42 :: [Red] t/22-red-do.t ......................... ok
01:28:42 :: [Red] t/23-edit-id.t ........................ ok
01:28:42 :: [Red] t/24-metamodel-model.t ................ ok
01:28:42 :: [Red] t/25-grep-no-AND-OR.t ................. ok
01:28:42 :: [Red] t/26-is-rw.t .......................... ok
01:28:42 :: [Red] t/27-classify.t ....................... ok
01:28:42 :: [Red] t/28-LPW-2019.t ....................... ok
01:28:42 :: [Red] t/29-events.t ......................... ok
01:28:42 :: [Red] t/30-result-seq-pick.t ................ ok
01:28:42 :: [Red] t/31-update.t ......................... skipped
01:28:42 :: [Red] t/32-join.t ........................... ok
01:28:42 :: [Red] t/33-join.t ........................... ok
01:28:42 :: [Red] t/34-join.t ........................... ok
01:28:42 :: [Red] t/35-ast-generic.t .................... skipped
01:28:42 :: [Red] t/35-create.t ......................... ok
01:28:42 :: [Red] t/35-default-deflate.t ................ ok
01:28:42 :: [Red] t/36-json.t ........................... ok
01:28:42 :: [Red] t/37-equal.t .......................... skipped
01:28:42 :: [Red] t/38-xmas.t ........................... ok
01:28:42 :: [Red] t/39-relationship-multiple-columns.t .. skipped
01:28:42 :: [Red] t/40-fallback.t ....................... ok
01:28:42 :: [Red] t/41-create-table.t ................... ok
01:28:42 :: [Red] t/42-prefetch.t ....................... ok
01:28:42 :: [Red] t/43-error-without-id.t ............... ok
01:28:43 :: [Red] t/44-is-handling.t .................... ok
01:28:43 :: [Red] t/45-rw.t ............................. ok
01:28:43 :: [Red] t/46-rypervenche.t .................... ok
01:28:43 :: [Red] t/47-source-source-id.t ............... ok
01:28:43 :: [Red] t/48-experimental-formater.t .......... ok
01:28:43 :: [Red] t/49-experimental-name.t .............. ok
01:28:43 :: [Red] t/50-pre-create-or-update.t ........... ok
01:28:43 :: [Red] t/51-schema.t ......................... ok
01:28:43 :: [Red] t/52-unique.t ......................... ok
01:28:43 :: [Red] t/53-hand-made-many-to-many.t ......... ok
01:28:43 :: [Red] t/54-no-optimization.t ................ ok
01:28:43 :: [Red] t/55-refreshable.t .................... ok
01:28:43 :: [Red] t/56-experimental.t ................... ok
01:28:43 :: [Red] t/57-nm-relationship.t ................ ok
01:28:43 :: [Red] t/58-tomgraceys-schema.t .............. ok
01:28:43 :: [Red] t/59-runtime-role.t ................... ok
01:28:43 :: [Red] t/60-model-as-type.t .................. ok
01:28:43 :: [Red] t/61-date-coercion.t .................. ok
01:28:43 :: [Red] t/62-inflate-deflate.t ................ ok
01:28:43 :: [Red] t/63-create-on-defined-obj.t .......... ok
01:28:43 :: [Red] t/64-patrickb.t ....................... ok
01:28:43 :: [Red] t/65-join-model.t ..................... ok
01:28:43 :: [Red] t/66-enums.t .......................... skipped
01:28:43 :: [Red] t/66-red-config.t ..................... ok
01:28:43 :: [Red] t/67-array-columns.t .................. ok
01:28:43 :: [Red] t/68-submodel.t ....................... ok
01:28:43 :: [Red] t/70-conflicting-column-attribute.t ... ok
01:28:43 :: [Red] t/71-agg-methods.t .................... ok
01:28:43 :: [Red] t/72-red-defaults-from-module.t ....... skipped
01:28:43 :: [Red] t/73-enum-reassign.t .................. skipped
01:28:43 :: [Red] t/74-patrick-operators.t .............. Dubious, test returned 1
01:28:43 :: [Red] No subtests run
01:28:43 :: [Red] t/74-view.t ........................... ok
01:28:43 :: [Red] t/99-group-sort.t ..................... skipped
01:28:43 :: [Red] All tests successful.
01:28:43 :: [Red] 
01:28:43 :: [Red] Test Summary Report
01:28:43 :: [Red] -------------------
01:28:43 :: [Red] t/74-patrick-operators.t  (Wstat: 256 Tests: 0 Failed: 0)
01:28:43 :: [Red] Non-zero exit status: 1
01:28:43 :: [Red]   Parse errors: No plan found in TAP output
01:28:43 :: [Red] Files=78, Tests=772,  446 wallclock secs
01:28:43 :: [Red] Result: FAILED
01:28:43 :: ===> Testing [FAIL]: Red:ver<0.1.66>:auth<zef:FCO>:api<2>
[task stderr]
01:28:43 :: ===> Updating fez mirror: https://360.zef.pm/
01:28:43 :: ===> Updated fez mirror: https://360.zef.pm/
01:28:43 :: ===> Updating rea mirror: https://raw.githubusercontent.com/Raku/REA/main/META.json
01:28:43 :: ===> Updated rea mirror: https://raw.githubusercontent.com/Raku/REA/main/META.json
01:28:43 :: Aborting due to test failure: Red:ver<0.1.66>:auth<zef:FCO>:api<2> (use --force-test to override)
01:28:43 :: task exit status: 1
01:28:43 :: task tasks/zef_test FAILED
The spawned command 'docker exec -i sparrow-worker sh -l /var/.sparrowdo/env/zef_test/.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

01:17:53 :: [repository] - index updated from https://sparrowhub.io/repo/api/v1/index
run stage: run
01:17:56 :: [repository] - installing sparkyci-service-postgresql, version 0.000012
[task run: task.bash - install_pg_server]
[dump code: task.bash]
[1] set -e
[2] 
[3] db_user=$(config db_user)
[4] db_pass=$(config db_pass)
[5] db_name=$(config db_name)
[6] 
[7] set -x
[8] 
[9] 2>&1
[10] 
[11] echo "installing postgresql service on sparky"
[12] echo "======================================="
[13] 
[14] 
[15] sudo apk add postgresql
[16] 
[17] sudo mkdir -p /run/postgresql
[18] 
[19] sudo chown postgres:postgres /run/postgresql
[20] 
[21] sudo rm -rf /var/lib/postgresql/data
[22] 
[23] sudo mkdir -p /var/lib/postgresql/data
[24] 
[25] sudo chown postgres:postgres /var/lib/postgresql/data
[26] 
[27] sudo chmod 0700 /var/lib/postgresql/data
[28] 
[29] sudo -u postgres sh -c -l 'initdb -D /var/lib/postgresql/data'
[30] 
[31] sudo -u postgres sh -c -l 'postgres -D /var/lib/postgresql/data >/var/lib/postgresql/logfile 2>&1 &'
[32] 
[33] sleep 5
[34] 
[35] sudo -u postgres psql -c "create user $db_user with password '$db_pass'"
[36] sudo -u postgres sh -l -c "createdb $db_name"
[37] sudo -u postgres psql -c "grant all privileges on database $db_name to $db_user;"
[38] 
[39] export PGPASSWORD=$db_pass
[40] 
[41] psql -d $db_name -U $db_user -c "create table foo(a text)" -h localhost
[42] 
[43] 
[task stdout]
01:17:58 :: installing postgresql service on sparky
01:17:58 :: =======================================
01:17:58 :: fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
01:17:59 :: fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz
01:17:59 :: fetch https://dl.cloudsmith.io/public/nxadm-pkgs/rakudo-pkg/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
01:17:59 :: (1/12) Installing postgresql-common (1.1-r2)
01:17:59 :: Executing postgresql-common-1.1-r2.pre-install
01:18:00 :: (2/12) Installing libpq (14.5-r0)
01:18:00 :: (3/12) Installing postgresql14-client (14.5-r0)
01:18:00 :: (4/12) Installing tzdata (2022f-r1)
01:18:00 :: (5/12) Installing icu-data-en (71.1-r2)
01:18:00 :: Executing icu-data-en-71.1-r2.post-install
01:18:00 :: (6/12) Installing icu-libs (71.1-r2)
01:18:00 :: (7/12) Installing gdbm (1.23-r0)
01:18:00 :: (8/12) Installing libsasl (2.1.28-r1)
01:18:00 :: (9/12) Installing libldap (2.6.3-r3)
01:18:00 :: (10/12) Installing xz-libs (5.2.5-r1)
01:18:00 :: (11/12) Installing libxml2 (2.9.14-r2)
01:18:00 :: (12/12) Installing postgresql14 (14.5-r0)
01:18:00 :: Executing postgresql14-14.5-r0.post-install
01:18:00 :: Executing busybox-1.35.0-r17.trigger
01:18:00 :: Executing postgresql-common-1.1-r2.trigger
01:18:01 :: OK: 739 MiB in 72 packages
01:18:01 :: The files belonging to this database system will be owned by user "postgres".
01:18:01 :: This user must also own the server process.
01:18:01 :: 
01:18:01 :: The database cluster will be initialized with locales
01:18:01 ::   COLLATE:  C
01:18:01 ::   CTYPE:    C.UTF-8
01:18:01 ::   MESSAGES: C
01:18:01 ::   MONETARY: C
01:18:01 ::   NUMERIC:  C
01:18:01 ::   TIME:     C
01:18:01 :: The default database encoding has accordingly been set to "UTF8".
01:18:01 :: The default text search configuration will be set to "english".
01:18:01 :: 
01:18:01 :: Data page checksums are disabled.
01:18:01 :: 
01:18:01 :: fixing permissions on existing directory /var/lib/postgresql/data ... ok
01:18:01 :: creating subdirectories ... ok
01:18:01 :: selecting dynamic shared memory implementation ... posix
01:18:01 :: selecting default max_connections ... 100
01:18:01 :: selecting default shared_buffers ... 128MB
01:18:01 :: selecting default time zone ... UTC
01:18:01 :: creating configuration files ... ok
01:18:01 :: running bootstrap script ... ok
01:18:03 :: performing post-bootstrap initialization ... ok
01:18:04 :: syncing data to disk ... ok
01:18:04 :: 
01:18:04 :: 
01:18:04 :: Success.
01:18:04 :: 
01:18:09 :: CREATE ROLE
01:18:10 :: GRANT
01:18:10 :: CREATE TABLE
[task stderr]
01:18:10 :: ++ echo 'installing postgresql service on sparky'
01:18:10 :: ++ echo =======================================
01:18:10 :: ++ sudo apk add postgresql
01:18:10 :: *
01:18:10 :: * If you need ICU with non-English locales and legacy charset support, install
01:18:10 :: * package icu-data-full.
01:18:10 :: *
01:18:10 :: *
01:18:10 :: * If you want to use JIT in PostgreSQL, install postgresql14-jit or
01:18:10 :: * postgresql-jit (if you didn't install specific major version of postgresql).
01:18:10 :: *
01:18:10 :: * Setting postgresql14 as the default version
01:18:10 :: ++ sudo mkdir -p /run/postgresql
01:18:10 :: ++ sudo chown postgres:postgres /run/postgresql
01:18:10 :: ++ sudo rm -rf /var/lib/postgresql/data
01:18:10 :: ++ sudo mkdir -p /var/lib/postgresql/data
01:18:10 :: ++ sudo chown postgres:postgres /var/lib/postgresql/data
01:18:10 :: ++ sudo chmod 0700 /var/lib/postgresql/data
01:18:10 :: ++ sudo -u postgres sh -c -l 'initdb -D /var/lib/postgresql/data'
01:18:10 :: initdb: warning: enabling "trust" authentication for local connections
01:18:10 :: You can change this by editing pg_hba.conf or using the option -A, or
01:18:10 :: --auth-local and --auth-host, the next time you run initdb.
01:18:10 :: ++ sudo -u postgres sh -c -l 'postgres -D /var/lib/postgresql/data >/var/lib/postgresql/logfile 2>&1 &'
01:18:10 :: ++ sleep 5
01:18:10 :: ++ sudo -u postgres psql -c 'create user testuser with password '\''testpass'\'''
01:18:10 :: ++ sudo -u postgres sh -l -c 'createdb redtest'
01:18:10 :: ++ sudo -u postgres psql -c 'grant all privileges on database redtest to testuser;'
01:18:10 :: ++ export PGPASSWORD=testpass
01:18:10 :: ++ PGPASSWORD=testpass
01:18:10 :: ++ psql -d redtest -U testuser -c 'create table foo(a text)' -h localhost