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

SparrowCI Report - branch-melezhik-pets-archlinux | [image: melezhik/sparrow:debian]

  • Summary
  • Pipeline YAML
  • Report
BuildID: 3165
Status: OK
Image: melezhik/sparrow:debian
Worker status: OK
---
Date: 03.03.2023 @ 03:31
Time elapsed: 237 sec
---
SCM: https://github.com/melezhik/pets.git
Git sha: 0d3760a
Git comment: test against archlinux
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"; 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
03:31:26 :: [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]
03:30:48 :: [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]
03:31:34 :: go version go1.19.3 linux/amd64
[task stderr]
03:31:35 :: go: downloading github.com/hashicorp/logutils v1.0.0
03:31:35 :: github.com/hashicorp/logutils
03:31:35 :: github.com/ema/pets
03:30:16 :: [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
03:30:19 :: [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]
03:30:21 :: 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]
03:31:35 :: Run tests for OS: debian ...
03:31:35 :: go version go1.19.3 linux/amd64
03:31:37 :: === RUN   TestBadUser
03:31:37 :: --- PASS: TestBadUser (0.00s)
03:31:37 :: === RUN   TestBadGroup
03:31:37 :: --- PASS: TestBadGroup (0.00s)
03:31:37 :: === RUN   TestShortModes
03:31:37 :: --- PASS: TestShortModes (0.00s)
03:31:37 :: === RUN   TestOK
03:31:37 :: --- PASS: TestOK (0.00s)
03:31:37 :: === RUN   TestFileIsValidTrue
03:31:37 :: 2023/03/03 03:31:37 [DEBUG] gvim is a valid package name
03:31:37 :: 2023/03/03 03:31:37 [DEBUG] same sha256 for /dev/null and /dev/null: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
03:31:37 :: --- PASS: TestFileIsValidTrue (0.55s)
03:31:37 :: === RUN   TestFileIsValidBadPackage
03:31:38 :: 2023/03/03 03:31:38 [ERROR] not-an-actual-package is not an available package
03:31:38 :: --- PASS: TestFileIsValidBadPackage (0.65s)
03:31:38 :: === RUN   TestFileIsValidPrePathError
03:31:38 :: 2023/03/03 03:31:38 [DEBUG] gvim is a valid package name
03:31:38 :: 2023/03/03 03:31:38 [DEBUG] sha256[README.adoc]=d269883513ac2118ba9925a72a3eed564e05b2c87051d0ad4293c090644a4e53 != sha256[/etc/motd]=a378977155fb42bb006496321cbe31f74cbda803c3f6ca590f30e76d1afad921
03:31:38 :: 2023/03/03 03:31:38 [INFO] pre-update command [/bin/whatever-but-not-a-valid-path README.adoc] failed due to PathError. Ignoring for now
03:31:38 :: --- PASS: TestFileIsValidPrePathError (0.56s)
03:31:38 :: === RUN   TestFileIsValidPathError
03:31:39 :: 2023/03/03 03:31:39 [DEBUG] gvim is a valid package name
03:31:39 :: 2023/03/03 03:31:39 [DEBUG] sha256[README.adoc]=d269883513ac2118ba9925a72a3eed564e05b2c87051d0ad4293c090644a4e53 != sha256[/etc/motd]=a378977155fb42bb006496321cbe31f74cbda803c3f6ca590f30e76d1afad921
03:31:39 :: 2023/03/03 03:31:39 [INFO] pre-update command [/bin/whatever-but-not-a-valid-path README.adoc] failed due to PathError. Ignoring for now
03:31:39 :: 2023/03/03 03:31:39 [DEBUG] gvim is a valid package name
03:31:39 :: 2023/03/03 03:31:39 [DEBUG] sha256[README.adoc]=d269883513ac2118ba9925a72a3eed564e05b2c87051d0ad4293c090644a4e53 != sha256[/etc/motd]=a378977155fb42bb006496321cbe31f74cbda803c3f6ca590f30e76d1afad921
03:31:40 :: 2023/03/03 03:31:39 [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
03:31:40 :: --- PASS: TestFileIsValidPathError (1.08s)
03:31:40 :: === RUN   TestNeedsCopyNoSource
03:31:40 :: --- PASS: TestNeedsCopyNoSource (0.00s)
03:31:40 :: === RUN   TestNeedsCopySourceNotThere
03:31:40 :: 2023/03/03 03:31:39 [ERROR] cannot determine sha256 of Source file something-very-funny.lol: open something-very-funny.lol: no such file or directory
03:31:40 :: --- PASS: TestNeedsCopySourceNotThere (0.00s)
03:31:40 :: === RUN   TestNeedsLinkNoDest
03:31:40 :: --- PASS: TestNeedsLinkNoDest (0.00s)
03:31:40 :: === RUN   TestNeedsLinkHappyPathLINK
03:31:40 :: --- PASS: TestNeedsLinkHappyPathLINK (0.00s)
03:31:40 :: === RUN   TestNeedsLinkHappyPathNONE
03:31:40 :: 2023/03/03 03:31:39 [DEBUG] sample_pet/README.txt is a symlink to sample_pet/README already
03:31:40 :: --- PASS: TestNeedsLinkHappyPathNONE (0.00s)
03:31:40 :: === RUN   TestNeedsLinkDestExists
03:31:40 :: 2023/03/03 03:31:39 [ERROR] /etc/passwd already exists
03:31:40 :: --- PASS: TestNeedsLinkDestExists (0.00s)
03:31:40 :: === RUN   TestNeedsLinkDestIsSymlink
03:31:40 :: 2023/03/03 03:31:39 [ERROR] /etc/mtab is a symlink to /proc/990/mounts instead of sample_pet/vimrc
03:31:40 :: --- PASS: TestNeedsLinkDestIsSymlink (0.00s)
03:31:40 :: === RUN   TestNeedsDirNoDirectory
03:31:40 :: --- PASS: TestNeedsDirNoDirectory (0.00s)
03:31:40 :: === RUN   TestNeedsDirHappyPathDIR
03:31:40 :: --- PASS: TestNeedsDirHappyPathDIR (0.00s)
03:31:40 :: === RUN   TestNeedsDirHappyPathNONE
03:31:40 :: --- PASS: TestNeedsDirHappyPathNONE (0.00s)
03:31:40 :: === RUN   TestNeedsDirDestIsFile
03:31:40 :: 2023/03/03 03:31:39 [ERROR] /etc/passwd already exists and it is not a directory
03:31:40 :: --- PASS: TestNeedsDirDestIsFile (0.00s)
03:31:40 :: === RUN   TestParseFlags
03:31:40 :: --- PASS: TestParseFlags (0.00s)
03:31:40 :: === RUN   TestGetLogFilter
03:31:40 :: --- PASS: TestGetLogFilter (0.00s)
03:31:40 :: === RUN   TestPkgIsValid
03:31:40 :: 2023/03/03 03:31:40 [DEBUG] coreutils is a valid package name
03:31:40 :: --- PASS: TestPkgIsValid (0.64s)
03:31:40 :: === RUN   TestPkgIsNotValid
03:31:41 :: 2023/03/03 03:31:41 [ERROR] obviously-this-cannot-be valid ? is not an available package
03:31:41 :: --- PASS: TestPkgIsNotValid (0.74s)
03:31:41 :: === RUN   TestIsInstalled
03:31:41 :: --- PASS: TestIsInstalled (0.60s)
03:31:41 :: === RUN   TestIsNotInstalled
03:31:43 :: 2023/03/03 03:31:43 [ERROR] no 'Installed:' line in apt-cache policy this is getting ridiculous
03:31:43 :: --- PASS: TestIsNotInstalled (1.03s)
03:31:43 :: === RUN   TestReadModelinesFileNotFound
03:31:43 :: --- PASS: TestReadModelinesFileNotFound (0.00s)
03:31:43 :: === RUN   TestReadModelinesZero
03:31:43 :: --- PASS: TestReadModelinesZero (0.00s)
03:31:43 :: === RUN   TestReadModelinesNonZero
03:31:43 :: --- PASS: TestReadModelinesNonZero (0.00s)
03:31:43 :: === RUN   TestParseModelineErr
03:31:43 :: --- PASS: TestParseModelineErr (0.00s)
03:31:43 :: === RUN   TestParseModelineBadKeyword
03:31:43 :: --- PASS: TestParseModelineBadKeyword (0.00s)
03:31:43 :: === RUN   TestParseModelineOKDestfile
03:31:43 :: --- PASS: TestParseModelineOKDestfile (0.00s)
03:31:43 :: === RUN   TestParseModelineOKSymlink
03:31:43 :: --- PASS: TestParseModelineOKSymlink (0.00s)
03:31:43 :: === RUN   TestParseModelineOKPackage
03:31:43 :: --- PASS: TestParseModelineOKPackage (0.00s)
03:31:43 :: === RUN   TestPkgsToInstall
03:31:43 :: 2023/03/03 03:31:43 [DEBUG] binutils already installed
03:31:44 :: 2023/03/03 03:31:44 [DEBUG] binutils already installed
03:31:44 :: 2023/03/03 03:31:44 [INFO] abiword not installed
03:31:44 :: --- PASS: TestPkgsToInstall (1.85s)
03:31:44 :: === RUN   TestFileToCopy
03:31:44 :: 2023/03/03 03:31:44 [DEBUG] same sha256 for sample_pet/ssh/sshd_config and sample_pet/ssh/sshd_config: ff4f8ceaae2ea2432f5e3fad5d16ba4331fa0faf8a98ad8a82f46ea3298152a1
03:31:44 :: 2023/03/03 03:31:44 [DEBUG] sha256[sample_pet/ssh/sshd_config]=ff4f8ceaae2ea2432f5e3fad5d16ba4331fa0faf8a98ad8a82f46ea3298152a1 != sha256[sample_pet/ssh/user_ssh_config]=3538b9a926a328a14aaa7428c138aad2e7fcb321090045f3a5ca225351c4537b
03:31:44 :: --- PASS: TestFileToCopy (0.00s)
03:31:44 :: === RUN   TestChmod
03:31:44 :: 2023/03/03 03:31:44 [INFO] /dev/null is Dcrw-rw-rw- instead of -rw-r--r--
03:31:44 :: 2023/03/03 03:31:44 [DEBUG] /etc/passwd is -rw-r--r-- already
03:31:44 :: --- PASS: TestChmod (0.00s)
03:31:44 :: === RUN   TestChown
03:31:44 :: 2023/03/03 03:31:44 [DEBUG] /etc/passwd is owned by 0:0 already
03:31:44 :: 2023/03/03 03:31:44 [INFO] /etc/passwd is owned by uid 0 instead of nobody
03:31:44 :: --- PASS: TestChown (0.00s)
03:31:44 :: === RUN   TestLn
03:31:44 :: 2023/03/03 03:31:44 [ERROR] /etc/passwd already exists
03:31:44 :: --- PASS: TestLn (0.00s)
03:31:44 :: === RUN   TestMkdir
03:31:44 :: --- PASS: TestMkdir (0.00s)
03:31:44 :: PASS
03:31:44 :: ok  	github.com/ema/pets	7.714s