build packages.x86_64-linux.go-tests
- 0.01 s
$ /nix/store/vzx1mi9c0xfadmsm9dhd83d005cb1qs9-coreutils-9.8/bin/timeout --kill-after=15s 1800s /nix/store/99b1z08awpxj8b6mzggn59gp1shljnff-nix-2.34.5/bin/nix --extra-experimental-features nix-command --extra-experimental-features flakes --log-format internal-json build --no-link git+https://codeberg.org/mtlynch/simpleauth?ref=no-gh&rev=1cc6d145030df7110b0cdec6a58237d80fc132eb#packages.x86_64-linux.go-tests --print-build-logs
- 0.07 s
- 0.46 s
Building go-tests
- 0.50 s
[go-tests] Phase: unpackPhase
- 0.50 s
[go-tests] unpacking sources
- 0.50 s
[go-tests] unpacking source archive /nix/store/bk58iv45qfmjy7ik18f700b0bpkg3yry-source
- 0.51 s
[go-tests] source root is source
- 0.51 s
[go-tests] Phase: patchPhase
- 0.51 s
[go-tests] patching sources
- 0.52 s
[go-tests] Phase: configurePhase
- 0.52 s
[go-tests] configuring
- 0.53 s
[go-tests] no configure script, doing nothing
- 0.53 s
[go-tests] Phase: buildPhase
- 0.53 s
[go-tests] building
- 0.53 s
[go-tests] patching script interpreter paths in ./dev-scripts
- 0.53 s
[go-tests] ./dev-scripts/check-trailing-newline: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/2ispfz80kmwrsvwndxkxs56irn86h43p-bash-5.1-p16/bin/bash"
- 0.54 s
[go-tests] ./dev-scripts/git-hooks/pre-commit: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/2ispfz80kmwrsvwndxkxs56irn86h43p-bash-5.1-p16/bin/bash"
- 0.54 s
[go-tests] ./dev-scripts/run-go-tests: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/2ispfz80kmwrsvwndxkxs56irn86h43p-bash-5.1-p16/bin/bash"
- 0.55 s
[go-tests] ./dev-scripts/update-scripts: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/2ispfz80kmwrsvwndxkxs56irn86h43p-bash-5.1-p16/bin/bash"
- 0.56 s
[go-tests] ./dev-scripts/enable-git-hooks: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/2ispfz80kmwrsvwndxkxs56irn86h43p-bash-5.1-p16/bin/bash"
- 0.56 s
[go-tests] ./dev-scripts/check-trailing-whitespace: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/2ispfz80kmwrsvwndxkxs56irn86h43p-bash-5.1-p16/bin/bash"
- 0.57 s
[go-tests] ./dev-scripts/check-go-formatting: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/2ispfz80kmwrsvwndxkxs56irn86h43p-bash-5.1-p16/bin/bash"
- 0.57 s
[go-tests] ./dev-scripts/check-bash: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/2ispfz80kmwrsvwndxkxs56irn86h43p-bash-5.1-p16/bin/bash"
- 0.59 s
[go-tests] + set -o pipefail
- 0.59 s
[go-tests] + full_test=
- 0.59 s
[go-tests] + go_test_flags=("-tags=netgo,osusergo,sqlite_json")
- 0.59 s
[go-tests] + readonly COVERAGE_FILE_RAW=.coverage.out
- 0.59 s
[go-tests] + COVERAGE_FILE_RAW=.coverage.out
- 0.59 s
[go-tests] + readonly COVERAGE_FILE_HTML=.coverage.html
- 0.59 s
[go-tests] + COVERAGE_FILE_HTML=.coverage.html
- 0.59 s
[go-tests] + [[ --full = \-\-\f\u\l\l ]]
- 0.59 s
[go-tests] + full_test=1
- 0.59 s
[go-tests] + go_test_flags+=("-v")
- 0.59 s
[go-tests] + go_test_flags+=("-race")
- 0.59 s
[go-tests] + go_test_flags+=("--coverprofile=${COVERAGE_FILE_RAW}")
- 0.59 s
[go-tests] + set -u
- 0.59 s
[go-tests] +++ dirname ./dev-scripts/run-go-tests
- 0.59 s
[go-tests] ++ cd ./dev-scripts
- 0.59 s
[go-tests] ++ pwd
- 0.59 s
[go-tests] + SCRIPT_DIR=/build/source/dev-scripts
- 0.59 s
[go-tests] + readonly SCRIPT_DIR
- 0.59 s
[go-tests] + cd /build/source/dev-scripts/..
- 0.59 s
[go-tests] + go test -tags=netgo,osusergo,sqlite_json -v -race --coverprofile=.coverage.out ./...
- 5.77 s
=== RUN TestAuthenticate
- 5.77 s
=== RUN TestAuthenticate/authenticates_when_password_is_valid
- 5.77 s
=== RUN TestAuthenticate/returns_ErrIncorrectPassword_when_password_is_invalid
- 5.77 s
=== RUN TestAuthenticate/returns_ErrUserNotFound_when_user_is_not_found
- 5.77 s
--- PASS: TestAuthenticate (0.00s)
- 5.77 s
--- PASS: TestAuthenticate/authenticates_when_password_is_valid (0.00s)
- 5.77 s
--- PASS: TestAuthenticate/returns_ErrIncorrectPassword_when_password_is_invalid (0.00s)
- 5.77 s
--- PASS: TestAuthenticate/returns_ErrUserNotFound_when_user_is_not_found (0.00s)
- 5.77 s
PASS
- 5.77 s
coverage: 50.0% of statements
- 5.77 s
ok codeberg.org/mtlynch/simpleauth/v2/auth 0.026s coverage: 50.0% of statements
- 8.40 s
? codeberg.org/mtlynch/simpleauth/v2/sessions [no test files]
- 8.44 s
+ [[ -n 1 ]]
- 8.44 s
+ go tool cover -html .coverage.out -o .coverage.html
- 8.50 s
+ go vet ./...
- 10.35 s
++ go env GOPATH
- 10.35 s
+ STATICCHECK_PATH=/build/go/bin/staticcheck
- 10.35 s
+ readonly STATICCHECK_PATH
- 10.35 s
+ readonly STATICCHECK_VERSION=v0.4.6
- 10.35 s
+ STATICCHECK_VERSION=v0.4.6
- 10.35 s
+ [[ ! -f /build/go/bin/staticcheck ]]
- 10.36 s
+ /build/go/bin/staticcheck ./...
- 12.04 s
++ go env GOPATH
- 12.05 s
+ ERRCHECK_PATH=/build/go/bin/errcheck
- 12.05 s
+ readonly ERRCHECK_PATH
- 12.05 s
+ readonly ERRCHECK_VERSION=v1.6.2
- 12.05 s
+ ERRCHECK_VERSION=v1.6.2
- 12.05 s
+ [[ ! -f /build/go/bin/errcheck ]]
- 12.05 s
+ /build/go/bin/errcheck -ignoretests ./...
- 12.69 s
Phase: installPhase
- 12.69 s
installing
- 12.70 s
Phase: fixupPhase
- 12.70 s
post-installation fixup
- 12.70 s
shrinking RPATHs of ELF executables and libraries in /nix/store/6wnbxvcsdx4zs8q5v8dj3nxk2zl616qy-go-tests-0.0.0
- 12.70 s
strip is /nix/store/hk75004j435l09ij4gawlkzg4wfs839w-binutils-wrapper-2.39/bin/strip
- 12.70 s
patching script interpreter paths in /nix/store/6wnbxvcsdx4zs8q5v8dj3nxk2zl616qy-go-tests-0.0.0
- 12.71 s
checking for references to /build/ in /nix/store/6wnbxvcsdx4zs8q5v8dj3nxk2zl616qy-go-tests-0.0.0...
- 12.79 s
[post-build-hook] Uploading paths from nix-ci to the NixCI cache /nix/store/6wnbxvcsdx4zs8q5v8dj3nxk2zl616qy-go-tests-0.0.0
- 12.83 s
[post-build-hook] warning: 'warn-short-path-literals' is deprecated, use 'lint-short-path-literals = ignore' instead
- 12.83 s
[post-build-hook] copying 1 paths...
- 12.83 s
[post-build-hook] copying path '/nix/store/6wnbxvcsdx4zs8q5v8dj3nxk2zl616qy-go-tests-0.0.0' to 'https://cache.nix-ci.com'...
- 12.90 s
[post-build-hook] warning: 'warn-short-path-literals' is deprecated, use 'lint-short-path-literals = ignore' instead
- 13.08 s
[post-build-hook] copying 2 paths...
- 13.08 s
[post-build-hook] copying path '/nix/store/b64cxpqyvvdvhqm3sa75r6bgk8rlzgp4-simpleauth-go-modules-0.0.0-go-modules.drv' to 'https://cache.nix-ci.com'...
- 13.21 s
[post-build-hook] copying path '/nix/store/mfw9lkb7pfx24pf6x95x3g8f78ycsjan-go-tests-0.0.0.drv' to 'https://cache.nix-ci.com'...
- 13.35 s