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

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

  • Summary
  • Pipeline YAML
  • Report
BuildID: 3133
Status: OK
Image: melezhik/sparrow:debian
Worker status: OK
---
Date: 25.02.2023 @ 22:55
Time elapsed: 229 sec
---
SCM: https://github.com/ema/pets.git
Git sha: 5c23569
Git comment: Add Arch Linux to the list of supported distros
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
22:54:51 :: [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]
22:54:16 :: [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]
22:55:02 :: go version go1.19.3 linux/amd64
[task stderr]
22:55:02 :: go: downloading github.com/hashicorp/logutils v1.0.0
22:55:02 :: github.com/hashicorp/logutils
22:55:02 :: github.com/ema/pets
22:53:46 :: [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
22:53:49 :: [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]
22:53:52 :: 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]
22:55:06 :: Run tests for OS: debian ...
22:55:06 :: go version go1.19.3 linux/amd64
22:55:07 :: === RUN   TestBadUser
22:55:07 :: --- PASS: TestBadUser (0.00s)
22:55:07 :: === RUN   TestBadGroup
22:55:07 :: --- PASS: TestBadGroup (0.00s)
22:55:07 :: === RUN   TestShortModes
22:55:07 :: --- PASS: TestShortModes (0.00s)
22:55:07 :: === RUN   TestOK
22:55:07 :: --- PASS: TestOK (0.00s)
22:55:07 :: === RUN   TestFileIsValidTrue
22:55:08 :: 2023/02/25 22:55:08 [DEBUG] gvim is a valid package name
22:55:08 :: 2023/02/25 22:55:08 [DEBUG] same sha256 for /dev/null and /dev/null: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
22:55:08 :: --- PASS: TestFileIsValidTrue (0.48s)
22:55:08 :: === RUN   TestFileIsValidBadPackage
22:55:08 :: 2023/02/25 22:55:08 [ERROR] not-an-actual-package is not an available package
22:55:08 :: --- PASS: TestFileIsValidBadPackage (0.48s)
22:55:08 :: === RUN   TestFileIsValidPrePathError
22:55:09 :: 2023/02/25 22:55:09 [DEBUG] gvim is a valid package name
22:55:09 :: 2023/02/25 22:55:09 [DEBUG] sha256[README.adoc]=d269883513ac2118ba9925a72a3eed564e05b2c87051d0ad4293c090644a4e53 != sha256[/etc/motd]=a378977155fb42bb006496321cbe31f74cbda803c3f6ca590f30e76d1afad921
22:55:09 :: 2023/02/25 22:55:09 [INFO] pre-update command [/bin/whatever-but-not-a-valid-path README.adoc] failed due to PathError. Ignoring for now
22:55:09 :: --- PASS: TestFileIsValidPrePathError (0.53s)
22:55:09 :: === RUN   TestFileIsValidPathError
22:55:09 :: 2023/02/25 22:55:09 [DEBUG] gvim is a valid package name
22:55:09 :: 2023/02/25 22:55:09 [DEBUG] sha256[README.adoc]=d269883513ac2118ba9925a72a3eed564e05b2c87051d0ad4293c090644a4e53 != sha256[/etc/motd]=a378977155fb42bb006496321cbe31f74cbda803c3f6ca590f30e76d1afad921
22:55:09 :: 2023/02/25 22:55:09 [INFO] pre-update command [/bin/whatever-but-not-a-valid-path README.adoc] failed due to PathError. Ignoring for now
22:55:10 :: 2023/02/25 22:55:10 [DEBUG] gvim is a valid package name
22:55:10 :: 2023/02/25 22:55:10 [DEBUG] sha256[README.adoc]=d269883513ac2118ba9925a72a3eed564e05b2c87051d0ad4293c090644a4e53 != sha256[/etc/motd]=a378977155fb42bb006496321cbe31f74cbda803c3f6ca590f30e76d1afad921
22:55:10 :: 2023/02/25 22:55:10 [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
22:55:10 :: --- PASS: TestFileIsValidPathError (1.10s)
22:55:10 :: === RUN   TestNeedsCopyNoSource
22:55:10 :: --- PASS: TestNeedsCopyNoSource (0.00s)
22:55:10 :: === RUN   TestNeedsCopySourceNotThere
22:55:10 :: 2023/02/25 22:55:10 [ERROR] cannot determine sha256 of Source file something-very-funny.lol: open something-very-funny.lol: no such file or directory
22:55:10 :: --- PASS: TestNeedsCopySourceNotThere (0.00s)
22:55:10 :: === RUN   TestNeedsLinkNoDest
22:55:10 :: --- PASS: TestNeedsLinkNoDest (0.00s)
22:55:10 :: === RUN   TestNeedsLinkHappyPathLINK
22:55:10 :: --- PASS: TestNeedsLinkHappyPathLINK (0.00s)
22:55:10 :: === RUN   TestNeedsLinkHappyPathNONE
22:55:10 :: 2023/02/25 22:55:10 [DEBUG] sample_pet/README.txt is a symlink to sample_pet/README already
22:55:10 :: --- PASS: TestNeedsLinkHappyPathNONE (0.00s)
22:55:10 :: === RUN   TestNeedsLinkDestExists
22:55:10 :: 2023/02/25 22:55:10 [ERROR] /etc/passwd already exists
22:55:10 :: --- PASS: TestNeedsLinkDestExists (0.00s)
22:55:10 :: === RUN   TestNeedsLinkDestIsSymlink
22:55:10 :: 2023/02/25 22:55:10 [ERROR] /etc/mtab is a symlink to /proc/1024/mounts instead of sample_pet/vimrc
22:55:10 :: --- PASS: TestNeedsLinkDestIsSymlink (0.00s)
22:55:10 :: === RUN   TestNeedsDirNoDirectory
22:55:10 :: --- PASS: TestNeedsDirNoDirectory (0.00s)
22:55:10 :: === RUN   TestNeedsDirHappyPathDIR
22:55:10 :: --- PASS: TestNeedsDirHappyPathDIR (0.00s)
22:55:10 :: === RUN   TestNeedsDirHappyPathNONE
22:55:10 :: --- PASS: TestNeedsDirHappyPathNONE (0.00s)
22:55:10 :: === RUN   TestNeedsDirDestIsFile
22:55:10 :: 2023/02/25 22:55:10 [ERROR] /etc/passwd already exists and it is not a directory
22:55:10 :: --- PASS: TestNeedsDirDestIsFile (0.00s)
22:55:10 :: === RUN   TestParseFlags
22:55:10 :: --- PASS: TestParseFlags (0.00s)
22:55:10 :: === RUN   TestGetLogFilter
22:55:10 :: --- PASS: TestGetLogFilter (0.00s)
22:55:10 :: === RUN   TestPkgIsValid
22:55:10 :: 2023/02/25 22:55:10 [DEBUG] coreutils is a valid package name
22:55:10 :: --- PASS: TestPkgIsValid (0.53s)
22:55:10 :: === RUN   TestPkgIsNotValid
22:55:11 :: 2023/02/25 22:55:11 [ERROR] obviously-this-cannot-be valid ? is not an available package
22:55:11 :: --- PASS: TestPkgIsNotValid (0.68s)
22:55:11 :: === RUN   TestIsInstalled
22:55:12 :: --- PASS: TestIsInstalled (0.54s)
22:55:12 :: === RUN   TestIsNotInstalled
22:55:13 :: 2023/02/25 22:55:13 [ERROR] no 'Installed:' line in apt-cache policy this is getting ridiculous
22:55:13 :: --- PASS: TestIsNotInstalled (1.15s)
22:55:13 :: === RUN   TestReadModelinesFileNotFound
22:55:13 :: --- PASS: TestReadModelinesFileNotFound (0.00s)
22:55:13 :: === RUN   TestReadModelinesZero
22:55:13 :: --- PASS: TestReadModelinesZero (0.00s)
22:55:13 :: === RUN   TestReadModelinesNonZero
22:55:13 :: --- PASS: TestReadModelinesNonZero (0.00s)
22:55:13 :: === RUN   TestParseModelineErr
22:55:13 :: --- PASS: TestParseModelineErr (0.00s)
22:55:13 :: === RUN   TestParseModelineBadKeyword
22:55:13 :: --- PASS: TestParseModelineBadKeyword (0.00s)
22:55:13 :: === RUN   TestParseModelineOKDestfile
22:55:13 :: --- PASS: TestParseModelineOKDestfile (0.00s)
22:55:13 :: === RUN   TestParseModelineOKSymlink
22:55:13 :: --- PASS: TestParseModelineOKSymlink (0.00s)
22:55:13 :: === RUN   TestParseModelineOKPackage
22:55:13 :: --- PASS: TestParseModelineOKPackage (0.00s)
22:55:13 :: === RUN   TestPkgsToInstall
22:55:13 :: 2023/02/25 22:55:13 [DEBUG] binutils already installed
22:55:14 :: 2023/02/25 22:55:14 [DEBUG] binutils already installed
22:55:15 :: 2023/02/25 22:55:15 [INFO] abiword not installed
22:55:15 :: --- PASS: TestPkgsToInstall (1.78s)
22:55:15 :: === RUN   TestFileToCopy
22:55:15 :: 2023/02/25 22:55:15 [DEBUG] same sha256 for sample_pet/ssh/sshd_config and sample_pet/ssh/sshd_config: ff4f8ceaae2ea2432f5e3fad5d16ba4331fa0faf8a98ad8a82f46ea3298152a1
22:55:15 :: 2023/02/25 22:55:15 [DEBUG] sha256[sample_pet/ssh/sshd_config]=ff4f8ceaae2ea2432f5e3fad5d16ba4331fa0faf8a98ad8a82f46ea3298152a1 != sha256[sample_pet/ssh/user_ssh_config]=3538b9a926a328a14aaa7428c138aad2e7fcb321090045f3a5ca225351c4537b
22:55:15 :: --- PASS: TestFileToCopy (0.00s)
22:55:15 :: === RUN   TestChmod
22:55:15 :: 2023/02/25 22:55:15 [INFO] /dev/null is Dcrw-rw-rw- instead of -rw-r--r--
22:55:15 :: 2023/02/25 22:55:15 [DEBUG] /etc/passwd is -rw-r--r-- already
22:55:15 :: --- PASS: TestChmod (0.00s)
22:55:15 :: === RUN   TestChown
22:55:15 :: 2023/02/25 22:55:15 [DEBUG] /etc/passwd is owned by 0:0 already
22:55:15 :: 2023/02/25 22:55:15 [INFO] /etc/passwd is owned by uid 0 instead of nobody
22:55:15 :: --- PASS: TestChown (0.00s)
22:55:15 :: === RUN   TestLn
22:55:15 :: 2023/02/25 22:55:15 [ERROR] /etc/passwd already exists
22:55:15 :: --- PASS: TestLn (0.00s)
22:55:15 :: === RUN   TestMkdir
22:55:15 :: --- PASS: TestMkdir (0.00s)
22:55:15 :: PASS
22:55:15 :: ok  	github.com/ema/pets	7.280s