1. 0.20 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.29 s
  3. 0.35 s Building /nix/store/9rpn0laa8xf1zf8djwvyl7j9mklqif4f-go-tests-0.0.0.drv
  4. 0.42 s [go-tests] Phase: unpackPhase
  5. 0.43 s [go-tests] unpacking source archive /nix/store/ahm7pi6gbcbg2riry3x1jknwxsfspijy-source
  6. 0.46 s [go-tests] source root is source
  7. 0.48 s [go-tests] Phase: patchPhase
  8. 0.49 s [go-tests] Phase: updateAutotoolsGnuConfigScriptsPhase
  9. 0.50 s [go-tests] Phase: configurePhase
  10. 0.53 s [go-tests] no configure script, doing nothing
  11. 0.53 s [go-tests] Phase: buildPhase
  12. 0.54 s [go-tests] patching script interpreter paths in ./dev-scripts
  13. 0.55 s [go-tests] ./dev-scripts/serve: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  14. 0.57 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"
  15. 0.60 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"
  16. 0.63 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"
  17. 0.65 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"
  18. 0.68 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"
  19. 0.71 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"
  20. 0.73 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"
  21. 0.76 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"
  22. 0.78 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"
  23. 0.80 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"
  24. 0.83 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"
  25. 0.85 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"
  26. 0.87 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"
  27. 0.89 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"
  28. 0.91 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"
  29. 0.94 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"
  30. 0.96 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"
  31. 0.99 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"
  32. 1.01 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"
  33. 1.03 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"
  34. 1.05 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"
  35. 1.21 s [go-tests] + set -o pipefail
  36. 1.21 s [go-tests] + full_test=
  37. 1.21 s [go-tests] + go_test_flags=("-tags=netgo,osusergo")
  38. 1.21 s [go-tests] + go_test_flags+=("-fullpath")
  39. 1.21 s [go-tests] + readonly COVERAGE_FILE_RAW=.coverage.out
  40. 1.21 s [go-tests] + COVERAGE_FILE_RAW=.coverage.out
  41. 1.21 s [go-tests] + readonly COVERAGE_FILE_HTML=.coverage.html
  42. 1.21 s [go-tests] + COVERAGE_FILE_HTML=.coverage.html
  43. 1.21 s [go-tests] + [[ '' = \-\-full ]]
  44. 1.21 s [go-tests] + set -u
  45. 1.21 s [go-tests] +++ dirname ./dev-scripts/run-go-tests
  46. 1.21 s [go-tests] ++ cd ./dev-scripts
  47. 1.21 s [go-tests] ++ pwd
  48. 1.21 s [go-tests] + SCRIPT_DIR=/build/source/dev-scripts
  49. 1.21 s [go-tests] + readonly SCRIPT_DIR
  50. 1.21 s [go-tests] + cd /build/source/dev-scripts/..
  51. 1.21 s [go-tests] + go test -tags=netgo,osusergo -fullpath ./...
  52. 5.14 s [go-tests] ? codeberg.org/mtlynch/little-moments/build [no test files]
  53. 9.32 s [go-tests] # codeberg.org/mtlynch/little-moments/handlers_test [codeberg.org/mtlynch/little-moments/handlers.test]
  54. 9.37 s [go-tests] handlers/upload_test.go:43:19: undefined: testSubscriberID
  55. 9.37 s [go-tests] handlers/upload_test.go:49:19: undefined: testOwnerID
  56. 9.37 s [go-tests] handlers/upload_test.go:56:26: undefined: testOwnerID
  57. 9.37 s [go-tests] handlers/upload_test.go:56:39: too many arguments in call to insertTestUser
  58. 9.37 s [go-tests] have (*testing.T, sqlite.Store, unknown type, string, bool)
  59. 9.37 s [go-tests] want (*testing.T, sqlite.Store, littlemoments.EmailAddress)
  60. 9.37 s [go-tests] handlers/upload_test.go:57:26: undefined: testSubscriberID
  61. 9.37 s [go-tests] handlers/upload_test.go:57:44: too many arguments in call to insertTestUser
  62. 9.37 s [go-tests] have (*testing.T, sqlite.Store, unknown type, string, bool)
  63. 9.37 s [go-tests] want (*testing.T, sqlite.Store, littlemoments.EmailAddress)
  64. 9.41 s [go-tests] ? codeberg.org/mtlynch/little-moments/cmd/app [no test files]
  65. 13.15 s [go-tests] ? codeberg.org/mtlynch/little-moments/cmd/import-from-tinybeans [no test files]
  66. 13.15 s [go-tests] ? codeberg.org/mtlynch/little-moments/convert [no test files]
  67. 13.15 s [go-tests] FAIL codeberg.org/mtlynch/little-moments/handlers [build failed]
  68. 13.16 s [go-tests] ok codeberg.org/mtlynch/little-moments/imagepipe 0.014s
  69. 13.16 s [go-tests] ? codeberg.org/mtlynch/little-moments/images [no test files]
  70. 13.16 s [go-tests] ok codeberg.org/mtlynch/little-moments/importers 0.006s
  71. 13.16 s [go-tests] ok codeberg.org/mtlynch/little-moments/importers/tinybeans 0.004s
  72. 13.16 s [go-tests] ok codeberg.org/mtlynch/little-moments/importers/tinybeans/parse 0.003s
  73. 13.16 s [go-tests] ok codeberg.org/mtlynch/little-moments/little_moments 0.004s
  74. 13.16 s [go-tests] ok codeberg.org/mtlynch/little-moments/little_moments/login_token 0.005s
  75. 13.16 s [go-tests] ok codeberg.org/mtlynch/little-moments/magiclogin 0.006s
  76. 13.16 s [go-tests] ok codeberg.org/mtlynch/little-moments/magiclogin/loginmail 0.004s
  77. 13.16 s [go-tests] ok codeberg.org/mtlynch/little-moments/magiclogin/loginmail/smtp 0.003s
  78. 13.16 s [go-tests] ok codeberg.org/mtlynch/little-moments/mediastore 0.007s
  79. 13.16 s [go-tests] ? codeberg.org/mtlynch/little-moments/random [no test files]
  80. 13.16 s [go-tests] ok codeberg.org/mtlynch/little-moments/ratelimit 0.004s
  81. 13.16 s [go-tests] ? codeberg.org/mtlynch/little-moments/s3 [no test files]
  82. 13.16 s [go-tests] ok codeberg.org/mtlynch/little-moments/s3config 0.003s
  83. 13.16 s [go-tests] ? codeberg.org/mtlynch/little-moments/store [no test files]
  84. 13.91 s [go-tests] ok codeberg.org/mtlynch/little-moments/store/sqlite 0.759s
  85. 13.91 s [go-tests] ? codeberg.org/mtlynch/little-moments/store/test_sqlite [no test files]
  86. 13.91 s [go-tests] FAIL
  87. 14.13 s Progress: 0 of 1 built (1 failed)
  88. 14.13 s Cannot build '/nix/store/9rpn0laa8xf1zf8djwvyl7j9mklqif4f-go-tests-0.0.0.drv'.
  89. 14.13 s Reason: builder failed with exit code 1.
  90. 14.13 s Output paths:
  91. 14.13 s /nix/store/ws03cqbl7fvpi5fzg6r2jn6gp2b86man-go-tests-0.0.0
  92. 14.13 s Last 83 log lines:
  93. 14.13 s > Running phase: unpackPhase
  94. 14.13 s > unpacking source archive /nix/store/ahm7pi6gbcbg2riry3x1jknwxsfspijy-source
  95. 14.13 s > source root is source
  96. 14.13 s > Running phase: patchPhase
  97. 14.13 s > Running phase: updateAutotoolsGnuConfigScriptsPhase
  98. 14.13 s > Running phase: configurePhase
  99. 14.13 s > no configure script, doing nothing
  100. 14.13 s > Running phase: buildPhase
  101. 14.13 s > patching script interpreter paths in ./dev-scripts
  102. 14.13 s > ./dev-scripts/serve: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  103. 14.13 s > ./dev-scripts/enable-multiarch-docker: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  104. 14.13 s > ./dev-scripts/check-trailing-whitespace: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  105. 14.13 s > ./dev-scripts/build-backend: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  106. 14.13 s > ./dev-scripts/serve-docker: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  107. 14.13 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"
  108. 14.13 s > ./dev-scripts/check-trailing-newline: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  109. 14.13 s > ./dev-scripts/download-prod-db: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  110. 14.13 s > ./dev-scripts/lint-sql: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  111. 14.13 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"
  112. 14.13 s > ./dev-scripts/run-e2e-tests: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  113. 14.13 s > ./dev-scripts/reset-db: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  114. 14.13 s > ./dev-scripts/package-binaries: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  115. 14.13 s > ./dev-scripts/check-frontend: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  116. 14.13 s > ./dev-scripts/upload-prod-db: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  117. 14.13 s > ./dev-scripts/enable-git-hooks: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  118. 14.13 s > ./dev-scripts/populate-db: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  119. 14.13 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"
  120. 14.13 s > ./dev-scripts/render-design-doc: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  121. 14.13 s > ./dev-scripts/check-bash: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  122. 14.13 s > ./dev-scripts/check-go-formatting: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  123. 14.13 s > ./dev-scripts/run-go-tests: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  124. 14.13 s > + set -o pipefail
  125. 14.13 s > + full_test=
  126. 14.13 s > + go_test_flags=("-tags=netgo,osusergo")
  127. 14.13 s > + go_test_flags+=("-fullpath")
  128. 14.13 s > + readonly COVERAGE_FILE_RAW=.coverage.out
  129. 14.13 s > + COVERAGE_FILE_RAW=.coverage.out
  130. 14.13 s > + readonly COVERAGE_FILE_HTML=.coverage.html
  131. 14.13 s > + COVERAGE_FILE_HTML=.coverage.html
  132. 14.13 s > + [[ '' = \-\-full ]]
  133. 14.13 s > + set -u
  134. 14.13 s > +++ dirname ./dev-scripts/run-go-tests
  135. 14.13 s > ++ cd ./dev-scripts
  136. 14.13 s > ++ pwd
  137. 14.13 s > + SCRIPT_DIR=/build/source/dev-scripts
  138. 14.13 s > + readonly SCRIPT_DIR
  139. 14.13 s > + cd /build/source/dev-scripts/..
  140. 14.13 s > + go test -tags=netgo,osusergo -fullpath ./...
  141. 14.13 s > ? codeberg.org/mtlynch/little-moments/build [no test files]
  142. 14.13 s > # codeberg.org/mtlynch/little-moments/handlers_test [codeberg.org/mtlynch/little-moments/handlers.test]
  143. 14.13 s > handlers/upload_test.go:43:19: undefined: testSubscriberID
  144. 14.13 s > handlers/upload_test.go:49:19: undefined: testOwnerID
  145. 14.13 s > handlers/upload_test.go:56:26: undefined: testOwnerID
  146. 14.13 s > handlers/upload_test.go:56:39: too many arguments in call to insertTestUser
  147. 14.13 s > have (*testing.T, sqlite.Store, unknown type, string, bool)
  148. 14.13 s > want (*testing.T, sqlite.Store, littlemoments.EmailAddress)
  149. 14.13 s > handlers/upload_test.go:57:26: undefined: testSubscriberID
  150. 14.13 s > handlers/upload_test.go:57:44: too many arguments in call to insertTestUser
  151. 14.13 s > have (*testing.T, sqlite.Store, unknown type, string, bool)
  152. 14.13 s > want (*testing.T, sqlite.Store, littlemoments.EmailAddress)
  153. 14.13 s > ? codeberg.org/mtlynch/little-moments/cmd/app [no test files]
  154. 14.13 s > ? codeberg.org/mtlynch/little-moments/cmd/import-from-tinybeans [no test files]
  155. 14.13 s > ? codeberg.org/mtlynch/little-moments/convert [no test files]
  156. 14.13 s > FAIL codeberg.org/mtlynch/little-moments/handlers [build failed]
  157. 14.13 s > ok codeberg.org/mtlynch/little-moments/imagepipe 0.014s
  158. 14.13 s > ? codeberg.org/mtlynch/little-moments/images [no test files]
  159. 14.13 s > ok codeberg.org/mtlynch/little-moments/importers 0.006s
  160. 14.13 s > ok codeberg.org/mtlynch/little-moments/importers/tinybeans 0.004s
  161. 14.13 s > ok codeberg.org/mtlynch/little-moments/importers/tinybeans/parse 0.003s
  162. 14.13 s > ok codeberg.org/mtlynch/little-moments/little_moments 0.004s
  163. 14.13 s > ok codeberg.org/mtlynch/little-moments/little_moments/login_token 0.005s
  164. 14.13 s > ok codeberg.org/mtlynch/little-moments/magiclogin 0.006s
  165. 14.13 s > ok codeberg.org/mtlynch/little-moments/magiclogin/loginmail 0.004s
  166. 14.13 s > ok codeberg.org/mtlynch/little-moments/magiclogin/loginmail/smtp 0.003s
  167. 14.13 s > ok codeberg.org/mtlynch/little-moments/mediastore 0.007s
  168. 14.13 s > ? codeberg.org/mtlynch/little-moments/random [no test files]
  169. 14.13 s > ok codeberg.org/mtlynch/little-moments/ratelimit 0.004s
  170. 14.13 s > ? codeberg.org/mtlynch/little-moments/s3 [no test files]
  171. 14.13 s > ok codeberg.org/mtlynch/little-moments/s3config 0.003s
  172. 14.13 s > ? codeberg.org/mtlynch/little-moments/store [no test files]
  173. 14.13 s > ok codeberg.org/mtlynch/little-moments/store/sqlite 0.759s
  174. 14.13 s > ? codeberg.org/mtlynch/little-moments/store/test_sqlite [no test files]
  175. 14.13 s > FAIL
  176. 14.13 s For full logs, run:
  177. 14.13 s nix log /nix/store/9rpn0laa8xf1zf8djwvyl7j9mklqif4f-go-tests-0.0.0.drv
  178. 14.14 s Build failed.