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: 3325
Status: OK
Image: melezhik/sparrow:ubuntu
Worker status: OK
---
Date: 16.05.2023 @ 06:01
Time elapsed: 319 sec
---
SCM: https://github.com/ema/pets.git
Git sha: 1c808aa
Git comment: symlink: create destination directory
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
06:01:18 :: [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]
06:00:43 :: [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]
06:01:24 :: go version go1.19.3 linux/amd64
[task stderr]
06:01:24 :: go: downloading github.com/hashicorp/logutils v1.0.0
06:01:24 :: github.com/hashicorp/logutils
06:01:24 :: github.com/ema/pets
06:00:15 :: [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
06:00:17 :: [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]
06:00:19 :: 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]
06:01:27 :: Run tests for OS: ubuntu ...
06:01:27 :: go version go1.19.3 linux/amd64
06:01:29 :: === RUN   TestBadUser
06:01:29 :: --- PASS: TestBadUser (0.00s)
06:01:29 :: === RUN   TestBadGroup
06:01:29 :: --- PASS: TestBadGroup (0.00s)
06:01:29 :: === RUN   TestShortModes
06:01:29 :: --- PASS: TestShortModes (0.00s)
06:01:29 :: === RUN   TestOK
06:01:29 :: --- PASS: TestOK (0.00s)
06:01:29 :: === RUN   TestFileIsValidTrue
06:01:29 :: 2023/05/16 06:01:29 [DEBUG] gvim is a valid package name
06:01:29 :: 2023/05/16 06:01:29 [DEBUG] same sha256 for /dev/null and /dev/null: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
06:01:29 :: --- PASS: TestFileIsValidTrue (0.66s)
06:01:29 :: === RUN   TestFileIsValidBadPackage
06:01:30 :: 2023/05/16 06:01:30 [ERROR] not-an-actual-package is not an available package
06:01:30 :: --- PASS: TestFileIsValidBadPackage (0.66s)
06:01:30 :: === RUN   TestFileIsValidPrePathError
06:01:31 :: 2023/05/16 06:01:31 [DEBUG] gvim is a valid package name
06:01:31 :: 2023/05/16 06:01:31 [INFO] pre-update command [/bin/whatever-but-not-a-valid-path README.adoc] failed due to PathError. Ignoring for now
06:01:31 :: --- PASS: TestFileIsValidPrePathError (0.68s)
06:01:31 :: === RUN   TestFileIsValidPathError
06:01:31 :: 2023/05/16 06:01:31 [DEBUG] gvim is a valid package name
06:01:31 :: 2023/05/16 06:01:31 [INFO] pre-update command [/bin/whatever-but-not-a-valid-path README.adoc] failed due to PathError. Ignoring for now
06:01:32 :: 2023/05/16 06:01:32 [DEBUG] gvim is a valid package name
06:01:32 :: 2023/05/16 06:01:32 [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
06:01:32 :: --- PASS: TestFileIsValidPathError (1.31s)
06:01:32 :: === RUN   TestNeedsCopyNoSource
06:01:32 :: --- PASS: TestNeedsCopyNoSource (0.00s)
06:01:32 :: === RUN   TestNeedsCopySourceNotThere
06:01:32 :: 2023/05/16 06:01:32 [ERROR] cannot determine sha256 of Source file something-very-funny.lol: open something-very-funny.lol: no such file or directory
06:01:32 :: --- PASS: TestNeedsCopySourceNotThere (0.00s)
06:01:32 :: === RUN   TestNeedsLinkNoDest
06:01:32 :: --- PASS: TestNeedsLinkNoDest (0.00s)
06:01:32 :: === RUN   TestNeedsLinkHappyPathLINK
06:01:32 :: --- PASS: TestNeedsLinkHappyPathLINK (0.00s)
06:01:32 :: === RUN   TestNeedsLinkHappyPathNONE
06:01:32 :: 2023/05/16 06:01:32 [DEBUG] sample_pet/README.txt is a symlink to sample_pet/README already
06:01:32 :: --- PASS: TestNeedsLinkHappyPathNONE (0.00s)
06:01:32 :: === RUN   TestNeedsLinkDestExists
06:01:32 :: 2023/05/16 06:01:32 [ERROR] /etc/passwd already exists
06:01:32 :: --- PASS: TestNeedsLinkDestExists (0.00s)
06:01:32 :: === RUN   TestNeedsLinkDestIsSymlink
06:01:32 :: 2023/05/16 06:01:32 [ERROR] /etc/mtab is a symlink to /proc/1017/mounts instead of sample_pet/vimrc
06:01:32 :: --- PASS: TestNeedsLinkDestIsSymlink (0.00s)
06:01:32 :: === RUN   TestNeedsDirNoDirectory
06:01:32 :: --- PASS: TestNeedsDirNoDirectory (0.00s)
06:01:32 :: === RUN   TestNeedsDirHappyPathDIR
06:01:32 :: --- PASS: TestNeedsDirHappyPathDIR (0.00s)
06:01:32 :: === RUN   TestNeedsDirHappyPathNONE
06:01:32 :: --- PASS: TestNeedsDirHappyPathNONE (0.00s)
06:01:32 :: === RUN   TestNeedsDirDestIsFile
06:01:32 :: 2023/05/16 06:01:32 [ERROR] /etc/passwd already exists and it is not a directory
06:01:32 :: --- PASS: TestNeedsDirDestIsFile (0.00s)
06:01:32 :: === RUN   TestParseFlags
06:01:32 :: --- PASS: TestParseFlags (0.00s)
06:01:32 :: === RUN   TestGetLogFilter
06:01:32 :: --- PASS: TestGetLogFilter (0.00s)
06:01:32 :: === RUN   TestPkgIsValid
06:01:33 :: 2023/05/16 06:01:33 [DEBUG] coreutils is a valid package name
06:01:33 :: --- PASS: TestPkgIsValid (0.66s)
06:01:33 :: === RUN   TestPkgIsNotValid
06:01:34 :: 2023/05/16 06:01:34 [ERROR] obviously-this-cannot-be valid ? is not an available package
06:01:34 :: --- PASS: TestPkgIsNotValid (0.76s)
06:01:34 :: === RUN   TestIsInstalled
06:01:34 :: --- PASS: TestIsInstalled (0.69s)
06:01:34 :: === RUN   TestIsNotInstalled
06:01:36 :: 2023/05/16 06:01:36 [ERROR] no 'Installed:' line in apt-cache policy this is getting ridiculous
06:01:36 :: --- PASS: TestIsNotInstalled (1.36s)
06:01:36 :: === RUN   TestReadModelinesFileNotFound
06:01:36 :: --- PASS: TestReadModelinesFileNotFound (0.00s)
06:01:36 :: === RUN   TestReadModelinesZero
06:01:36 :: --- PASS: TestReadModelinesZero (0.00s)
06:01:36 :: === RUN   TestReadModelinesNonZero
06:01:36 :: --- PASS: TestReadModelinesNonZero (0.00s)
06:01:36 :: === RUN   TestParseModelineErr
06:01:36 :: --- PASS: TestParseModelineErr (0.00s)
06:01:36 :: === RUN   TestParseModelineBadKeyword
06:01:36 :: --- PASS: TestParseModelineBadKeyword (0.00s)
06:01:36 :: === RUN   TestParseModelineOKDestfile
06:01:36 :: --- PASS: TestParseModelineOKDestfile (0.00s)
06:01:36 :: === RUN   TestParseModelineOKSymlink
06:01:36 :: --- PASS: TestParseModelineOKSymlink (0.00s)
06:01:36 :: === RUN   TestParseModelineOKPackage
06:01:36 :: --- PASS: TestParseModelineOKPackage (0.00s)
06:01:36 :: === RUN   TestPkgsToInstall
06:01:36 :: 2023/05/16 06:01:36 [DEBUG] binutils already installed
06:01:37 :: 2023/05/16 06:01:37 [DEBUG] binutils already installed
06:01:38 :: 2023/05/16 06:01:38 [INFO] abiword not installed
06:01:38 :: --- PASS: TestPkgsToInstall (2.10s)
06:01:38 :: === RUN   TestFileToCopy
06:01:38 :: 2023/05/16 06:01:38 [DEBUG] same sha256 for sample_pet/ssh/sshd_config and sample_pet/ssh/sshd_config: ff4f8ceaae2ea2432f5e3fad5d16ba4331fa0faf8a98ad8a82f46ea3298152a1
06:01:38 :: 2023/05/16 06:01:38 [DEBUG] sha256[sample_pet/ssh/sshd_config]=ff4f8ceaae2ea2432f5e3fad5d16ba4331fa0faf8a98ad8a82f46ea3298152a1 != sha256[sample_pet/ssh/user_ssh_config]=3538b9a926a328a14aaa7428c138aad2e7fcb321090045f3a5ca225351c4537b
06:01:38 :: --- PASS: TestFileToCopy (0.00s)
06:01:38 :: === RUN   TestChmod
06:01:38 :: 2023/05/16 06:01:38 [INFO] /dev/null is Dcrw-rw-rw- instead of -rw-r--r--
06:01:38 :: 2023/05/16 06:01:38 [DEBUG] /etc/passwd is -rw-r--r-- already
06:01:38 :: --- PASS: TestChmod (0.00s)
06:01:38 :: === RUN   TestChown
06:01:38 :: 2023/05/16 06:01:38 [DEBUG] /etc/passwd is owned by 0:0 already
06:01:38 :: 2023/05/16 06:01:38 [INFO] /etc/passwd is owned by uid 0 instead of nobody
06:01:38 :: --- PASS: TestChown (0.00s)
06:01:38 :: === RUN   TestLn
06:01:38 :: 2023/05/16 06:01:38 [ERROR] /etc/passwd already exists
06:01:38 :: --- PASS: TestLn (0.00s)
06:01:38 :: === RUN   TestMkdir
06:01:38 :: --- PASS: TestMkdir (0.00s)
06:01:38 :: PASS
06:01:38 :: ok  	github.com/ema/pets	8.883s