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

SparrowCI Report - gh-ema-pets | [image: melezhik/sparrow:alpine]

  • Summary
  • Pipeline YAML
  • Report
BuildID: 2727
Status: OK
Image: melezhik/sparrow:alpine
Worker status: OK
---
Date: 20.01.2023 @ 21:45
Time elapsed: 122 sec
---
SCM: https://github.com/ema/pets.git
Git sha: 1142b10
Git comment: Add support for alternative aur package manager yay
image:
  - melezhik/sparrow:alpine
  - melezhik/sparrow:debian
  - melezhik/sparrow:ubuntu
  
tasks:
 -
  name: go_test
  language: Bash
  code: |
    set -e
    echo "Run tests for OS: $os ..."
    if test "$os" = "ubuntu" || test "$os" = "debian"; then
      export PATH=/usr/local/go/bin:$PATH
    fi
    go version
    cd source
    go test -v
  default: true
  depends:
    -
      name: go_build
 -
  name: go_build
  language: Bash
  code: |
    set -e
    if test "$os" = "ubuntu" || test "$os" = "debian"; then
      export PATH=/usr/local/go/bin:$PATH
    fi
    go version
    cd source
    go build -v
  depends:
    -
      name: install-go
 -
    name: install-go
    language: Bash
    code: |
      if test $os = "alpine"; then
        sudo apk add go \
        --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community
      else
        sudo rm -rf /usr/local/go
        curl -sfL https://go.dev/dl/go1.19.3.linux-amd64.tar.gz -o ~/go1.19.3.linux-amd64.tar.gz
        sudo tar -C /usr/local -xzf ~/go*.linux-amd64.tar.gz
      fi
