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

SparrowCI Report - branch-melezhik-pets-archlinux | [image: melezhik/sparrow:alpine]

  • Summary
  • Pipeline YAML
  • Report
BuildID: 3176
Status: OK
Image: melezhik/sparrow:alpine
Worker status: OK
---
Date: 03.03.2023 @ 04:07
Time elapsed: 122 sec
---
SCM: https://github.com/melezhik/pets.git
Git sha: c5310a8
Git comment: set path for go
image:
  - melezhik/sparrow:alpine
  - melezhik/sparrow:debian
  - melezhik/sparrow:ubuntu
  - melezhik/sparrow:archlinux
  
tasks:
 -
  name: go_test
  language: Bash
  code: |
    set -e
    echo "Run tests for OS: $os ..."
    if test "$os" = "ubuntu" || test "$os" = "debian" || test "$os" = "arch" || test "$os" = "archlinux"; 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" || test "$os" = "arch" || test "$os" = "archlinux"; 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
04:07:26 :: [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]
04:07:28 :: fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
04:07:28 :: fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
04:07:28 :: fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz
04:07:28 :: fetch https://dl.cloudsmith.io/public/nxadm-pkgs/rakudo-pkg/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
04:07:29 :: OK: 710 MiB in 60 packages
04:06:48 :: [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" || test "$os" = "arch" || test "$os" = "archlinux"; then
[3]   export PATH=/usr/local/go/bin:$PATH
[4] fi
[5] go version
[6] cd source
[7] go build -v
[8] 
[task stdout]
04:07:34 :: go version go1.19.4 linux/amd64
[task stderr]
04:07:35 :: go: downloading github.com/hashicorp/logutils v1.0.0
04:07:35 :: github.com/hashicorp/logutils
04:07:35 :: github.com/ema/pets
04:06:16 :: [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
04:06:19 :: [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]
04:06:21 :: 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" || test "$os" = "arch" || test "$os" = "archlinux"; then
[4]   export PATH=/usr/local/go/bin:$PATH
[5] fi
[6] go version
[7] cd source
[8] go test -v
[9] 
[task stdout]
04:07:35 :: Run tests for OS: alpine ...
04:07:35 :: go version go1.19.4 linux/amd64
04:07:37 :: === RUN   TestBadUser
04:07:37 :: --- PASS: TestBadUser (0.00s)
04:07:37 :: === RUN   TestBadGroup
04:07:37 :: --- PASS: TestBadGroup (0.00s)
04:07:37 :: === RUN   TestShortModes
04:07:37 :: --- PASS: TestShortModes (0.00s)
04:07:37 :: === RUN   TestOK
04:07:37 :: --- PASS: TestOK (0.00s)
04:07:37 :: === RUN   TestFileIsValidTrue
04:07:37 :: 2023/03/03 04:07:37 [DEBUG] gvim is a valid package name
04:07:37 :: 2023/03/03 04:07:37 [DEBUG] same sha256 for /dev/null and /dev/null: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
04:07:37 :: --- PASS: TestFileIsValidTrue (0.29s)
04:07:37 :: === RUN   TestFileIsValidBadPackage
04:07:38 :: 2023/03/03 04:07:38 [ERROR] not-an-actual-package is not an available package
04:07:38 :: --- PASS: TestFileIsValidBadPackage (0.26s)
04:07:38 :: === RUN   TestFileIsValidPrePathError
04:07:38 :: 2023/03/03 04:07:38 [DEBUG] gvim is a valid package name
04:07:38 :: 2023/03/03 04:07:38 [DEBUG] sha256[README.adoc]=d269883513ac2118ba9925a72a3eed564e05b2c87051d0ad4293c090644a4e53 != sha256[/etc/motd]=4ada0c700c4460f85252987092650c6708f17b4ccebc9ae4fcf8732089a1485f
04:07:38 :: 2023/03/03 04:07:38 [INFO] pre-update command [/bin/whatever-but-not-a-valid-path README.adoc] failed due to PathError. Ignoring for now
04:07:38 :: --- PASS: TestFileIsValidPrePathError (0.26s)
04:07:38 :: === RUN   TestFileIsValidPathError
04:07:38 :: 2023/03/03 04:07:38 [DEBUG] gvim is a valid package name
04:07:38 :: 2023/03/03 04:07:38 [DEBUG] sha256[README.adoc]=d269883513ac2118ba9925a72a3eed564e05b2c87051d0ad4293c090644a4e53 != sha256[/etc/motd]=4ada0c700c4460f85252987092650c6708f17b4ccebc9ae4fcf8732089a1485f
04:07:38 :: 2023/03/03 04:07:38 [INFO] pre-update command [/bin/whatever-but-not-a-valid-path README.adoc] failed due to PathError. Ignoring for now
04:07:38 :: 2023/03/03 04:07:38 [DEBUG] gvim is a valid package name
04:07:38 :: 2023/03/03 04:07:38 [DEBUG] sha256[README.adoc]=d269883513ac2118ba9925a72a3eed564e05b2c87051d0ad4293c090644a4e53 != sha256[/etc/motd]=4ada0c700c4460f85252987092650c6708f17b4ccebc9ae4fcf8732089a1485f
04:07:38 :: 2023/03/03 04:07:38 [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
04:07:38 :: --- PASS: TestFileIsValidPathError (0.53s)
04:07:38 :: === RUN   TestNeedsCopyNoSource
04:07:38 :: --- PASS: TestNeedsCopyNoSource (0.00s)
04:07:38 :: === RUN   TestNeedsCopySourceNotThere
04:07:38 :: 2023/03/03 04:07:38 [ERROR] cannot determine sha256 of Source file something-very-funny.lol: open something-very-funny.lol: no such file or directory
04:07:38 :: --- PASS: TestNeedsCopySourceNotThere (0.00s)
04:07:38 :: === RUN   TestNeedsLinkNoDest
04:07:38 :: --- PASS: TestNeedsLinkNoDest (0.00s)
04:07:38 :: === RUN   TestNeedsLinkHappyPathLINK
04:07:38 :: --- PASS: TestNeedsLinkHappyPathLINK (0.00s)
04:07:38 :: === RUN   TestNeedsLinkHappyPathNONE
04:07:38 :: 2023/03/03 04:07:38 [DEBUG] sample_pet/README.txt is a symlink to sample_pet/README already
04:07:38 :: --- PASS: TestNeedsLinkHappyPathNONE (0.00s)
04:07:38 :: === RUN   TestNeedsLinkDestExists
04:07:38 :: 2023/03/03 04:07:38 [ERROR] /etc/passwd already exists
04:07:38 :: --- PASS: TestNeedsLinkDestExists (0.00s)
04:07:38 :: === RUN   TestNeedsLinkDestIsSymlink
04:07:38 :: 2023/03/03 04:07:38 [ERROR] /etc/mtab is a symlink to /proc/1008/mounts instead of sample_pet/vimrc
04:07:38 :: --- PASS: TestNeedsLinkDestIsSymlink (0.00s)
04:07:38 :: === RUN   TestNeedsDirNoDirectory
04:07:38 :: --- PASS: TestNeedsDirNoDirectory (0.00s)
04:07:38 :: === RUN   TestNeedsDirHappyPathDIR
04:07:38 :: --- PASS: TestNeedsDirHappyPathDIR (0.00s)
04:07:38 :: === RUN   TestNeedsDirHappyPathNONE
04:07:38 :: --- PASS: TestNeedsDirHappyPathNONE (0.00s)
04:07:38 :: === RUN   TestNeedsDirDestIsFile
04:07:38 :: 2023/03/03 04:07:38 [ERROR] /etc/passwd already exists and it is not a directory
04:07:38 :: --- PASS: TestNeedsDirDestIsFile (0.00s)
04:07:38 :: === RUN   TestParseFlags
04:07:38 :: --- PASS: TestParseFlags (0.00s)
04:07:38 :: === RUN   TestGetLogFilter
04:07:38 :: --- PASS: TestGetLogFilter (0.00s)
04:07:38 :: === RUN   TestPkgIsValid
04:07:39 :: 2023/03/03 04:07:39 [DEBUG] coreutils is a valid package name
04:07:39 :: --- PASS: TestPkgIsValid (0.29s)
04:07:39 :: === RUN   TestPkgIsNotValid
04:07:39 :: 2023/03/03 04:07:39 [ERROR] obviously-this-cannot-be valid ? is not an available package
04:07:39 :: --- PASS: TestPkgIsNotValid (0.27s)
04:07:39 :: === RUN   TestIsInstalled
04:07:39 :: --- PASS: TestIsInstalled (0.02s)
04:07:39 :: === RUN   TestIsNotInstalled
04:07:39 :: 2023/03/03 04:07:39 [ERROR] running /sbin/apk info -e abiword: 'exit status 1'
04:07:39 :: --- PASS: TestIsNotInstalled (0.03s)
04:07:39 :: === RUN   TestReadModelinesFileNotFound
04:07:39 :: --- PASS: TestReadModelinesFileNotFound (0.00s)
04:07:39 :: === RUN   TestReadModelinesZero
04:07:39 :: --- PASS: TestReadModelinesZero (0.00s)
04:07:39 :: === RUN   TestReadModelinesNonZero
04:07:39 :: --- PASS: TestReadModelinesNonZero (0.00s)
04:07:39 :: === RUN   TestParseModelineErr
04:07:39 :: --- PASS: TestParseModelineErr (0.00s)
04:07:39 :: === RUN   TestParseModelineBadKeyword
04:07:39 :: --- PASS: TestParseModelineBadKeyword (0.00s)
04:07:39 :: === RUN   TestParseModelineOKDestfile
04:07:39 :: --- PASS: TestParseModelineOKDestfile (0.00s)
04:07:39 :: === RUN   TestParseModelineOKSymlink
04:07:39 :: --- PASS: TestParseModelineOKSymlink (0.00s)
04:07:39 :: === RUN   TestParseModelineOKPackage
04:07:39 :: --- PASS: TestParseModelineOKPackage (0.00s)
04:07:39 :: === RUN   TestPkgsToInstall
04:07:39 :: 2023/03/03 04:07:39 [DEBUG] binutils already installed
04:07:39 :: 2023/03/03 04:07:39 [DEBUG] binutils already installed
04:07:39 :: 2023/03/03 04:07:39 [ERROR] running /sbin/apk info -e abiword: 'exit status 1'
04:07:39 :: 2023/03/03 04:07:39 [INFO] abiword not installed
04:07:39 :: --- PASS: TestPkgsToInstall (0.06s)
04:07:39 :: === RUN   TestFileToCopy
04:07:39 :: 2023/03/03 04:07:39 [DEBUG] same sha256 for sample_pet/ssh/sshd_config and sample_pet/ssh/sshd_config: ff4f8ceaae2ea2432f5e3fad5d16ba4331fa0faf8a98ad8a82f46ea3298152a1
04:07:39 :: 2023/03/03 04:07:39 [DEBUG] sha256[sample_pet/ssh/sshd_config]=ff4f8ceaae2ea2432f5e3fad5d16ba4331fa0faf8a98ad8a82f46ea3298152a1 != sha256[sample_pet/ssh/user_ssh_config]=3538b9a926a328a14aaa7428c138aad2e7fcb321090045f3a5ca225351c4537b
04:07:39 :: --- PASS: TestFileToCopy (0.00s)
04:07:39 :: === RUN   TestChmod
04:07:39 :: 2023/03/03 04:07:39 [INFO] /dev/null is Dcrw-rw-rw- instead of -rw-r--r--
04:07:39 :: 2023/03/03 04:07:39 [DEBUG] /etc/passwd is -rw-r--r-- already
04:07:39 :: --- PASS: TestChmod (0.00s)
04:07:39 :: === RUN   TestChown
04:07:39 :: 2023/03/03 04:07:39 [DEBUG] /etc/passwd is owned by 0:0 already
04:07:39 :: 2023/03/03 04:07:39 [INFO] /etc/passwd is owned by uid 0 instead of nobody
04:07:39 :: --- PASS: TestChown (0.00s)
04:07:39 :: === RUN   TestLn
04:07:39 :: 2023/03/03 04:07:39 [ERROR] /etc/passwd already exists
04:07:39 :: --- PASS: TestLn (0.00s)
04:07:39 :: === RUN   TestMkdir
04:07:39 :: --- PASS: TestMkdir (0.00s)
04:07:39 :: PASS
04:07:39 :: ok  	github.com/ema/pets	2.024s