build packages.x86_64-linux.go-tests

Reproduce this run
  1. 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
  2. 3.39 s error (ignored): SQLite database '/var/cache/private/nix-ci-worker/eval-cache-v6/6fedc48fe726fd9f17853f8faacd106ffff2ac89b4fe1a7df673376caa64bc6b.sqlite' is busy
  3. 3.74 s
  4. 4.47 s Substituting iana-etc from https://cache.nix-ci.com
  5. 4.47 s Substituting errcheck from https://cache.nix-ci.com
  6. 4.47 s Substituting expand-response-params from https://cache.nix-ci.com
  7. 4.47 s Substituting linux-headers from https://cache.nix-ci.com
  8. 4.49 s Substituting binutils from https://cache.nix-ci.com
  9. 4.49 s Substituting glibc-2.35-163-bin from https://cache.nix-ci.com
  10. 4.49 s Substituting nss-cacert from https://cache.nix-ci.com
  11. 4.52 s Progress: 0 of 9 built, 1 of 14 fetched (6 fetching)
  12. 4.52 s Substituting go from https://cache.nix-ci.com
  13. 4.52 s Substituting staticcheck from https://cache.nix-ci.com
  14. 4.66 s Progress: 0 of 9 built, 2 of 14 fetched (7 fetching)
  15. 4.80 s Progress: 0 of 9 built, 3 of 14 fetched (6 fetching)
  16. 4.89 s Progress: 0 of 9 built, 4 of 14 fetched (5 fetching)
  17. 4.89 s Substituting glibc-2.35-163-dev from https://cache.nix-ci.com
  18. 4.89 s Progress: 0 of 9 built, 5 of 14 fetched (5 fetching)
  19. 5.44 s Progress: 0 of 8 built, 6 of 14 fetched (4 fetching)
  20. 5.53 s Progress: 0 of 8 built, 7 of 14 fetched (3 fetching)
  21. 6.67 s Progress: 0 of 7 built, 8 of 14 fetched (2 fetching)
  22. 6.82 s Progress: 0 of 6 built, 9 of 14 fetched (1 fetching)
  23. 6.82 s Substituting binutils-wrapper from https://cache.nix-ci.com
  24. 6.82 s Substituting gcc from https://cache.nix-ci.com
  25. 7.06 s Progress: 0 of 6 built, 10 of 14 fetched (2 fetching)
  26. 9.34 s Progress: 0 of 5 built, 11 of 14 fetched (1 fetching)
  27. 12.50 s Progress: 0 of 4 built, 12 of 14 fetched
  28. 12.55 s Substituting gcc-wrapper from https://cache.nix-ci.com
  29. 12.63 s Progress: 0 of 4 built, 13 of 14 fetched
  30. 12.63 s Substituting stdenv-linux from https://cache.nix-ci.com
  31. 12.77 s Progress: 0 of 3 built, 14 of 14 fetched
  32. 12.90 s Building simpleauth-go-modules-0.0.0-go-modules
  33. 12.96 s [simpleauth-go-modules-0.0.0-go-modules] Phase: unpackPhase
  34. 12.96 s [simpleauth-go-modules-0.0.0-go-modules] unpacking sources
  35. 12.96 s [simpleauth-go-modules-0.0.0-go-modules] unpacking source archive /nix/store/aax2qy2sh9zp8ivykx8j8f7bk90qrvls-source
  36. 12.97 s [simpleauth-go-modules-0.0.0-go-modules] source root is source
  37. 12.97 s [simpleauth-go-modules-0.0.0-go-modules] Phase: patchPhase
  38. 12.97 s [simpleauth-go-modules-0.0.0-go-modules] patching sources
  39. 12.98 s [simpleauth-go-modules-0.0.0-go-modules] Phase: configurePhase
  40. 12.98 s [simpleauth-go-modules-0.0.0-go-modules] configuring
  41. 12.98 s [simpleauth-go-modules-0.0.0-go-modules] Phase: buildPhase
  42. 12.98 s [simpleauth-go-modules-0.0.0-go-modules] building
  43. 13.00 s [simpleauth-go-modules-0.0.0-go-modules] go: downloading golang.org/x/crypto v0.32.0
  44. 13.22 s [simpleauth-go-modules-0.0.0-go-modules] Phase: installPhase
  45. 13.22 s [simpleauth-go-modules-0.0.0-go-modules] installing
  46. 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
  47. 13.35 s [post-build-hook] warning: 'warn-short-path-literals' is deprecated, use 'lint-short-path-literals = ignore' instead
  48. 13.36 s [post-build-hook] copying 1 paths...
  49. 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'...
  50. 13.74 s [post-build-hook] warning: 'warn-short-path-literals' is deprecated, use 'lint-short-path-literals = ignore' instead
  51. 14.02 s [post-build-hook] copying 1 paths...
  52. 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'...
  53. 14.25 s Progress: 1 of 3 built, 14 of 14 fetched
  54. 14.28 s Building go-tests
  55. 14.34 s [go-tests] Phase: unpackPhase
  56. 14.34 s [go-tests] unpacking sources
  57. 14.35 s [go-tests] unpacking source archive /nix/store/aax2qy2sh9zp8ivykx8j8f7bk90qrvls-source
  58. 14.35 s [go-tests] source root is source
  59. 14.36 s [go-tests] Phase: patchPhase
  60. 14.36 s [go-tests] patching sources
  61. 14.37 s [go-tests] Phase: configurePhase
  62. 14.37 s [go-tests] configuring
  63. 14.38 s [go-tests] no configure script, doing nothing
  64. 14.38 s [go-tests] Phase: buildPhase
  65. 14.38 s [go-tests] building
  66. 14.39 s [go-tests] patching script interpreter paths in ./dev-scripts
  67. 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"
  68. 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"
  69. 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"
  70. 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"
  71. 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"
  72. 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"
  73. 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"
  74. 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"
  75. 14.45 s [go-tests] + set -o pipefail
  76. 14.45 s [go-tests] + full_test=
  77. 14.45 s [go-tests] + go_test_flags=("-tags=netgo,osusergo")
  78. 14.45 s [go-tests] + readonly COVERAGE_FILE_RAW=.coverage.out
  79. 14.45 s [go-tests] + COVERAGE_FILE_RAW=.coverage.out
  80. 14.45 s [go-tests] + readonly COVERAGE_FILE_HTML=.coverage.html
  81. 14.45 s [go-tests] + COVERAGE_FILE_HTML=.coverage.html
  82. 14.45 s [go-tests] + [[ --full = \-\-\f\u\l\l ]]
  83. 14.45 s [go-tests] + full_test=1
  84. 14.45 s [go-tests] + go_test_flags+=("-v")
  85. 14.45 s [go-tests] + go_test_flags+=("-race")
  86. 14.45 s [go-tests] + go_test_flags+=("--coverprofile=${COVERAGE_FILE_RAW}")
  87. 14.45 s [go-tests] + set -u
  88. 14.45 s [go-tests] +++ dirname ./dev-scripts/run-go-tests
  89. 14.45 s [go-tests] ++ cd ./dev-scripts
  90. 14.45 s [go-tests] ++ pwd
  91. 14.45 s [go-tests] + SCRIPT_DIR=/build/source/dev-scripts
  92. 14.45 s [go-tests] + readonly SCRIPT_DIR
  93. 14.45 s [go-tests] + cd /build/source/dev-scripts/..
  94. 14.45 s [go-tests] + go test -tags=netgo,osusergo -v -race --coverprofile=.coverage.out ./...
  95. 19.05 s [go-tests] === RUN TestNewUserIDRejectsEmptyString
  96. 19.09 s [go-tests] --- PASS: TestNewUserIDRejectsEmptyString (0.00s)
  97. 19.09 s [go-tests] === RUN TestNewUserIDReturnsUserID
  98. 19.09 s [go-tests] --- PASS: TestNewUserIDReturnsUserID (0.00s)
  99. 19.09 s [go-tests] PASS
  100. 19.09 s [go-tests] coverage: 100.0% of statements
  101. 19.09 s [go-tests] ok codeberg.org/mtlynch/simpleauth/v3 0.025s coverage: 100.0% of statements
  102. 19.09 s [go-tests] === RUN TestAuthenticate
  103. 19.09 s [go-tests] === RUN TestAuthenticate/authenticates_when_password_is_valid
  104. 19.09 s [go-tests] === RUN TestAuthenticate/returns_ErrIncorrectPassword_when_password_is_invalid
  105. 19.09 s [go-tests] === RUN TestAuthenticate/returns_ErrUserNotFound_when_user_is_not_found
  106. 19.09 s [go-tests] --- PASS: TestAuthenticate (0.00s)
  107. 19.09 s [go-tests] --- PASS: TestAuthenticate/authenticates_when_password_is_valid (0.00s)
  108. 19.09 s [go-tests] --- PASS: TestAuthenticate/returns_ErrIncorrectPassword_when_password_is_invalid (0.00s)
  109. 19.09 s [go-tests] --- PASS: TestAuthenticate/returns_ErrUserNotFound_when_user_is_not_found (0.00s)
  110. 19.09 s [go-tests] PASS
  111. 19.09 s [go-tests] coverage: 50.0% of statements
  112. 19.09 s [go-tests] ok codeberg.org/mtlynch/simpleauth/v3/auth 0.026s coverage: 50.0% of statements
  113. 21.93 s [go-tests] === RUN TestCreateAndLoadSession
  114. 21.93 s [go-tests] --- PASS: TestCreateAndLoadSession (0.00s)
  115. 21.93 s [go-tests] === RUN TestRequireSessionRedirectsWithoutSession
  116. 21.93 s [go-tests] --- PASS: TestRequireSessionRedirectsWithoutSession (0.00s)
  117. 21.93 s [go-tests] PASS
  118. 21.93 s [go-tests] coverage: 58.9% of statements
  119. 21.93 s [go-tests] ok codeberg.org/mtlynch/simpleauth/v3/sessions 0.028s coverage: 58.9% of statements
  120. 21.98 s [go-tests] + [[ -n 1 ]]
  121. 21.98 s [go-tests] + go tool cover -html .coverage.out -o .coverage.html
  122. 22.05 s [go-tests] + go vet ./...
  123. 24.54 s [go-tests] ++ go env GOPATH
  124. 24.58 s [go-tests] + STATICCHECK_PATH=/build/go/bin/staticcheck
  125. 24.58 s [go-tests] + readonly STATICCHECK_PATH
  126. 24.58 s [go-tests] + readonly STATICCHECK_VERSION=v0.4.6
  127. 24.58 s [go-tests] + STATICCHECK_VERSION=v0.4.6
  128. 24.58 s [go-tests] + [[ ! -f /build/go/bin/staticcheck ]]
  129. 24.58 s [go-tests] + /build/go/bin/staticcheck ./...
  130. 26.44 s [go-tests] ++ go env GOPATH
  131. 26.44 s [go-tests] + ERRCHECK_PATH=/build/go/bin/errcheck
  132. 26.44 s [go-tests] + readonly ERRCHECK_PATH
  133. 26.44 s [go-tests] + readonly ERRCHECK_VERSION=v1.6.2
  134. 26.44 s [go-tests] + ERRCHECK_VERSION=v1.6.2
  135. 26.44 s [go-tests] + [[ ! -f /build/go/bin/errcheck ]]
  136. 26.44 s [go-tests] + /build/go/bin/errcheck -ignoretests ./...
  137. 27.14 s [go-tests] Phase: installPhase
  138. 27.14 s [go-tests] installing
  139. 27.15 s [go-tests] Phase: fixupPhase
  140. 27.15 s [go-tests] post-installation fixup
  141. 27.15 s [go-tests] shrinking RPATHs of ELF executables and libraries in /nix/store/c52bza7bk9nmpnq4444xm9lh6ws1sydx-go-tests-0.0.0
  142. 27.16 s [go-tests] strip is /nix/store/hk75004j435l09ij4gawlkzg4wfs839w-binutils-wrapper-2.39/bin/strip
  143. 27.16 s [go-tests] patching script interpreter paths in /nix/store/c52bza7bk9nmpnq4444xm9lh6ws1sydx-go-tests-0.0.0
  144. 27.16 s [go-tests] checking for references to /build/ in /nix/store/c52bza7bk9nmpnq4444xm9lh6ws1sydx-go-tests-0.0.0...
  145. 27.27 s [post-build-hook] Uploading paths from nix-ci to the NixCI cache /nix/store/c52bza7bk9nmpnq4444xm9lh6ws1sydx-go-tests-0.0.0
  146. 27.32 s [post-build-hook] warning: 'warn-short-path-literals' is deprecated, use 'lint-short-path-literals = ignore' instead
  147. 27.33 s [post-build-hook] copying 1 paths...
  148. 27.33 s [post-build-hook] copying path '/nix/store/c52bza7bk9nmpnq4444xm9lh6ws1sydx-go-tests-0.0.0' to 'https://cache.nix-ci.com'...
  149. 27.52 s [post-build-hook] warning: 'warn-short-path-literals' is deprecated, use 'lint-short-path-literals = ignore' instead
  150. 27.77 s [post-build-hook] copying 1 paths...
  151. 27.77 s [post-build-hook] copying path '/nix/store/i88ndilb91qk7rmzawil5v2arhpsgyf2-go-tests-0.0.0.drv' to 'https://cache.nix-ci.com'...
  152. 27.99 s Progress: 2 of 3 built, 14 of 14 fetched