build packages.x86_64-linux.go-tests

Reproduce this run
  1. 0.04 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=note-expiration&rev=3e60306a94b1784a52bc066ff3333a968ef03837#packages.x86_64-linux.go-tests --print-build-logs
  2. 0.07 s error (ignored): SQLite database '/var/cache/private/nix-ci-worker/eval-cache-v6/f4f90020e3057bf647f4edc9a487851d2926b4ab750452d97c207e91c1487ca6.sqlite' is busy
  3. 0.07 s
  4. 0.07 s Downloading cached source from https://cache.nix-ci.com
  5. 3.41 s Progress: 1 of 1 downloaded from cache
  6. 4.76 s
  7. 4.77 s Downloading cached simpleauth-go-modules-0.0.0-go-modules from https://cache.nix-ci.com
  8. 4.77 s Downloading cached iana-etc from https://cache.nix-ci.com
  9. 4.77 s Downloading cached errcheck from https://cache.nix-ci.com
  10. 4.77 s Downloading cached linux-headers from https://cache.nix-ci.com
  11. 4.77 s Downloading cached glibc-2.35 from https://cache.nix-ci.com
  12. 4.81 s Progress: 0 of 10 built, 1 of 40 downloaded from cache (4 downloading)
  13. 4.82 s Progress: 0 of 9 built, 2 of 40 downloaded from cache (3 downloading)
  14. 4.98 s Progress: 0 of 9 built, 3 of 40 downloaded from cache (2 downloading)
  15. 5.30 s Progress: 0 of 8 built, 4 of 40 downloaded from cache (1 downloading)
  16. 6.50 s Progress: 0 of 8 built, 5 of 40 downloaded from cache
  17. 6.50 s Downloading cached attr from https://cache.nix-ci.com
  18. 6.50 s Downloading cached bash-5.1-p16 from https://cache.nix-ci.com
  19. 6.50 s Downloading cached bzip2 from https://cache.nix-ci.com
  20. 6.50 s Downloading cached ed from https://cache.nix-ci.com
  21. 6.50 s Downloading cached expand-response-params from https://cache.nix-ci.com
  22. 6.50 s Downloading cached gawk from https://cache.nix-ci.com
  23. 6.50 s Downloading cached glibc-2.35-163-bin from https://cache.nix-ci.com
  24. 6.50 s Downloading cached gnumake from https://cache.nix-ci.com
  25. 6.50 s Downloading cached gnused from https://cache.nix-ci.com
  26. 6.50 s Downloading cached gzip from https://cache.nix-ci.com
  27. 6.50 s Downloading cached gcc-11.3.0-lib from https://cache.nix-ci.com
  28. 6.50 s Downloading cached pcre from https://cache.nix-ci.com
  29. 6.50 s Downloading cached staticcheck from https://cache.nix-ci.com
  30. 6.50 s Downloading cached zlib from https://cache.nix-ci.com
  31. 6.50 s Downloading cached xz from https://cache.nix-ci.com
  32. 6.56 s Progress: 0 of 8 built, 6 of 40 downloaded from cache (14 downloading)
  33. 6.56 s Downloading cached file from https://cache.nix-ci.com
  34. 6.60 s Progress: 0 of 8 built, 7 of 40 downloaded from cache (14 downloading)
  35. 6.64 s Progress: 0 of 8 built, 8 of 40 downloaded from cache (13 downloading)
  36. 6.64 s Downloading cached xz-5.2.6-bin from https://cache.nix-ci.com
  37. 6.67 s Progress: 0 of 8 built, 9 of 40 downloaded from cache (13 downloading)
  38. 6.67 s Downloading cached patch from https://cache.nix-ci.com
  39. 6.68 s Progress: 0 of 8 built, 10 of 40 downloaded from cache (13 downloading)
  40. 6.68 s Downloading cached acl from https://cache.nix-ci.com
  41. 6.68 s Progress: 0 of 8 built, 11 of 40 downloaded from cache (13 downloading)
  42. 6.68 s Progress: 0 of 8 built, 12 of 40 downloaded from cache (12 downloading)
  43. 6.68 s Downloading cached bash-5.1-p16-dev from https://cache.nix-ci.com
  44. 6.68 s Downloading cached go from https://cache.nix-ci.com
  45. 6.69 s Progress: 0 of 7 built, 13 of 40 downloaded from cache (13 downloading)
  46. 6.69 s Downloading cached bzip2-1.0.8-bin from https://cache.nix-ci.com
  47. 6.76 s Progress: 0 of 7 built, 14 of 40 downloaded from cache (13 downloading)
  48. 6.76 s Progress: 0 of 7 built, 15 of 40 downloaded from cache (12 downloading)
  49. 6.76 s Downloading cached gnugrep from https://cache.nix-ci.com
  50. 6.77 s Progress: 0 of 7 built, 16 of 40 downloaded from cache (12 downloading)
  51. 6.79 s Progress: 0 of 7 built, 17 of 40 downloaded from cache (11 downloading)
  52. 6.81 s Progress: 0 of 6 built, 18 of 40 downloaded from cache (10 downloading)
  53. 6.81 s Downloading cached gnutar from https://cache.nix-ci.com
  54. 6.82 s Progress: 0 of 6 built, 19 of 40 downloaded from cache (10 downloading)
  55. 6.83 s Progress: 0 of 6 built, 20 of 40 downloaded from cache (9 downloading)
  56. 6.86 s Progress: 0 of 5 built, 21 of 40 downloaded from cache (8 downloading)
  57. 6.87 s Progress: 0 of 5 built, 22 of 40 downloaded from cache (7 downloading)
  58. 6.88 s Progress: 0 of 5 built, 23 of 40 downloaded from cache (6 downloading)
  59. 6.88 s Progress: 0 of 5 built, 24 of 40 downloaded from cache (5 downloading)
  60. 6.88 s Progress: 0 of 5 built, 25 of 40 downloaded from cache (4 downloading)
  61. 6.88 s Downloading cached glibc-2.35-163-dev from https://cache.nix-ci.com
  62. 6.96 s Progress: 0 of 5 built, 26 of 40 downloaded from cache (4 downloading)
  63. 6.96 s Downloading cached binutils from https://cache.nix-ci.com
  64. 6.96 s Downloading cached patchelf from https://cache.nix-ci.com
  65. 6.96 s Downloading cached gmp-with-cxx-stage4 from https://cache.nix-ci.com
  66. 7.03 s Progress: 0 of 5 built, 27 of 40 downloaded from cache (6 downloading)
  67. 7.15 s Progress: 0 of 5 built, 28 of 40 downloaded from cache (5 downloading)
  68. 7.16 s Progress: 0 of 5 built, 29 of 40 downloaded from cache (4 downloading)
  69. 7.18 s Progress: 0 of 5 built, 30 of 40 downloaded from cache (3 downloading)
  70. 7.18 s Downloading cached gcc from https://cache.nix-ci.com
  71. 7.20 s Progress: 0 of 5 built, 31 of 40 downloaded from cache (3 downloading)
  72. 7.20 s Downloading cached coreutils from https://cache.nix-ci.com
  73. 7.53 s Progress: 0 of 5 built, 32 of 40 downloaded from cache (3 downloading)
  74. 7.53 s Downloading cached diffutils from https://cache.nix-ci.com
  75. 7.53 s Downloading cached findutils from https://cache.nix-ci.com
  76. 7.78 s Progress: 0 of 5 built, 33 of 40 downloaded from cache (4 downloading)
  77. 7.84 s Progress: 0 of 5 built, 34 of 40 downloaded from cache (3 downloading)
  78. 7.84 s Downloading cached stdenv-linux from https://cache.nix-ci.com
  79. 8.06 s Progress: 0 of 5 built, 35 of 40 downloaded from cache (3 downloading)
  80. 8.10 s Progress: 0 of 4 built, 36 of 40 downloaded from cache (2 downloading)
  81. 8.10 s Downloading cached binutils-wrapper from https://cache.nix-ci.com
  82. 8.39 s Progress: 0 of 4 built, 37 of 40 downloaded from cache (2 downloading)
  83. 15.06 s Progress: 0 of 3 built, 38 of 40 downloaded from cache (1 downloading)
  84. 15.10 s Downloading cached gcc-wrapper from https://cache.nix-ci.com
  85. 15.68 s Progress: 0 of 3 built, 39 of 40 downloaded from cache (1 downloading)
  86. 26.08 s Progress: 0 of 2 built, 40 of 40 downloaded from cache
  87. 26.17 s Building go-tests
  88. 26.22 s [go-tests] Phase: unpackPhase
  89. 26.22 s [go-tests] unpacking sources
  90. 26.22 s [go-tests] unpacking source archive /nix/store/j11bnjhkzffrlvsq6j4arzvrq9dgdsic-source
  91. 26.23 s [go-tests] source root is source
  92. 26.24 s [go-tests] Phase: patchPhase
  93. 26.24 s [go-tests] patching sources
  94. 26.24 s [go-tests] Phase: configurePhase
  95. 26.24 s [go-tests] configuring
  96. 26.25 s [go-tests] no configure script, doing nothing
  97. 26.25 s [go-tests] Phase: buildPhase
  98. 26.25 s [go-tests] building
  99. 26.26 s [go-tests] patching script interpreter paths in ./dev-scripts
  100. 26.26 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"
  101. 26.26 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"
  102. 26.27 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"
  103. 26.27 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"
  104. 26.28 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"
  105. 26.28 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"
  106. 26.29 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"
  107. 26.30 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"
  108. 26.31 s [go-tests] + set -o pipefail
  109. 26.31 s [go-tests] + full_test=
  110. 26.31 s [go-tests] + go_test_flags=("-tags=netgo,osusergo")
  111. 26.31 s [go-tests] + readonly COVERAGE_FILE_RAW=.coverage.out
  112. 26.31 s [go-tests] + COVERAGE_FILE_RAW=.coverage.out
  113. 26.31 s [go-tests] + readonly COVERAGE_FILE_HTML=.coverage.html
  114. 26.31 s [go-tests] + COVERAGE_FILE_HTML=.coverage.html
  115. 26.31 s [go-tests] + [[ --full = \-\-\f\u\l\l ]]
  116. 26.31 s [go-tests] + full_test=1
  117. 26.31 s [go-tests] + go_test_flags+=("-v")
  118. 26.31 s [go-tests] + go_test_flags+=("-race")
  119. 26.31 s [go-tests] + go_test_flags+=("--coverprofile=${COVERAGE_FILE_RAW}")
  120. 26.31 s [go-tests] + set -u
  121. 26.31 s [go-tests] +++ dirname ./dev-scripts/run-go-tests
  122. 26.32 s [go-tests] ++ cd ./dev-scripts
  123. 26.32 s [go-tests] ++ pwd
  124. 26.32 s [go-tests] + SCRIPT_DIR=/build/source/dev-scripts
  125. 26.32 s [go-tests] + readonly SCRIPT_DIR
  126. 26.32 s [go-tests] + cd /build/source/dev-scripts/..
  127. 26.32 s [go-tests] + go test -tags=netgo,osusergo -v -race --coverprofile=.coverage.out ./...
  128. 31.20 s [go-tests] === RUN TestAuthenticate
  129. 31.24 s [go-tests] === RUN TestAuthenticate/authenticates_when_password_is_valid
  130. 31.24 s [go-tests] === RUN TestAuthenticate/returns_ErrIncorrectPassword_when_password_is_invalid
  131. 31.24 s [go-tests] === RUN TestAuthenticate/returns_ErrUserNotFound_when_user_is_not_found
  132. 31.24 s [go-tests] --- PASS: TestAuthenticate (0.00s)
  133. 31.24 s [go-tests] --- PASS: TestAuthenticate/authenticates_when_password_is_valid (0.00s)
  134. 31.24 s [go-tests] --- PASS: TestAuthenticate/returns_ErrIncorrectPassword_when_password_is_invalid (0.00s)
  135. 31.24 s [go-tests] --- PASS: TestAuthenticate/returns_ErrUserNotFound_when_user_is_not_found (0.00s)
  136. 31.24 s [go-tests] PASS
  137. 31.24 s [go-tests] coverage: 50.0% of statements
  138. 31.24 s [go-tests] ok codeberg.org/mtlynch/simpleauth/v3/auth 0.027s coverage: 50.0% of statements
  139. 34.21 s [go-tests] === RUN TestCreateAndLoadSession
  140. 34.21 s [go-tests] --- PASS: TestCreateAndLoadSession (0.00s)
  141. 34.21 s [go-tests] === RUN TestRequireUserRedirectsWithoutSession
  142. 34.21 s [go-tests] --- PASS: TestRequireUserRedirectsWithoutSession (0.00s)
  143. 34.21 s [go-tests] === RUN TestLoadUserIgnoresExpiredSession
  144. 34.21 s [go-tests] --- PASS: TestLoadUserIgnoresExpiredSession (0.00s)
  145. 34.21 s [go-tests] PASS
  146. 34.21 s [go-tests] coverage: 66.7% of statements
  147. 34.21 s [go-tests] ok codeberg.org/mtlynch/simpleauth/v3/sessions 0.030s coverage: 66.7% of statements
  148. 34.26 s [go-tests] + [[ -n 1 ]]
  149. 34.26 s [go-tests] + go tool cover -html .coverage.out -o .coverage.html
  150. 34.37 s [go-tests] + go vet ./...
  151. 36.91 s [go-tests] ++ go env GOPATH
  152. 36.95 s [go-tests] + STATICCHECK_PATH=/build/go/bin/staticcheck
  153. 36.95 s [go-tests] + readonly STATICCHECK_PATH
  154. 36.95 s [go-tests] + readonly STATICCHECK_VERSION=v0.4.6
  155. 36.95 s [go-tests] + STATICCHECK_VERSION=v0.4.6
  156. 36.95 s [go-tests] + [[ ! -f /build/go/bin/staticcheck ]]
  157. 36.95 s [go-tests] + /build/go/bin/staticcheck ./...
  158. 38.92 s [go-tests] ++ go env GOPATH
  159. 38.92 s [go-tests] + ERRCHECK_PATH=/build/go/bin/errcheck
  160. 38.92 s [go-tests] + readonly ERRCHECK_PATH
  161. 38.92 s [go-tests] + readonly ERRCHECK_VERSION=v1.6.2
  162. 38.92 s [go-tests] + ERRCHECK_VERSION=v1.6.2
  163. 38.92 s [go-tests] + [[ ! -f /build/go/bin/errcheck ]]
  164. 38.92 s [go-tests] + /build/go/bin/errcheck -ignoretests ./...
  165. 39.57 s [go-tests] Phase: installPhase
  166. 39.57 s [go-tests] installing
  167. 39.58 s [go-tests] Phase: fixupPhase
  168. 39.58 s [go-tests] post-installation fixup
  169. 39.58 s [go-tests] shrinking RPATHs of ELF executables and libraries in /nix/store/cb9gs4m1qmap89h513whlkj0vgpq5c8m-go-tests-0.0.0
  170. 39.58 s [go-tests] strip is /nix/store/hk75004j435l09ij4gawlkzg4wfs839w-binutils-wrapper-2.39/bin/strip
  171. 39.59 s [go-tests] patching script interpreter paths in /nix/store/cb9gs4m1qmap89h513whlkj0vgpq5c8m-go-tests-0.0.0
  172. 39.59 s [go-tests] checking for references to /build/ in /nix/store/cb9gs4m1qmap89h513whlkj0vgpq5c8m-go-tests-0.0.0...
  173. 39.67 s [post-build-hook] Uploading to the NixCI cache: /nix/store/cb9gs4m1qmap89h513whlkj0vgpq5c8m-go-tests-0.0.0
  174. 39.70 s [post-build-hook] warning: 'warn-short-path-literals' is deprecated, use 'lint-short-path-literals = ignore' instead
  175. 39.71 s [post-build-hook] copying 1 paths...
  176. 39.71 s [post-build-hook] copying path '/nix/store/cb9gs4m1qmap89h513whlkj0vgpq5c8m-go-tests-0.0.0' to 'https://cache.nix-ci.com'...
  177. 39.90 s [post-build-hook] warning: 'warn-short-path-literals' is deprecated, use 'lint-short-path-literals = ignore' instead
  178. 40.25 s [post-build-hook] copying 2 paths...
  179. 40.25 s [post-build-hook] copying path '/nix/store/925ml4yrm3l2kqdwwjzcww8izzzkak8z-simpleauth-go-modules-0.0.0-go-modules.drv' to 'https://cache.nix-ci.com'...
  180. 40.46 s [post-build-hook] copying path '/nix/store/w49gjqfnj90xcs9j4ip4ac3w8knlxjn6-go-tests-0.0.0.drv' to 'https://cache.nix-ci.com'...
  181. 40.69 s Progress: 1 of 2 built, 40 of 40 downloaded from cache