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: 3320
Status: OK
Image: melezhik/sparrow:debian
Worker status: OK
---
Date: 16.05.2023 @ 05:51
Time elapsed: 214 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
05:50:39 :: [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]
05:50:05 :: [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]
05:50:45 :: go version go1.19.3 linux/amd64
[task stderr]
05:50:46 :: go: downloading github.com/hashicorp/logutils v1.0.0
05:50:46 :: github.com/hashicorp/logutils
05:50:46 :: github.com/ema/pets
05:49:37 :: [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
05:49:40 :: [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]
05:49:41 :: 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]
05:50:50 :: Run tests for OS: debian ...
05:50:50 :: go version go1.19.3 linux/amd64
05:50:52 :: === RUN   TestBadUser
05:50:52 :: --- PASS: TestBadUser (0.00s)
05:50:52 :: === RUN   TestBadGroup
05:50:52 :: --- PASS: TestBadGroup (0.00s)
05:50:52 :: === RUN   TestShortModes
05:50:52 :: --- PASS: TestShortModes (0.00s)
05:50:52 :: === RUN   TestOK
05:50:52 :: --- PASS: TestOK (0.00s)
05:50:52 :: === RUN   TestFileIsValidTrue
05:50:52 :: 2023/05/16 05:50:52 [DEBUG] gvim is a valid package name
05:50:52 :: 2023/05/16 05:50:52 [DEBUG] same sha256 for /dev/null and /dev/null: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
05:50:52 :: --- PASS: TestFileIsValidTrue (0.45s)
05:50:52 :: === RUN   TestFileIsValidBadPackage
05:50:53 :: 2023/05/16 05:50:53 [ERROR] not-an-actual-package is not an available package
05:50:53 :: --- PASS: TestFileIsValidBadPackage (0.44s)
05:50:53 :: === RUN   TestFileIsValidPrePathError
05:50:53 :: 2023/05/16 05:50:53 [DEBUG] gvim is a valid package name
05:50:53 :: 2023/05/16 05:50:53 [DEBUG] sha256[README.adoc]=d269883513ac2118ba9925a72a3eed564e05b2c87051d0ad4293c090644a4e53 != sha256[/etc/motd]=a378977155fb42bb006496321cbe31f74cbda803c3f6ca590f30e76d1afad921
05:50:53 :: 2023/05/16 05:50:53 [INFO] pre-update command [/bin/whatever-but-not-a-valid-path README.adoc] failed due to PathError. Ignoring for now
05:50:53 :: --- PASS: TestFileIsValidPrePathError (0.46s)
05:50:53 :: === RUN   TestFileIsValidPathError
05:50:53 :: 2023/05/16 05:50:53 [DEBUG] gvim is a valid package name
05:50:53 :: 2023/05/16 05:50:53 [DEBUG] sha256[README.adoc]=d269883513ac2118ba9925a72a3eed564e05b2c87051d0ad4293c090644a4e53 != sha256[/etc/motd]=a378977155fb42bb006496321cbe31f74cbda803c3f6ca590f30e76d1afad921
05:50:53 :: 2023/05/16 05:50:53 [INFO] pre-update command [/bin/whatever-but-not-a-valid-path README.adoc] failed due to PathError. Ignoring for now
05:50:54 :: 2023/05/16 05:50:54 [DEBUG] gvim is a valid package name
05:50:54 :: 2023/05/16 05:50:54 [DEBUG] sha256[README.adoc]=d269883513ac2118ba9925a72a3eed564e05b2c87051d0ad4293c090644a4e53 != sha256[/etc/motd]=a378977155fb42bb006496321cbe31f74cbda803c3f6ca590f30e76d1afad921
05:50:54 :: 2023/05/16 05:50:54 [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
05:50:54 :: --- PASS: TestFileIsValidPathError (0.90s)
05:50:54 :: === RUN   TestNeedsCopyNoSource
05:50:54 :: --- PASS: TestNeedsCopyNoSource (0.00s)
05:50:54 :: === RUN   TestNeedsCopySourceNotThere
05:50:54 :: 2023/05/16 05:50:54 [ERROR] cannot determine sha256 of Source file something-very-funny.lol: open something-very-funny.lol: no such file or directory
05:50:54 :: --- PASS: TestNeedsCopySourceNotThere (0.00s)
05:50:54 :: === RUN   TestNeedsLinkNoDest
05:50:54 :: --- PASS: TestNeedsLinkNoDest (0.00s)
05:50:54 :: === RUN   TestNeedsLinkHappyPathLINK
05:50:54 :: --- PASS: TestNeedsLinkHappyPathLINK (0.00s)
05:50:54 :: === RUN   TestNeedsLinkHappyPathNONE
05:50:54 :: 2023/05/16 05:50:54 [DEBUG] sample_pet/README.txt is a symlink to sample_pet/README already
05:50:54 :: --- PASS: TestNeedsLinkHappyPathNONE (0.00s)
05:50:54 :: === RUN   TestNeedsLinkDestExists
05:50:54 :: 2023/05/16 05:50:54 [ERROR] /etc/passwd already exists
05:50:54 :: --- PASS: TestNeedsLinkDestExists (0.00s)
05:50:54 :: === RUN   TestNeedsLinkDestIsSymlink
05:50:54 :: 2023/05/16 05:50:54 [ERROR] /etc/mtab is a symlink to /proc/1013/mounts instead of sample_pet/vimrc
05:50:54 :: --- PASS: TestNeedsLinkDestIsSymlink (0.00s)
05:50:54 :: === RUN   TestNeedsDirNoDirectory
05:50:54 :: --- PASS: TestNeedsDirNoDirectory (0.00s)
05:50:54 :: === RUN   TestNeedsDirHappyPathDIR
05:50:54 :: --- PASS: TestNeedsDirHappyPathDIR (0.00s)
05:50:54 :: === RUN   TestNeedsDirHappyPathNONE
05:50:54 :: --- PASS: TestNeedsDirHappyPathNONE (0.00s)
05:50:54 :: === RUN   TestNeedsDirDestIsFile
05:50:54 :: 2023/05/16 05:50:54 [ERROR] /etc/passwd already exists and it is not a directory
05:50:54 :: --- PASS: TestNeedsDirDestIsFile (0.00s)
05:50:54 :: === RUN   TestParseFlags
05:50:54 :: --- PASS: TestParseFlags (0.00s)
05:50:54 :: === RUN   TestGetLogFilter
05:50:54 :: --- PASS: TestGetLogFilter (0.00s)
05:50:54 :: === RUN   TestPkgIsValid
05:50:54 :: 2023/05/16 05:50:54 [DEBUG] coreutils is a valid package name
05:50:54 :: --- PASS: TestPkgIsValid (0.45s)
05:50:54 :: === RUN   TestPkgIsNotValid
05:50:55 :: 2023/05/16 05:50:55 [ERROR] obviously-this-cannot-be valid ? is not an available package
05:50:55 :: --- PASS: TestPkgIsNotValid (0.51s)
05:50:55 :: === RUN   TestIsInstalled
05:50:55 :: --- PASS: TestIsInstalled (0.40s)
05:50:55 :: === RUN   TestIsNotInstalled
05:50:56 :: 2023/05/16 05:50:56 [ERROR] no 'Installed:' line in apt-cache policy this is getting ridiculous
05:50:56 :: --- PASS: TestIsNotInstalled (0.89s)
05:50:56 :: === RUN   TestReadModelinesFileNotFound
05:50:56 :: --- PASS: TestReadModelinesFileNotFound (0.00s)
05:50:56 :: === RUN   TestReadModelinesZero
05:50:56 :: --- PASS: TestReadModelinesZero (0.00s)
05:50:56 :: === RUN   TestReadModelinesNonZero
05:50:56 :: --- PASS: TestReadModelinesNonZero (0.00s)
05:50:56 :: === RUN   TestParseModelineErr
05:50:56 :: --- PASS: TestParseModelineErr (0.00s)
05:50:56 :: === RUN   TestParseModelineBadKeyword
05:50:56 :: --- PASS: TestParseModelineBadKeyword (0.00s)
05:50:56 :: === RUN   TestParseModelineOKDestfile
05:50:56 :: --- PASS: TestParseModelineOKDestfile (0.00s)
05:50:56 :: === RUN   TestParseModelineOKSymlink
05:50:56 :: --- PASS: TestParseModelineOKSymlink (0.00s)
05:50:56 :: === RUN   TestParseModelineOKPackage
05:50:56 :: --- PASS: TestParseModelineOKPackage (0.00s)
05:50:56 :: === RUN   TestPkgsToInstall
05:50:57 :: 2023/05/16 05:50:57 [DEBUG] binutils already installed
05:50:57 :: 2023/05/16 05:50:57 [DEBUG] binutils already installed
05:50:58 :: 2023/05/16 05:50:58 [INFO] abiword not installed
05:50:58 :: --- PASS: TestPkgsToInstall (1.31s)
05:50:58 :: === RUN   TestFileToCopy
05:50:58 :: 2023/05/16 05:50:58 [DEBUG] same sha256 for sample_pet/ssh/sshd_config and sample_pet/ssh/sshd_config: ff4f8ceaae2ea2432f5e3fad5d16ba4331fa0faf8a98ad8a82f46ea3298152a1
05:50:58 :: 2023/05/16 05:50:58 [DEBUG] sha256[sample_pet/ssh/sshd_config]=ff4f8ceaae2ea2432f5e3fad5d16ba4331fa0faf8a98ad8a82f46ea3298152a1 != sha256[sample_pet/ssh/user_ssh_config]=3538b9a926a328a14aaa7428c138aad2e7fcb321090045f3a5ca225351c4537b
05:50:58 :: --- PASS: TestFileToCopy (0.00s)
05:50:58 :: === RUN   TestChmod
05:50:58 :: 2023/05/16 05:50:58 [INFO] /dev/null is Dcrw-rw-rw- instead of -rw-r--r--
05:50:58 :: 2023/05/16 05:50:58 [DEBUG] /etc/passwd is -rw-r--r-- already
05:50:58 :: --- PASS: TestChmod (0.00s)
05:50:58 :: === RUN   TestChown
05:50:58 :: 2023/05/16 05:50:58 [DEBUG] /etc/passwd is owned by 0:0 already
05:50:58 :: 2023/05/16 05:50:58 [INFO] /etc/passwd is owned by uid 0 instead of nobody
05:50:58 :: --- PASS: TestChown (0.00s)
05:50:58 :: === RUN   TestLn
05:50:58 :: 2023/05/16 05:50:58 [ERROR] /etc/passwd already exists
05:50:58 :: --- PASS: TestLn (0.00s)
05:50:58 :: === RUN   TestMkdir
05:50:58 :: --- PASS: TestMkdir (0.00s)
05:50:58 :: PASS
05:50:58 :: ok  	github.com/ema/pets	5.823s