build packages.x86_64-linux.go-tests

Reproduce this run
Retry Run
  1. 0.10 s $ /nix/store/9ypz3flqsrl5xl495mm8h645gadjsxi1-coreutils-9.11/bin/timeout --kill-after=15s 7200s /nix/store/23zk8sgzamrbmj1fday15szf7f2279s8-nix-2.34.7/bin/nix --extra-experimental-features nix-command --extra-experimental-features flakes --log-format internal-json build --no-link --print-out-paths git+https://codeberg.org/mtlynch/little-moments?ref=shared-handler-tests&rev=4320fabefd82dd90ab87776625119205809b293e#packages.x86_64-linux.go-tests --print-build-logs
  2. 0.62 s error (ignored): SQLite database '/var/cache/nix-ci-worker/eval-cache-v6/9cef38d0855b71f4ff08e30a73206a5e89ba476602ddd41a116d83bf29050af1.sqlite' is busy
  3. 2.33 s
  4. 2.75 s Building /nix/store/9rpn0laa8xf1zf8djwvyl7j9mklqif4f-go-tests-0.0.0.drv
  5. 2.82 s [go-tests] Phase: unpackPhase
  6. 2.82 s [go-tests] unpacking source archive /nix/store/ahm7pi6gbcbg2riry3x1jknwxsfspijy-source
  7. 2.85 s [go-tests] source root is source
  8. 2.87 s [go-tests] Phase: patchPhase
  9. 2.89 s [go-tests] Phase: updateAutotoolsGnuConfigScriptsPhase
  10. 2.91 s [go-tests] Phase: configurePhase
  11. 2.95 s [go-tests] no configure script, doing nothing
  12. 2.95 s [go-tests] Phase: buildPhase
  13. 2.96 s [go-tests] patching script interpreter paths in ./dev-scripts
  14. 2.97 s [go-tests] ./dev-scripts/serve: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  15. 2.99 s [go-tests] ./dev-scripts/enable-multiarch-docker: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  16. 3.01 s [go-tests] ./dev-scripts/check-trailing-whitespace: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  17. 3.03 s [go-tests] ./dev-scripts/build-backend: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  18. 3.05 s [go-tests] ./dev-scripts/serve-docker: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  19. 3.07 s [go-tests] ./dev-scripts/git-hooks/pre-commit: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  20. 3.09 s [go-tests] ./dev-scripts/check-trailing-newline: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  21. 3.11 s [go-tests] ./dev-scripts/download-prod-db: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  22. 3.13 s [go-tests] ./dev-scripts/lint-sql: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  23. 3.14 s [go-tests] ./dev-scripts/check-go-test-packages: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  24. 3.17 s [go-tests] ./dev-scripts/run-e2e-tests: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  25. 3.19 s [go-tests] ./dev-scripts/reset-db: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  26. 3.21 s [go-tests] ./dev-scripts/package-binaries: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  27. 3.24 s [go-tests] ./dev-scripts/check-frontend: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  28. 3.26 s [go-tests] ./dev-scripts/upload-prod-db: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  29. 3.28 s [go-tests] ./dev-scripts/enable-git-hooks: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  30. 3.30 s [go-tests] ./dev-scripts/populate-db: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  31. 3.33 s [go-tests] ./dev-scripts/run-single-go-test: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  32. 3.35 s [go-tests] ./dev-scripts/render-design-doc: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  33. 3.37 s [go-tests] ./dev-scripts/check-bash: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  34. 3.38 s [go-tests] ./dev-scripts/check-go-formatting: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  35. 3.41 s [go-tests] ./dev-scripts/run-go-tests: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  36. 3.60 s [go-tests] + set -o pipefail
  37. 3.60 s [go-tests] + full_test=
  38. 3.60 s [go-tests] + go_test_flags=("-tags=netgo,osusergo")
  39. 3.60 s [go-tests] + go_test_flags+=("-fullpath")
  40. 3.60 s [go-tests] + readonly COVERAGE_FILE_RAW=.coverage.out
  41. 3.60 s [go-tests] + COVERAGE_FILE_RAW=.coverage.out
  42. 3.60 s [go-tests] + readonly COVERAGE_FILE_HTML=.coverage.html
  43. 3.60 s [go-tests] + COVERAGE_FILE_HTML=.coverage.html
  44. 3.60 s [go-tests] + [[ '' = \-\-full ]]
  45. 3.60 s [go-tests] + set -u
  46. 3.60 s [go-tests] +++ dirname ./dev-scripts/run-go-tests
  47. 3.61 s [go-tests] ++ cd ./dev-scripts
  48. 3.61 s [go-tests] ++ pwd
  49. 3.61 s [go-tests] + SCRIPT_DIR=/build/source/dev-scripts
  50. 3.61 s [go-tests] + readonly SCRIPT_DIR
  51. 3.61 s [go-tests] + cd /build/source/dev-scripts/..
  52. 3.61 s [go-tests] + go test -tags=netgo,osusergo -fullpath ./...
  53. 9.19 s [go-tests] ? codeberg.org/mtlynch/little-moments/build [no test files]
  54. 16.75 s [go-tests] # codeberg.org/mtlynch/little-moments/handlers_test [codeberg.org/mtlynch/little-moments/handlers.test]
  55. 16.81 s [go-tests] handlers/upload_test.go:43:19: undefined: testSubscriberID
  56. 16.81 s [go-tests] handlers/upload_test.go:49:19: undefined: testOwnerID
  57. 16.81 s [go-tests] handlers/upload_test.go:56:26: undefined: testOwnerID
  58. 16.81 s [go-tests] handlers/upload_test.go:56:39: too many arguments in call to insertTestUser
  59. 16.81 s [go-tests] have (*testing.T, sqlite.Store, unknown type, string, bool)
  60. 16.81 s [go-tests] want (*testing.T, sqlite.Store, littlemoments.EmailAddress)
  61. 16.81 s [go-tests] handlers/upload_test.go:57:26: undefined: testSubscriberID
  62. 16.81 s [go-tests] handlers/upload_test.go:57:44: too many arguments in call to insertTestUser
  63. 16.81 s [go-tests] have (*testing.T, sqlite.Store, unknown type, string, bool)
  64. 16.81 s [go-tests] want (*testing.T, sqlite.Store, littlemoments.EmailAddress)
  65. 16.88 s [go-tests] ? codeberg.org/mtlynch/little-moments/cmd/app [no test files]
  66. 22.12 s [go-tests] ? codeberg.org/mtlynch/little-moments/cmd/import-from-tinybeans [no test files]
  67. 22.15 s [go-tests] ? codeberg.org/mtlynch/little-moments/convert [no test files]
  68. 22.15 s [go-tests] FAIL codeberg.org/mtlynch/little-moments/handlers [build failed]
  69. 22.15 s [go-tests] ok codeberg.org/mtlynch/little-moments/imagepipe 0.015s
  70. 22.15 s [go-tests] ? codeberg.org/mtlynch/little-moments/images [no test files]
  71. 22.15 s [go-tests] ok codeberg.org/mtlynch/little-moments/importers 0.008s
  72. 22.15 s [go-tests] ok codeberg.org/mtlynch/little-moments/importers/tinybeans 0.005s
  73. 22.15 s [go-tests] ok codeberg.org/mtlynch/little-moments/importers/tinybeans/parse 0.006s
  74. 22.15 s [go-tests] ok codeberg.org/mtlynch/little-moments/little_moments 0.011s
  75. 22.15 s [go-tests] ok codeberg.org/mtlynch/little-moments/little_moments/login_token 0.008s
  76. 22.15 s [go-tests] ok codeberg.org/mtlynch/little-moments/magiclogin 0.010s
  77. 22.15 s [go-tests] ok codeberg.org/mtlynch/little-moments/magiclogin/loginmail 0.010s
  78. 22.15 s [go-tests] ok codeberg.org/mtlynch/little-moments/magiclogin/loginmail/smtp 0.011s
  79. 22.15 s [go-tests] ok codeberg.org/mtlynch/little-moments/mediastore 0.011s
  80. 22.15 s [go-tests] ? codeberg.org/mtlynch/little-moments/random [no test files]
  81. 22.15 s [go-tests] ok codeberg.org/mtlynch/little-moments/ratelimit 0.010s
  82. 22.15 s [go-tests] ? codeberg.org/mtlynch/little-moments/s3 [no test files]
  83. 22.15 s [go-tests] ok codeberg.org/mtlynch/little-moments/s3config 0.008s
  84. 22.15 s [go-tests] ? codeberg.org/mtlynch/little-moments/store [no test files]
  85. 23.13 s [go-tests] ok codeberg.org/mtlynch/little-moments/store/sqlite 1.003s
  86. 23.13 s [go-tests] ? codeberg.org/mtlynch/little-moments/store/test_sqlite [no test files]
  87. 23.13 s [go-tests] FAIL
  88. 23.42 s Progress: 0 of 1 built (1 failed)
  89. 23.43 s Cannot build '/nix/store/9rpn0laa8xf1zf8djwvyl7j9mklqif4f-go-tests-0.0.0.drv'.
  90. 23.43 s Reason: builder failed with exit code 1.
  91. 23.43 s Output paths:
  92. 23.43 s /nix/store/ws03cqbl7fvpi5fzg6r2jn6gp2b86man-go-tests-0.0.0
  93. 23.43 s Last 83 log lines:
  94. 23.43 s > Running phase: unpackPhase
  95. 23.43 s > unpacking source archive /nix/store/ahm7pi6gbcbg2riry3x1jknwxsfspijy-source
  96. 23.43 s > source root is source
  97. 23.43 s > Running phase: patchPhase
  98. 23.43 s > Running phase: updateAutotoolsGnuConfigScriptsPhase
  99. 23.43 s > Running phase: configurePhase
  100. 23.43 s > no configure script, doing nothing
  101. 23.43 s > Running phase: buildPhase
  102. 23.43 s > patching script interpreter paths in ./dev-scripts
  103. 23.43 s > ./dev-scripts/serve: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  104. 23.43 s > ./dev-scripts/enable-multiarch-docker: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  105. 23.43 s > ./dev-scripts/check-trailing-whitespace: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  106. 23.43 s > ./dev-scripts/build-backend: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  107. 23.43 s > ./dev-scripts/serve-docker: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  108. 23.43 s > ./dev-scripts/git-hooks/pre-commit: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  109. 23.43 s > ./dev-scripts/check-trailing-newline: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  110. 23.43 s > ./dev-scripts/download-prod-db: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  111. 23.43 s > ./dev-scripts/lint-sql: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  112. 23.43 s > ./dev-scripts/check-go-test-packages: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  113. 23.43 s > ./dev-scripts/run-e2e-tests: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  114. 23.43 s > ./dev-scripts/reset-db: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  115. 23.43 s > ./dev-scripts/package-binaries: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  116. 23.43 s > ./dev-scripts/check-frontend: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  117. 23.43 s > ./dev-scripts/upload-prod-db: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  118. 23.43 s > ./dev-scripts/enable-git-hooks: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  119. 23.43 s > ./dev-scripts/populate-db: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  120. 23.43 s > ./dev-scripts/run-single-go-test: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  121. 23.43 s > ./dev-scripts/render-design-doc: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  122. 23.43 s > ./dev-scripts/check-bash: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  123. 23.43 s > ./dev-scripts/check-go-formatting: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  124. 23.43 s > ./dev-scripts/run-go-tests: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  125. 23.43 s > + set -o pipefail
  126. 23.43 s > + full_test=
  127. 23.43 s > + go_test_flags=("-tags=netgo,osusergo")
  128. 23.43 s > + go_test_flags+=("-fullpath")
  129. 23.43 s > + readonly COVERAGE_FILE_RAW=.coverage.out
  130. 23.43 s > + COVERAGE_FILE_RAW=.coverage.out
  131. 23.43 s > + readonly COVERAGE_FILE_HTML=.coverage.html
  132. 23.43 s > + COVERAGE_FILE_HTML=.coverage.html
  133. 23.43 s > + [[ '' = \-\-full ]]
  134. 23.43 s > + set -u
  135. 23.43 s > +++ dirname ./dev-scripts/run-go-tests
  136. 23.43 s > ++ cd ./dev-scripts
  137. 23.43 s > ++ pwd
  138. 23.43 s > + SCRIPT_DIR=/build/source/dev-scripts
  139. 23.43 s > + readonly SCRIPT_DIR
  140. 23.43 s > + cd /build/source/dev-scripts/..
  141. 23.43 s > + go test -tags=netgo,osusergo -fullpath ./...
  142. 23.43 s > ? codeberg.org/mtlynch/little-moments/build [no test files]
  143. 23.43 s > # codeberg.org/mtlynch/little-moments/handlers_test [codeberg.org/mtlynch/little-moments/handlers.test]
  144. 23.43 s > handlers/upload_test.go:43:19: undefined: testSubscriberID
  145. 23.43 s > handlers/upload_test.go:49:19: undefined: testOwnerID
  146. 23.43 s > handlers/upload_test.go:56:26: undefined: testOwnerID
  147. 23.43 s > handlers/upload_test.go:56:39: too many arguments in call to insertTestUser
  148. 23.43 s > have (*testing.T, sqlite.Store, unknown type, string, bool)
  149. 23.43 s > want (*testing.T, sqlite.Store, littlemoments.EmailAddress)
  150. 23.43 s > handlers/upload_test.go:57:26: undefined: testSubscriberID
  151. 23.43 s > handlers/upload_test.go:57:44: too many arguments in call to insertTestUser
  152. 23.43 s > have (*testing.T, sqlite.Store, unknown type, string, bool)
  153. 23.43 s > want (*testing.T, sqlite.Store, littlemoments.EmailAddress)
  154. 23.43 s > ? codeberg.org/mtlynch/little-moments/cmd/app [no test files]
  155. 23.43 s > ? codeberg.org/mtlynch/little-moments/cmd/import-from-tinybeans [no test files]
  156. 23.43 s > ? codeberg.org/mtlynch/little-moments/convert [no test files]
  157. 23.43 s > FAIL codeberg.org/mtlynch/little-moments/handlers [build failed]
  158. 23.43 s > ok codeberg.org/mtlynch/little-moments/imagepipe 0.015s
  159. 23.43 s > ? codeberg.org/mtlynch/little-moments/images [no test files]
  160. 23.43 s > ok codeberg.org/mtlynch/little-moments/importers 0.008s
  161. 23.43 s > ok codeberg.org/mtlynch/little-moments/importers/tinybeans 0.005s
  162. 23.43 s > ok codeberg.org/mtlynch/little-moments/importers/tinybeans/parse 0.006s
  163. 23.43 s > ok codeberg.org/mtlynch/little-moments/little_moments 0.011s
  164. 23.43 s > ok codeberg.org/mtlynch/little-moments/little_moments/login_token 0.008s
  165. 23.43 s > ok codeberg.org/mtlynch/little-moments/magiclogin 0.010s
  166. 23.43 s > ok codeberg.org/mtlynch/little-moments/magiclogin/loginmail 0.010s
  167. 23.43 s > ok codeberg.org/mtlynch/little-moments/magiclogin/loginmail/smtp 0.011s
  168. 23.43 s > ok codeberg.org/mtlynch/little-moments/mediastore 0.011s
  169. 23.43 s > ? codeberg.org/mtlynch/little-moments/random [no test files]
  170. 23.43 s > ok codeberg.org/mtlynch/little-moments/ratelimit 0.010s
  171. 23.43 s > ? codeberg.org/mtlynch/little-moments/s3 [no test files]
  172. 23.43 s > ok codeberg.org/mtlynch/little-moments/s3config 0.008s
  173. 23.43 s > ? codeberg.org/mtlynch/little-moments/store [no test files]
  174. 23.43 s > ok codeberg.org/mtlynch/little-moments/store/sqlite 1.003s
  175. 23.43 s > ? codeberg.org/mtlynch/little-moments/store/test_sqlite [no test files]
  176. 23.43 s > FAIL
  177. 23.43 s For full logs, run:
  178. 23.43 s nix log /nix/store/9rpn0laa8xf1zf8djwvyl7j9mklqif4f-go-tests-0.0.0.drv
  179. 23.48 s Build failed.