21:45:34 :: [repository] - index updated from https://sparrowhub.io/repo/api/v1/index
run stage: run
[task run: task.bash - tasks/install-go]
[dump code: task.bash]
[1] if test $os = "alpine"; then
[2]   sudo apk add go \
[3]   --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community
[4] else
[5]   sudo rm -rf /usr/local/go
[6]   curl -sfL https://go.dev/dl/go1.19.3.linux-amd64.tar.gz -o ~/go1.19.3.linux-amd64.tar.gz
[7]   sudo tar -C /usr/local -xzf ~/go*.linux-amd64.tar.gz
[8] fi
[9] 
[task stdout]
21:45:36 :: fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
21:45:36 :: fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
21:45:37 :: fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz
21:45:37 :: fetch https://dl.cloudsmith.io/public/nxadm-pkgs/rakudo-pkg/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
21:45:38 :: OK: 710 MiB in 60 packages
21:44:52 :: [repository] - index updated from https://sparrowhub.io/repo/api/v1/index
run stage: run
[task run: task.bash - tasks/go_build]
[dump code: task.bash]
[1] set -e
[2] if test "$os" = "ubuntu" || test "$os" = "debian"; then
[3]   export PATH=/usr/local/go/bin:$PATH
[4] fi
[5] go version
[6] cd source
[7] go build -v
[8] 
[task stdout]
21:45:41 :: go version go1.19.4 linux/amd64
[task stderr]
21:45:41 :: go: downloading github.com/hashicorp/logutils v1.0.0
21:45:41 :: github.com/hashicorp/logutils
21:45:41 :: github.com/ema/pets
21:44:21 :: [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:44:24 :: [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:44:26 :: tar -xzf source.tar.gz 
[task run: task.bash - tasks/go_test]
[dump code: task.bash]
[1] set -e
[2] echo "Run tests for OS: $os ..."
[3] if test "$os" = "ubuntu" || test "$os" = "debian"; then
[4]   export PATH=/usr/local/go/bin:$PATH
[5] fi
[6] go version
[7] cd source
[8] go test -v
[9] 
[task stdout]
21:45:42 :: Run tests for OS: alpine ...
21:45:42 :: go version go1.19.4 linux/amd64
21:45:44 :: === RUN   TestBadUser
21:45:44 :: --- PASS: TestBadUser (0.00s)
21:45:44 :: === RUN   TestBadGroup
21:45:44 :: --- PASS: TestBadGroup (0.00s)
21:45:44 :: === RUN   TestShortModes
21:45:44 :: --- PASS: TestShortModes (0.00s)
21:45:44 :: === RUN   TestOK
21:45:44 :: --- PASS: TestOK (0.00s)
21:45:44 :: === RUN   TestFileIsValidTrue
21:45:44 :: 2023/01/20 21:45:44 [DEBUG] gvim is a valid package name
21:45:44 :: 2023/01/20 21:45:44 [DEBUG] same sha256 for /dev/null and /dev/null: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
21:45:44 :: --- PASS: TestFileIsValidTrue (0.30s)
21:45:44 :: === RUN   TestFileIsValidBadPackage
21:45:45 :: 2023/01/20 21:45:45 [ERROR] not-an-actual-package is not an available package
21:45:45 :: --- PASS: TestFileIsValidBadPackage (0.39s)
21:45:45 :: === RUN   TestFileIsValidPrePathError
21:45:45 :: 2023/01/20 21:45:45 [DEBUG] gvim is a valid package name
21:45:45 :: 2023/01/20 21:45:45 [DEBUG] sha256[README.adoc]=84595f3c85d089aff22195e6770e06da79d196c4dc59e0f868e9113c1651c506 != sha256[/etc/motd]=4ada0c700c4460f85252987092650c6708f17b4ccebc9ae4fcf8732089a1485f
21:45:45 :: 2023/01/20 21:45:45 [INFO] pre-update command [/bin/whatever-but-not-a-valid-path README.adoc] failed due to PathError. Ignoring for now
21:45:45 :: --- PASS: TestFileIsValidPrePathError (0.32s)
21:45:45 :: === RUN   TestFileIsValidPathError
21:45:45 :: 2023/01/20 21:45:45 [DEBUG] gvim is a valid package name
21:45:45 :: 2023/01/20 21:45:45 [DEBUG] sha256[README.adoc]=84595f3c85d089aff22195e6770e06da79d196c4dc59e0f868e9113c1651c506 != sha256[/etc/motd]=4ada0c700c4460f85252987092650c6708f17b4ccebc9ae4fcf8732089a1485f
21:45:45 :: 2023/01/20 21:45:45 [INFO] pre-update command [/bin/whatever-but-not-a-valid-path README.adoc] failed due to PathError. Ignoring for now
21:45:46 :: 2023/01/20 21:45:46 [DEBUG] gvim is a valid package name
21:45:46 :: 2023/01/20 21:45:46 [DEBUG] sha256[README.adoc]=84595f3c85d089aff22195e6770e06da79d196c4dc59e0f868e9113c1651c506 != sha256[/etc/motd]=4ada0c700c4460f85252987092650c6708f17b4ccebc9ae4fcf8732089a1485f
21:45:46 :: 2023/01/20 21:45:46 [ERROR] pre-update command [/bin/whatever-but-not-a-valid-path README.adoc README.adoc]: fork/exec /bin/whatever-but-not-a-valid-path: no such file or directory
21:45:46 :: --- PASS: TestFileIsValidPathError (0.67s)
21:45:46 :: === RUN   TestNeedsCopyNoSource
21:45:46 :: --- PASS: TestNeedsCopyNoSource (0.00s)
21:45:46 :: === RUN   TestNeedsCopySourceNotThere
21:45:46 :: 2023/01/20 21:45:46 [ERROR] cannot determine sha256 of Source file something-very-funny.lol: open something-very-funny.lol: no such file or directory
21:45:46 :: --- PASS: TestNeedsCopySourceNotThere (0.00s)
21:45:46 :: === RUN   TestNeedsLinkNoDest
21:45:46 :: --- PASS: TestNeedsLinkNoDest (0.00s)
21:45:46 :: === RUN   TestNeedsLinkHappyPathLINK
21:45:46 :: --- PASS: TestNeedsLinkHappyPathLINK (0.00s)
21:45:46 :: === RUN   TestNeedsLinkHappyPathNONE
21:45:46 :: 2023/01/20 21:45:46 [DEBUG] sample_pet/README.txt is a symlink to sample_pet/README already
21:45:46 :: --- PASS: TestNeedsLinkHappyPathNONE (0.00s)
21:45:46 :: === RUN   TestNeedsLinkDestExists
21:45:46 :: 2023/01/20 21:45:46 [ERROR] /etc/passwd already exists
21:45:46 :: --- PASS: TestNeedsLinkDestExists (0.00s)
21:45:46 :: === RUN   TestNeedsLinkDestIsSymlink
21:45:46 :: 2023/01/20 21:45:46 [ERROR] /etc/mtab is a symlink to /proc/1035/mounts instead of sample_pet/vimrc
21:45:46 :: --- PASS: TestNeedsLinkDestIsSymlink (0.00s)
21:45:46 :: === RUN   TestParseFlags
21:45:46 :: --- PASS: TestParseFlags (0.00s)
21:45:46 :: === RUN   TestGetLogFilter
21:45:46 :: --- PASS: TestGetLogFilter (0.00s)
21:45:46 :: === RUN   TestPkgIsValid
21:45:46 :: 2023/01/20 21:45:46 [DEBUG] coreutils is a valid package name
21:45:46 :: --- PASS: TestPkgIsValid (0.32s)
21:45:46 :: === RUN   TestPkgIsNotValid
21:45:46 :: 2023/01/20 21:45:46 [ERROR] obviously-this-cannot-be valid ? is not an available package
21:45:46 :: --- PASS: TestPkgIsNotValid (0.31s)
21:45:46 :: === RUN   TestIsInstalled
21:45:46 :: --- PASS: TestIsInstalled (0.02s)
21:45:46 :: === RUN   TestIsNotInstalled
21:45:46 :: 2023/01/20 21:45:46 [ERROR] running /sbin/apk info -e abiword: 'exit status 1'
21:45:46 :: --- PASS: TestIsNotInstalled (0.03s)
21:45:46 :: === RUN   TestReadModelinesFileNotFound
21:45:46 :: --- PASS: TestReadModelinesFileNotFound (0.00s)
21:45:46 :: === RUN   TestReadModelinesZero
21:45:46 :: --- PASS: TestReadModelinesZero (0.00s)
21:45:46 :: === RUN   TestReadModelinesNonZero
21:45:46 :: --- PASS: TestReadModelinesNonZero (0.00s)
21:45:46 :: === RUN   TestParseModelineErr
21:45:46 :: --- PASS: TestParseModelineErr (0.00s)
21:45:46 :: === RUN   TestParseModelineBadKeyword
21:45:46 :: --- PASS: TestParseModelineBadKeyword (0.00s)
21:45:46 :: === RUN   TestParseModelineOKDestfile
21:45:46 :: --- PASS: TestParseModelineOKDestfile (0.00s)
21:45:46 :: === RUN   TestParseModelineOKSymlink
21:45:46 :: --- PASS: TestParseModelineOKSymlink (0.00s)
21:45:46 :: === RUN   TestParseModelineOKPackage
21:45:46 :: --- PASS: TestParseModelineOKPackage (0.00s)
21:45:46 :: === RUN   TestPkgsToInstall
21:45:46 :: 2023/01/20 21:45:46 [DEBUG] binutils already installed
21:45:46 :: 2023/01/20 21:45:46 [DEBUG] binutils already installed
21:45:46 :: 2023/01/20 21:45:46 [ERROR] running /sbin/apk info -e abiword: 'exit status 1'
21:45:46 :: 2023/01/20 21:45:46 [INFO] abiword not installed
21:45:46 :: --- PASS: TestPkgsToInstall (0.05s)
21:45:46 :: === RUN   TestFileToCopy
21:45:46 :: 2023/01/20 21:45:46 [DEBUG] same sha256 for sample_pet/ssh/sshd_config and sample_pet/ssh/sshd_config: ff4f8ceaae2ea2432f5e3fad5d16ba4331fa0faf8a98ad8a82f46ea3298152a1
21:45:46 :: 2023/01/20 21:45:46 [DEBUG] sha256[sample_pet/ssh/sshd_config]=ff4f8ceaae2ea2432f5e3fad5d16ba4331fa0faf8a98ad8a82f46ea3298152a1 != sha256[sample_pet/ssh/user_ssh_config]=3538b9a926a328a14aaa7428c138aad2e7fcb321090045f3a5ca225351c4537b
21:45:46 :: --- PASS: TestFileToCopy (0.00s)
21:45:46 :: === RUN   TestChmod
21:45:46 :: 2023/01/20 21:45:46 [INFO] /dev/null is Dcrw-rw-rw- instead of -rw-r--r--
21:45:46 :: 2023/01/20 21:45:46 [DEBUG] /etc/passwd is -rw-r--r-- already
21:45:46 :: --- PASS: TestChmod (0.00s)
21:45:46 :: === RUN   TestChown
21:45:46 :: 2023/01/20 21:45:46 [DEBUG] /etc/passwd is owned by 0:0 already
21:45:46 :: 2023/01/20 21:45:46 [INFO] /etc/passwd is owned by uid 0 instead of nobody
21:45:46 :: --- PASS: TestChown (0.00s)
21:45:46 :: === RUN   TestLn
21:45:46 :: 2023/01/20 21:45:46 [ERROR] /etc/passwd already exists
21:45:46 :: --- PASS: TestLn (0.00s)
21:45:46 :: PASS
21:45:46 :: ok  	github.com/ema/pets	2.406s