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: 3269
Status: OK
Image: melezhik/sparrow:ubuntu
Worker status: OK
---
Date: 28.04.2023 @ 14:19
Time elapsed: 382 sec
---
SCM: https://github.com/ema/pets.git
Git sha: c49d88d
Git comment: planner: higher priority to directory actions
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
14:18:42 :: [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]
14:18:00 :: [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]
14:18:51 :: go version go1.19.3 linux/amd64
[task stderr]
14:18:52 :: go: downloading github.com/hashicorp/logutils v1.0.0
14:18:52 :: github.com/hashicorp/logutils
14:18:52 :: github.com/ema/pets
14:17:27 :: [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
14:17:30 :: [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]
14:17:32 :: 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]
14:18:56 :: Run tests for OS: ubuntu ...
14:18:56 :: go version go1.19.3 linux/amd64
14:18:58 :: === RUN   TestBadUser
14:18:58 :: --- PASS: TestBadUser (0.00s)
14:18:58 :: === RUN   TestBadGroup
14:18:58 :: --- PASS: TestBadGroup (0.00s)
14:18:58 :: === RUN   TestShortModes
14:18:58 :: --- PASS: TestShortModes (0.00s)
14:18:58 :: === RUN   TestOK
14:18:58 :: --- PASS: TestOK (0.00s)
14:18:58 :: === RUN   TestFileIsValidTrue
14:18:59 :: 2023/04/28 14:18:59 [DEBUG] gvim is a valid package name
14:18:59 :: 2023/04/28 14:18:59 [DEBUG] same sha256 for /dev/null and /dev/null: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
14:18:59 :: --- PASS: TestFileIsValidTrue (0.85s)
14:18:59 :: === RUN   TestFileIsValidBadPackage
14:19:00 :: 2023/04/28 14:19:00 [ERROR] not-an-actual-package is not an available package
14:19:00 :: --- PASS: TestFileIsValidBadPackage (0.78s)
14:19:00 :: === RUN   TestFileIsValidPrePathError
14:19:01 :: 2023/04/28 14:19:01 [DEBUG] gvim is a valid package name
14:19:01 :: 2023/04/28 14:19:01 [INFO] pre-update command [/bin/whatever-but-not-a-valid-path README.adoc] failed due to PathError. Ignoring for now
14:19:01 :: --- PASS: TestFileIsValidPrePathError (0.94s)
14:19:01 :: === RUN   TestFileIsValidPathError
14:19:01 :: 2023/04/28 14:19:01 [DEBUG] gvim is a valid package name
14:19:01 :: 2023/04/28 14:19:01 [INFO] pre-update command [/bin/whatever-but-not-a-valid-path README.adoc] failed due to PathError. Ignoring for now
14:19:02 :: 2023/04/28 14:19:02 [DEBUG] gvim is a valid package name
14:19:02 :: 2023/04/28 14:19:02 [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
14:19:02 :: --- PASS: TestFileIsValidPathError (1.65s)
14:19:02 :: === RUN   TestNeedsCopyNoSource
14:19:02 :: --- PASS: TestNeedsCopyNoSource (0.00s)
14:19:02 :: === RUN   TestNeedsCopySourceNotThere
14:19:02 :: 2023/04/28 14:19:02 [ERROR] cannot determine sha256 of Source file something-very-funny.lol: open something-very-funny.lol: no such file or directory
14:19:02 :: --- PASS: TestNeedsCopySourceNotThere (0.00s)
14:19:02 :: === RUN   TestNeedsLinkNoDest
14:19:02 :: --- PASS: TestNeedsLinkNoDest (0.00s)
14:19:02 :: === RUN   TestNeedsLinkHappyPathLINK
14:19:02 :: --- PASS: TestNeedsLinkHappyPathLINK (0.00s)
14:19:02 :: === RUN   TestNeedsLinkHappyPathNONE
14:19:02 :: 2023/04/28 14:19:02 [DEBUG] sample_pet/README.txt is a symlink to sample_pet/README already
14:19:02 :: --- PASS: TestNeedsLinkHappyPathNONE (0.00s)
14:19:02 :: === RUN   TestNeedsLinkDestExists
14:19:02 :: 2023/04/28 14:19:02 [ERROR] /etc/passwd already exists
14:19:02 :: --- PASS: TestNeedsLinkDestExists (0.00s)
14:19:02 :: === RUN   TestNeedsLinkDestIsSymlink
14:19:02 :: 2023/04/28 14:19:02 [ERROR] /etc/mtab is a symlink to /proc/998/mounts instead of sample_pet/vimrc
14:19:02 :: --- PASS: TestNeedsLinkDestIsSymlink (0.00s)
14:19:02 :: === RUN   TestNeedsDirNoDirectory
14:19:02 :: --- PASS: TestNeedsDirNoDirectory (0.00s)
14:19:02 :: === RUN   TestNeedsDirHappyPathDIR
14:19:02 :: --- PASS: TestNeedsDirHappyPathDIR (0.00s)
14:19:02 :: === RUN   TestNeedsDirHappyPathNONE
14:19:02 :: --- PASS: TestNeedsDirHappyPathNONE (0.00s)
14:19:02 :: === RUN   TestNeedsDirDestIsFile
14:19:02 :: 2023/04/28 14:19:02 [ERROR] /etc/passwd already exists and it is not a directory
14:19:02 :: --- PASS: TestNeedsDirDestIsFile (0.00s)
14:19:02 :: === RUN   TestParseFlags
14:19:02 :: --- PASS: TestParseFlags (0.00s)
14:19:02 :: === RUN   TestGetLogFilter
14:19:02 :: --- PASS: TestGetLogFilter (0.00s)
14:19:02 :: === RUN   TestPkgIsValid
14:19:03 :: 2023/04/28 14:19:03 [DEBUG] coreutils is a valid package name
14:19:03 :: --- PASS: TestPkgIsValid (0.91s)
14:19:03 :: === RUN   TestPkgIsNotValid
14:19:04 :: 2023/04/28 14:19:04 [ERROR] obviously-this-cannot-be valid ? is not an available package
14:19:04 :: --- PASS: TestPkgIsNotValid (0.87s)
14:19:04 :: === RUN   TestIsInstalled
14:19:05 :: --- PASS: TestIsInstalled (0.86s)
14:19:05 :: === RUN   TestIsNotInstalled
14:19:07 :: 2023/04/28 14:19:07 [ERROR] no 'Installed:' line in apt-cache policy this is getting ridiculous
14:19:07 :: --- PASS: TestIsNotInstalled (1.70s)
14:19:07 :: === RUN   TestReadModelinesFileNotFound
14:19:07 :: --- PASS: TestReadModelinesFileNotFound (0.00s)
14:19:07 :: === RUN   TestReadModelinesZero
14:19:07 :: --- PASS: TestReadModelinesZero (0.00s)
14:19:07 :: === RUN   TestReadModelinesNonZero
14:19:07 :: --- PASS: TestReadModelinesNonZero (0.00s)
14:19:07 :: === RUN   TestParseModelineErr
14:19:07 :: --- PASS: TestParseModelineErr (0.00s)
14:19:07 :: === RUN   TestParseModelineBadKeyword
14:19:07 :: --- PASS: TestParseModelineBadKeyword (0.00s)
14:19:07 :: === RUN   TestParseModelineOKDestfile
14:19:07 :: --- PASS: TestParseModelineOKDestfile (0.00s)
14:19:07 :: === RUN   TestParseModelineOKSymlink
14:19:07 :: --- PASS: TestParseModelineOKSymlink (0.00s)
14:19:07 :: === RUN   TestParseModelineOKPackage
14:19:07 :: --- PASS: TestParseModelineOKPackage (0.00s)
14:19:07 :: === RUN   TestPkgsToInstall
14:19:07 :: 2023/04/28 14:19:07 [DEBUG] binutils already installed
14:19:08 :: 2023/04/28 14:19:08 [DEBUG] binutils already installed
14:19:09 :: 2023/04/28 14:19:09 [INFO] abiword not installed
14:19:09 :: --- PASS: TestPkgsToInstall (2.64s)
14:19:09 :: === RUN   TestFileToCopy
14:19:09 :: 2023/04/28 14:19:09 [DEBUG] same sha256 for sample_pet/ssh/sshd_config and sample_pet/ssh/sshd_config: ff4f8ceaae2ea2432f5e3fad5d16ba4331fa0faf8a98ad8a82f46ea3298152a1
14:19:09 :: 2023/04/28 14:19:09 [DEBUG] sha256[sample_pet/ssh/sshd_config]=ff4f8ceaae2ea2432f5e3fad5d16ba4331fa0faf8a98ad8a82f46ea3298152a1 != sha256[sample_pet/ssh/user_ssh_config]=3538b9a926a328a14aaa7428c138aad2e7fcb321090045f3a5ca225351c4537b
14:19:09 :: --- PASS: TestFileToCopy (0.00s)
14:19:09 :: === RUN   TestChmod
14:19:09 :: 2023/04/28 14:19:09 [INFO] /dev/null is Dcrw-rw-rw- instead of -rw-r--r--
14:19:09 :: 2023/04/28 14:19:09 [DEBUG] /etc/passwd is -rw-r--r-- already
14:19:09 :: --- PASS: TestChmod (0.00s)
14:19:09 :: === RUN   TestChown
14:19:09 :: 2023/04/28 14:19:09 [DEBUG] /etc/passwd is owned by 0:0 already
14:19:09 :: 2023/04/28 14:19:09 [INFO] /etc/passwd is owned by uid 0 instead of nobody
14:19:09 :: --- PASS: TestChown (0.00s)
14:19:09 :: === RUN   TestLn
14:19:09 :: 2023/04/28 14:19:09 [ERROR] /etc/passwd already exists
14:19:09 :: --- PASS: TestLn (0.00s)
14:19:09 :: === RUN   TestMkdir
14:19:09 :: --- PASS: TestMkdir (0.00s)
14:19:09 :: PASS
14:19:09 :: ok  	github.com/ema/pets	11.222s