build packages.x86_64-linux.go-tests
0.03 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-sqlite&rev=a4d005f6a54dce5826bca2d9f52756689e52e531#packages.x86_64-linux.go-tests --print-build-logs
3.39 s
error (ignored): SQLite database '/var/cache/private/nix-ci-worker/eval-cache-v6/6fedc48fe726fd9f17853f8faacd106ffff2ac89b4fe1a7df673376caa64bc6b.sqlite ' is busy
3.74 s
4.47 s
Substituting iana-etc from https://cache.nix-ci.com
4.47 s
Substituting errcheck from https://cache.nix-ci.com
4.47 s
Substituting expand-response-params from https://cache.nix-ci.com
4.47 s
Substituting linux-headers from https://cache.nix-ci.com
4.49 s
Substituting binutils from https://cache.nix-ci.com
4.49 s
Substituting glibc-2.35-163-bin from https://cache.nix-ci.com
4.49 s
Substituting nss-cacert from https://cache.nix-ci.com
4.52 s
Progress: 0 of 9 built, 1 of 14 fetched (6 fetching)
4.52 s
Substituting go from https://cache.nix-ci.com
4.52 s
Substituting staticcheck from https://cache.nix-ci.com
4.66 s
Progress: 0 of 9 built, 2 of 14 fetched (7 fetching)
4.80 s
Progress: 0 of 9 built, 3 of 14 fetched (6 fetching)
4.89 s
Progress: 0 of 9 built, 4 of 14 fetched (5 fetching)
4.89 s
Substituting glibc-2.35-163-dev from https://cache.nix-ci.com
4.89 s
Progress: 0 of 9 built, 5 of 14 fetched (5 fetching)
5.44 s
Progress: 0 of 8 built, 6 of 14 fetched (4 fetching)
5.53 s
Progress: 0 of 8 built, 7 of 14 fetched (3 fetching)
6.67 s
Progress: 0 of 7 built, 8 of 14 fetched (2 fetching)
6.82 s
Progress: 0 of 6 built, 9 of 14 fetched (1 fetching)
6.82 s
Substituting binutils-wrapper from https://cache.nix-ci.com
6.82 s
Substituting gcc from https://cache.nix-ci.com
7.06 s
Progress: 0 of 6 built, 10 of 14 fetched (2 fetching)
9.34 s
Progress: 0 of 5 built, 11 of 14 fetched (1 fetching)
12.50 s
Progress: 0 of 4 built, 12 of 14 fetched
12.55 s
Substituting gcc-wrapper from https://cache.nix-ci.com
12.63 s
Progress: 0 of 4 built, 13 of 14 fetched
12.63 s
Substituting stdenv-linux from https://cache.nix-ci.com
12.77 s
Progress: 0 of 3 built, 14 of 14 fetched
12.90 s
Building simpleauth-go-modules-0.0.0-go-modules
12.96 s
[simpleauth-go-modules-0.0.0-go-modules] Phase: unpackPhase
12.96 s
[simpleauth-go-modules-0.0.0-go-modules] unpacking sources
12.96 s
[simpleauth-go-modules-0.0.0-go-modules] unpacking source archive /nix/store/aax2qy2sh9zp8ivykx8j8f7bk90qrvls-source
12.97 s
[simpleauth-go-modules-0.0.0-go-modules] source root is source
12.97 s
[simpleauth-go-modules-0.0.0-go-modules] Phase: patchPhase
12.97 s
[simpleauth-go-modules-0.0.0-go-modules] patching sources
12.98 s
[simpleauth-go-modules-0.0.0-go-modules] Phase: configurePhase
12.98 s
[simpleauth-go-modules-0.0.0-go-modules] configuring
12.98 s
[simpleauth-go-modules-0.0.0-go-modules] Phase: buildPhase
12.98 s
[simpleauth-go-modules-0.0.0-go-modules] building
13.00 s
[simpleauth-go-modules-0.0.0-go-modules] go: downloading golang.org/x/crypto v0.32.0
13.22 s
[simpleauth-go-modules-0.0.0-go-modules] Phase: installPhase
13.22 s
[simpleauth-go-modules-0.0.0-go-modules] installing
13.30 s
[post-build-hook] Uploading paths from nix-ci to the NixCI cache /nix/store/g4gdx5l39aik9gxb74yb05qw5sph56k4-simpleauth-go-modules-0.0.0-go-modules
13.35 s
[post-build-hook] warning: 'warn-short-path-literals' is deprecated, use 'lint-short-path-literals = ignore' instead
13.36 s
[post-build-hook] copying 1 paths...
13.36 s
[post-build-hook] copying path '/nix/store/g4gdx5l39aik9gxb74yb05qw5sph56k4-simpleauth-go-modules-0.0.0-go-modules' to 'https://cache.nix-ci.com'...
13.74 s
[post-build-hook] warning: 'warn-short-path-literals' is deprecated, use 'lint-short-path-literals = ignore' instead
14.02 s
[post-build-hook] copying 1 paths...
14.02 s
[post-build-hook] copying path '/nix/store/j61dwzn0l8frsmzx5m815x6499x2jhla-simpleauth-go-modules-0.0.0-go-modules.drv' to 'https://cache.nix-ci.com'...
14.25 s
Progress: 1 of 3 built, 14 of 14 fetched
14.28 s
Building go-tests
14.34 s
[go-tests] Phase: unpackPhase
14.34 s
[go-tests] unpacking sources
14.35 s
[go-tests] unpacking source archive /nix/store/aax2qy2sh9zp8ivykx8j8f7bk90qrvls-source
14.35 s
[go-tests] source root is source
14.36 s
[go-tests] Phase: patchPhase
14.36 s
[go-tests] patching sources
14.37 s
[go-tests] Phase: configurePhase
14.37 s
[go-tests] configuring
14.38 s
[go-tests] no configure script, doing nothing
14.38 s
[go-tests] Phase: buildPhase
14.38 s
[go-tests] building
14.39 s
[go-tests] patching script interpreter paths in ./dev-scripts
14.39 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"
14.40 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"
14.40 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"
14.41 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"
14.41 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"
14.42 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"
14.42 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"
14.43 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"
14.45 s
[go-tests] + set -o pipefail
14.45 s
[go-tests] + full_test=
14.45 s
[go-tests] + go_test_flags=("-tags=netgo,osusergo")
14.45 s
[go-tests] + readonly COVERAGE_FILE_RAW=.coverage.out
14.45 s
[go-tests] + COVERAGE_FILE_RAW=.coverage.out
14.45 s
[go-tests] + readonly COVERAGE_FILE_HTML=.coverage.html
14.45 s
[go-tests] + COVERAGE_FILE_HTML=.coverage.html
14.45 s
[go-tests] + [[ --full = \-\-\f\u\l\l ]]
14.45 s
[go-tests] + full_test=1
14.45 s
[go-tests] + go_test_flags+=("-v")
14.45 s
[go-tests] + go_test_flags+=("-race")
14.45 s
[go-tests] + go_test_flags+=("--coverprofile=${COVERAGE_FILE_RAW}")
14.45 s
[go-tests] + set -u
14.45 s
[go-tests] +++ dirname ./dev-scripts/run-go-tests
14.45 s
[go-tests] ++ cd ./dev-scripts
14.45 s
[go-tests] ++ pwd
14.45 s
[go-tests] + SCRIPT_DIR=/build/source/dev-scripts
14.45 s
[go-tests] + readonly SCRIPT_DIR
14.45 s
[go-tests] + cd /build/source/dev-scripts/..
14.45 s
[go-tests] + go test -tags=netgo,osusergo -v -race --coverprofile=.coverage.out ./...
19.05 s
[go-tests] === RUN TestNewUserIDRejectsEmptyString
19.09 s
[go-tests] --- PASS: TestNewUserIDRejectsEmptyString (0.00s)
19.09 s
[go-tests] === RUN TestNewUserIDReturnsUserID
19.09 s
[go-tests] --- PASS: TestNewUserIDReturnsUserID (0.00s)
19.09 s
[go-tests] PASS
19.09 s
[go-tests] coverage: 100.0% of statements
19.09 s
[go-tests] ok codeberg.org/mtlynch/simpleauth/v3 0.025s coverage: 100.0% of statements
19.09 s
[go-tests] === RUN TestAuthenticate
19.09 s
[go-tests] === RUN TestAuthenticate/authenticates_when_password_is_valid
19.09 s
[go-tests] === RUN TestAuthenticate/returns_ErrIncorrectPassword_when_password_is_invalid
19.09 s
[go-tests] === RUN TestAuthenticate/returns_ErrUserNotFound_when_user_is_not_found
19.09 s
[go-tests] --- PASS: TestAuthenticate (0.00s)
19.09 s
[go-tests] --- PASS: TestAuthenticate/authenticates_when_password_is_valid (0.00s)
19.09 s
[go-tests] --- PASS: TestAuthenticate/returns_ErrIncorrectPassword_when_password_is_invalid (0.00s)
19.09 s
[go-tests] --- PASS: TestAuthenticate/returns_ErrUserNotFound_when_user_is_not_found (0.00s)
19.09 s
[go-tests] PASS
19.09 s
[go-tests] coverage: 50.0% of statements
19.09 s
[go-tests] ok codeberg.org/mtlynch/simpleauth/v3/auth 0.026s coverage: 50.0% of statements
21.93 s
[go-tests] === RUN TestCreateAndLoadSession
21.93 s
[go-tests] --- PASS: TestCreateAndLoadSession (0.00s)
21.93 s
[go-tests] === RUN TestRequireSessionRedirectsWithoutSession
21.93 s
[go-tests] --- PASS: TestRequireSessionRedirectsWithoutSession (0.00s)
21.93 s
[go-tests] PASS
21.93 s
[go-tests] coverage: 58.9% of statements
21.93 s
[go-tests] ok codeberg.org/mtlynch/simpleauth/v3/sessions 0.028s coverage: 58.9% of statements
21.98 s
[go-tests] + [[ -n 1 ]]
21.98 s
[go-tests] + go tool cover -html .coverage.out -o .coverage.html
22.05 s
[go-tests] + go vet ./...
24.54 s
[go-tests] ++ go env GOPATH
24.58 s
[go-tests] + STATICCHECK_PATH=/build/go/bin/staticcheck
24.58 s
[go-tests] + readonly STATICCHECK_PATH
24.58 s
[go-tests] + readonly STATICCHECK_VERSION=v0.4.6
24.58 s
[go-tests] + STATICCHECK_VERSION=v0.4.6
24.58 s
[go-tests] + [[ ! -f /build/go/bin/staticcheck ]]
24.58 s
[go-tests] + /build/go/bin/staticcheck ./...
26.44 s
[go-tests] ++ go env GOPATH
26.44 s
[go-tests] + ERRCHECK_PATH=/build/go/bin/errcheck
26.44 s
[go-tests] + readonly ERRCHECK_PATH
26.44 s
[go-tests] + readonly ERRCHECK_VERSION=v1.6.2
26.44 s
[go-tests] + ERRCHECK_VERSION=v1.6.2
26.44 s
[go-tests] + [[ ! -f /build/go/bin/errcheck ]]
26.44 s
[go-tests] + /build/go/bin/errcheck -ignoretests ./...
27.14 s
[go-tests] Phase: installPhase
27.14 s
[go-tests] installing
27.15 s
[go-tests] Phase: fixupPhase
27.15 s
[go-tests] post-installation fixup
27.15 s
[go-tests] shrinking RPATHs of ELF executables and libraries in /nix/store/c52bza7bk9nmpnq4444xm9lh6ws1sydx-go-tests-0.0.0
27.16 s
[go-tests] strip is /nix/store/hk75004j435l09ij4gawlkzg4wfs839w-binutils-wrapper-2.39/bin/strip
27.16 s
[go-tests] patching script interpreter paths in /nix/store/c52bza7bk9nmpnq4444xm9lh6ws1sydx-go-tests-0.0.0
27.16 s
[go-tests] checking for references to /build/ in /nix/store/c52bza7bk9nmpnq4444xm9lh6ws1sydx-go-tests-0.0.0...
27.27 s
[post-build-hook] Uploading paths from nix-ci to the NixCI cache /nix/store/c52bza7bk9nmpnq4444xm9lh6ws1sydx-go-tests-0.0.0
27.32 s
[post-build-hook] warning: 'warn-short-path-literals' is deprecated, use 'lint-short-path-literals = ignore' instead
27.33 s
[post-build-hook] copying 1 paths...
27.33 s
[post-build-hook] copying path '/nix/store/c52bza7bk9nmpnq4444xm9lh6ws1sydx-go-tests-0.0.0' to 'https://cache.nix-ci.com'...
27.52 s
[post-build-hook] warning: 'warn-short-path-literals' is deprecated, use 'lint-short-path-literals = ignore' instead
27.77 s
[post-build-hook] copying 1 paths...
27.77 s
[post-build-hook] copying path '/nix/store/i88ndilb91qk7rmzawil5v2arhpsgyf2-go-tests-0.0.0.drv' to 'https://cache.nix-ci.com'...
27.99 s
Progress: 2 of 3 built, 14 of 14 fetched