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

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

  • Summary
  • Pipeline YAML
  • Report
BuildID: 3193
Status: OK
Image: melezhik/sparrow:ubuntu
Worker status: OK
---
Date: 04.03.2023 @ 13:15
Time elapsed: 369 sec
---
SCM: https://github.com/ema/pets.git
Git sha: 7db9c24
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
13:14:59 :: [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]
13:14:19 :: [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]
13:15:06 :: go version go1.19.3 linux/amd64
[task stderr]
13:15:07 :: go: downloading github.com/hashicorp/logutils v1.0.0
13:15:07 :: github.com/hashicorp/logutils
13:15:07 :: github.com/ema/pets
13:13:47 :: [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
13:13: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]
13:13: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" || 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]
13:15:11 :: Run tests for OS: ubuntu ...
13:15:11 :: go version go1.19.3 linux/amd64
13:15:13 :: === RUN   TestBadUser
13:15:13 :: --- PASS: TestBadUser (0.00s)
13:15:13 :: === RUN   TestBadGroup
13:15:13 :: --- PASS: TestBadGroup (0.00s)
13:15:13 :: === RUN   TestShortModes
13:15:13 :: --- PASS: TestShortModes (0.00s)
13:15:13 :: === RUN   TestOK
13:15:13 :: --- PASS: TestOK (0.00s)
13:15:13 :: === RUN   TestFileIsValidTrue
13:15:13 :: 2023/03/04 13:15:13 [DEBUG] gvim is a valid package name
13:15:13 :: 2023/03/04 13:15:13 [DEBUG] same sha256 for /dev/null and /dev/null: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
13:15:13 :: --- PASS: TestFileIsValidTrue (0.85s)
13:15:13 :: === RUN   TestFileIsValidBadPackage
13:15:14 :: 2023/03/04 13:15:14 [ERROR] not-an-actual-package is not an available package
13:15:14 :: --- PASS: TestFileIsValidBadPackage (0.88s)
13:15:14 :: === RUN   TestFileIsValidPrePathError
13:15:15 :: 2023/03/04 13:15:15 [DEBUG] gvim is a valid package name
13:15:15 :: 2023/03/04 13:15:15 [INFO] pre-update command [/bin/whatever-but-not-a-valid-path README.adoc] failed due to PathError. Ignoring for now
13:15:15 :: --- PASS: TestFileIsValidPrePathError (0.83s)
13:15:15 :: === RUN   TestFileIsValidPathError
13:15:16 :: 2023/03/04 13:15:16 [DEBUG] gvim is a valid package name
13:15:16 :: 2023/03/04 13:15:16 [INFO] pre-update command [/bin/whatever-but-not-a-valid-path README.adoc] failed due to PathError. Ignoring for now
13:15:17 :: 2023/03/04 13:15:17 [DEBUG] gvim is a valid package name
13:15:17 :: 2023/03/04 13:15:17 [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
13:15:17 :: --- PASS: TestFileIsValidPathError (1.75s)
13:15:17 :: === RUN   TestNeedsCopyNoSource
13:15:17 :: --- PASS: TestNeedsCopyNoSource (0.00s)
13:15:17 :: === RUN   TestNeedsCopySourceNotThere
13:15:17 :: 2023/03/04 13:15:17 [ERROR] cannot determine sha256 of Source file something-very-funny.lol: open something-very-funny.lol: no such file or directory
13:15:17 :: --- PASS: TestNeedsCopySourceNotThere (0.00s)
13:15:17 :: === RUN   TestNeedsLinkNoDest
13:15:17 :: --- PASS: TestNeedsLinkNoDest (0.00s)
13:15:17 :: === RUN   TestNeedsLinkHappyPathLINK
13:15:17 :: --- PASS: TestNeedsLinkHappyPathLINK (0.00s)
13:15:17 :: === RUN   TestNeedsLinkHappyPathNONE
13:15:17 :: 2023/03/04 13:15:17 [DEBUG] sample_pet/README.txt is a symlink to sample_pet/README already
13:15:17 :: --- PASS: TestNeedsLinkHappyPathNONE (0.00s)
13:15:17 :: === RUN   TestNeedsLinkDestExists
13:15:17 :: 2023/03/04 13:15:17 [ERROR] /etc/passwd already exists
13:15:17 :: --- PASS: TestNeedsLinkDestExists (0.00s)
13:15:17 :: === RUN   TestNeedsLinkDestIsSymlink
13:15:17 :: 2023/03/04 13:15:17 [ERROR] /etc/mtab is a symlink to /proc/1019/mounts instead of sample_pet/vimrc
13:15:17 :: --- PASS: TestNeedsLinkDestIsSymlink (0.00s)
13:15:17 :: === RUN   TestNeedsDirNoDirectory
13:15:17 :: --- PASS: TestNeedsDirNoDirectory (0.00s)
13:15:17 :: === RUN   TestNeedsDirHappyPathDIR
13:15:17 :: --- PASS: TestNeedsDirHappyPathDIR (0.00s)
13:15:17 :: === RUN   TestNeedsDirHappyPathNONE
13:15:17 :: --- PASS: TestNeedsDirHappyPathNONE (0.00s)
13:15:17 :: === RUN   TestNeedsDirDestIsFile
13:15:17 :: 2023/03/04 13:15:17 [ERROR] /etc/passwd already exists and it is not a directory
13:15:17 :: --- PASS: TestNeedsDirDestIsFile (0.00s)
13:15:17 :: === RUN   TestParseFlags
13:15:17 :: --- PASS: TestParseFlags (0.00s)
13:15:17 :: === RUN   TestGetLogFilter
13:15:17 :: --- PASS: TestGetLogFilter (0.00s)
13:15:17 :: === RUN   TestPkgIsValid
13:15:18 :: 2023/03/04 13:15:18 [DEBUG] coreutils is a valid package name
13:15:18 :: --- PASS: TestPkgIsValid (0.83s)
13:15:18 :: === RUN   TestPkgIsNotValid
13:15:19 :: 2023/03/04 13:15:19 [ERROR] obviously-this-cannot-be valid ? is not an available package
13:15:19 :: --- PASS: TestPkgIsNotValid (0.95s)
13:15:19 :: === RUN   TestIsInstalled
13:15:20 :: --- PASS: TestIsInstalled (0.91s)
13:15:20 :: === RUN   TestIsNotInstalled
13:15:21 :: 2023/03/04 13:15:21 [ERROR] no 'Installed:' line in apt-cache policy this is getting ridiculous
13:15:21 :: --- PASS: TestIsNotInstalled (1.61s)
13:15:21 :: === RUN   TestReadModelinesFileNotFound
13:15:21 :: --- PASS: TestReadModelinesFileNotFound (0.00s)
13:15:21 :: === RUN   TestReadModelinesZero
13:15:21 :: --- PASS: TestReadModelinesZero (0.00s)
13:15:21 :: === RUN   TestReadModelinesNonZero
13:15:21 :: --- PASS: TestReadModelinesNonZero (0.00s)
13:15:21 :: === RUN   TestParseModelineErr
13:15:21 :: --- PASS: TestParseModelineErr (0.00s)
13:15:21 :: === RUN   TestParseModelineBadKeyword
13:15:21 :: --- PASS: TestParseModelineBadKeyword (0.00s)
13:15:21 :: === RUN   TestParseModelineOKDestfile
13:15:21 :: --- PASS: TestParseModelineOKDestfile (0.00s)
13:15:21 :: === RUN   TestParseModelineOKSymlink
13:15:21 :: --- PASS: TestParseModelineOKSymlink (0.00s)
13:15:21 :: === RUN   TestParseModelineOKPackage
13:15:21 :: --- PASS: TestParseModelineOKPackage (0.00s)
13:15:21 :: === RUN   TestPkgsToInstall
13:15:22 :: 2023/03/04 13:15:22 [DEBUG] binutils already installed
13:15:23 :: 2023/03/04 13:15:23 [DEBUG] binutils already installed
13:15:24 :: 2023/03/04 13:15:24 [INFO] abiword not installed
13:15:24 :: --- PASS: TestPkgsToInstall (2.81s)
13:15:24 :: === RUN   TestFileToCopy
13:15:24 :: 2023/03/04 13:15:24 [DEBUG] same sha256 for sample_pet/ssh/sshd_config and sample_pet/ssh/sshd_config: ff4f8ceaae2ea2432f5e3fad5d16ba4331fa0faf8a98ad8a82f46ea3298152a1
13:15:24 :: 2023/03/04 13:15:24 [DEBUG] sha256[sample_pet/ssh/sshd_config]=ff4f8ceaae2ea2432f5e3fad5d16ba4331fa0faf8a98ad8a82f46ea3298152a1 != sha256[sample_pet/ssh/user_ssh_config]=3538b9a926a328a14aaa7428c138aad2e7fcb321090045f3a5ca225351c4537b
13:15:24 :: --- PASS: TestFileToCopy (0.00s)
13:15:24 :: === RUN   TestChmod
13:15:24 :: 2023/03/04 13:15:24 [INFO] /dev/null is Dcrw-rw-rw- instead of -rw-r--r--
13:15:24 :: 2023/03/04 13:15:24 [DEBUG] /etc/passwd is -rw-r--r-- already
13:15:24 :: --- PASS: TestChmod (0.00s)
13:15:24 :: === RUN   TestChown
13:15:24 :: 2023/03/04 13:15:24 [DEBUG] /etc/passwd is owned by 0:0 already
13:15:24 :: 2023/03/04 13:15:24 [INFO] /etc/passwd is owned by uid 0 instead of nobody
13:15:24 :: --- PASS: TestChown (0.00s)
13:15:24 :: === RUN   TestLn
13:15:24 :: 2023/03/04 13:15:24 [ERROR] /etc/passwd already exists
13:15:24 :: --- PASS: TestLn (0.00s)
13:15:24 :: === RUN   TestMkdir
13:15:24 :: --- PASS: TestMkdir (0.00s)
13:15:24 :: PASS
13:15:24 :: ok  	github.com/ema/pets	11.424s