1. 0.14 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=delete-media%2F3%2Fdelete-files&rev=207bdd0530e1f99e22340152188fc7ff21a3a112&shallow=1#packages.x86_64-linux.go-tests --print-build-logs
  2. 3.38 s
  3. 3.57 s Building /nix/store/yaczrikpnfbwg8mi5i7cjdfnbs6ra8hr-go-tests-0.0.0.drv
  4. 3.67 s [go-tests] Phase: unpackPhase
  5. 3.68 s [go-tests] unpacking source archive /nix/store/dqknz802nl2xhciinlvqa6jf3yqqbfx9-source
  6. 3.71 s [go-tests] source root is source
  7. 3.74 s [go-tests] Phase: patchPhase
  8. 3.75 s [go-tests] Phase: updateAutotoolsGnuConfigScriptsPhase
  9. 3.78 s [go-tests] Phase: configurePhase
  10. 3.80 s [go-tests] no configure script, doing nothing
  11. 3.81 s [go-tests] Phase: buildPhase
  12. 3.82 s [go-tests] patching script interpreter paths in ./dev-scripts
  13. 3.83 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"
  14. 3.86 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"
  15. 3.88 s [go-tests] ./dev-scripts/serve: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  16. 3.91 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"
  17. 3.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"
  18. 3.97 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"
  19. 4.00 s [go-tests] ./dev-scripts/run-js-tests: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  20. 4.03 s [go-tests] ./dev-scripts/build-all-flake-targets: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  21. 4.06 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"
  22. 4.11 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"
  23. 4.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. 4.18 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"
  25. 4.22 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"
  26. 4.25 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"
  27. 4.29 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"
  28. 4.34 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. 4.37 s [go-tests] ./dev-scripts/upload-to-nixci-cache: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  30. 4.40 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"
  31. 4.43 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"
  32. 4.47 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"
  33. 4.50 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"
  34. 4.54 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"
  35. 4.77 s [go-tests] + set -o pipefail
  36. 4.77 s [go-tests] + full_test=
  37. 4.77 s [go-tests] + go_test_flags=("-tags=netgo,osusergo")
  38. 4.77 s [go-tests] + go_test_flags+=("-fullpath")
  39. 4.77 s [go-tests] + readonly COVERAGE_FILE_RAW=.coverage.out
  40. 4.77 s [go-tests] + COVERAGE_FILE_RAW=.coverage.out
  41. 4.77 s [go-tests] + readonly COVERAGE_FILE_HTML=.coverage.html
  42. 4.77 s [go-tests] + COVERAGE_FILE_HTML=.coverage.html
  43. 4.77 s [go-tests] + case "${1:-}" in
  44. 4.77 s [go-tests] + [[ 0 -gt 1 ]]
  45. 4.77 s [go-tests] + set -u
  46. 4.77 s [go-tests] +++ dirname ./dev-scripts/run-go-tests
  47. 4.78 s [go-tests] ++ cd ./dev-scripts
  48. 4.78 s [go-tests] ++ pwd
  49. 4.78 s [go-tests] + SCRIPT_DIR=/build/source/dev-scripts
  50. 4.78 s [go-tests] + readonly SCRIPT_DIR
  51. 4.78 s [go-tests] + cd /build/source/dev-scripts/..
  52. 4.78 s [go-tests] + go test -tags=netgo,osusergo -fullpath ./...
  53. 10.85 s [go-tests] ? codeberg.org/mtlynch/little-moments/build [no test files]
  54. 12.65 s [go-tests] # codeberg.org/mtlynch/little-moments/media_test [codeberg.org/mtlynch/little-moments/media.test]
  55. 12.65 s [go-tests] media/service_test.go:37:10: undefined: mockStore
  56. 12.65 s [go-tests] media/service_test.go:41:10: undefined: mockStore
  57. 12.65 s [go-tests] media/service_test.go:45:10: undefined: mockStore
  58. 12.65 s [go-tests] media/service_test.go:334:20: cannot use &metadataStore (value of type *mockMetadataStore) as media.MetadataStore value in struct literal: *mockMetadataStore does not implement media.MetadataStore (missing method PurgeSoftDeletedMediaItem)
  59. 12.65 s [go-tests] media/service_test.go:426:20: cannot use &metadataStore (value of type *mockMetadataStore) as media.MetadataStore value in struct literal: *mockMetadataStore does not implement media.MetadataStore (missing method PurgeSoftDeletedMediaItem)
  60. 12.65 s [go-tests] media/service_test.go:518:20: cannot use &metadataStore (value of type *mockMetadataStore) as media.MetadataStore value in struct literal: *mockMetadataStore does not implement media.MetadataStore (missing method PurgeSoftDeletedMediaItem)
  61. 23.17 s [go-tests] ? codeberg.org/mtlynch/little-moments/cmd/app [no test files]
  62. 23.71 s [go-tests] ? codeberg.org/mtlynch/little-moments/cmd/import-from-tinybeans [no test files]
  63. 23.71 s [go-tests] ? codeberg.org/mtlynch/little-moments/convert [no test files]
  64. 24.18 s [go-tests] ok codeberg.org/mtlynch/little-moments/handlers 1.525s
  65. 24.18 s [go-tests] ok codeberg.org/mtlynch/little-moments/images 0.030s
  66. 24.18 s [go-tests] ok codeberg.org/mtlynch/little-moments/importers 0.014s
  67. 24.18 s [go-tests] ok codeberg.org/mtlynch/little-moments/importers/tinybeans 1.147s
  68. 24.18 s [go-tests] ok codeberg.org/mtlynch/little-moments/importers/tinybeans/parse 0.007s
  69. 24.18 s [go-tests] ok codeberg.org/mtlynch/little-moments/little_moments 0.006s
  70. 24.18 s [go-tests] ok codeberg.org/mtlynch/little-moments/little_moments/login_token 0.004s
  71. 24.18 s [go-tests] ok codeberg.org/mtlynch/little-moments/magiclogin 0.008s
  72. 24.18 s [go-tests] ok codeberg.org/mtlynch/little-moments/magiclogin/loginmail 0.007s
  73. 24.18 s [go-tests] ok codeberg.org/mtlynch/little-moments/magiclogin/loginmail/smtp 0.006s
  74. 24.18 s [go-tests] FAIL codeberg.org/mtlynch/little-moments/media [build failed]
  75. 24.18 s [go-tests] ok codeberg.org/mtlynch/little-moments/mediastore 0.009s
  76. 24.18 s [go-tests] ? codeberg.org/mtlynch/little-moments/random [no test files]
  77. 24.18 s [go-tests] ok codeberg.org/mtlynch/little-moments/ratelimit 0.006s
  78. 24.18 s [go-tests] ? codeberg.org/mtlynch/little-moments/s3 [no test files]
  79. 24.18 s [go-tests] ok codeberg.org/mtlynch/little-moments/s3config 0.006s
  80. 24.18 s [go-tests] ? codeberg.org/mtlynch/little-moments/store [no test files]
  81. 24.18 s [go-tests] ok codeberg.org/mtlynch/little-moments/store/sqlite 1.049s
  82. 24.18 s [go-tests] ? codeberg.org/mtlynch/little-moments/store/test_sqlite [no test files]
  83. 24.18 s [go-tests] ok codeberg.org/mtlynch/little-moments/uploads 0.076s
  84. 24.18 s [go-tests] FAIL
  85. 24.49 s Progress: 0 of 1 built (1 failed)
  86. 24.49 s Failed to build go-tests after 20.9s
  87. 24.50 s Cannot build '/nix/store/yaczrikpnfbwg8mi5i7cjdfnbs6ra8hr-go-tests-0.0.0.drv'.
  88. 24.50 s Reason: builder failed with exit code 1.
  89. 24.50 s Output paths:
  90. 24.50 s /nix/store/p9xddn364f9zd7866f6n56ps5xxxzvc3-go-tests-0.0.0
  91. 24.50 s Last 81 log lines:
  92. 24.50 s > Running phase: unpackPhase
  93. 24.50 s > unpacking source archive /nix/store/dqknz802nl2xhciinlvqa6jf3yqqbfx9-source
  94. 24.50 s > source root is source
  95. 24.50 s > Running phase: patchPhase
  96. 24.50 s > Running phase: updateAutotoolsGnuConfigScriptsPhase
  97. 24.50 s > Running phase: configurePhase
  98. 24.50 s > no configure script, doing nothing
  99. 24.50 s > Running phase: buildPhase
  100. 24.50 s > patching script interpreter paths in ./dev-scripts
  101. 24.50 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"
  102. 24.50 s > ./dev-scripts/check-bash: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  103. 24.50 s > ./dev-scripts/serve: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  104. 24.50 s > ./dev-scripts/render-design-doc: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  105. 24.50 s > ./dev-scripts/populate-db: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  106. 24.50 s > ./dev-scripts/download-prod-db: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  107. 24.50 s > ./dev-scripts/run-js-tests: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  108. 24.50 s > ./dev-scripts/build-all-flake-targets: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  109. 24.50 s > ./dev-scripts/check-trailing-whitespace: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  110. 24.50 s > ./dev-scripts/check-go-formatting: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  111. 24.50 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. 24.50 s > ./dev-scripts/package-binaries: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  113. 24.50 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. 24.50 s > ./dev-scripts/lint-sql: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  115. 24.50 s > ./dev-scripts/reset-db: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  116. 24.50 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. 24.50 s > ./dev-scripts/upload-to-nixci-cache: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  118. 24.50 s > ./dev-scripts/check-frontend: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  119. 24.50 s > ./dev-scripts/check-trailing-newline: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  120. 24.50 s > ./dev-scripts/run-go-tests: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  121. 24.50 s > ./dev-scripts/build-backend: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  122. 24.50 s > ./dev-scripts/enable-git-hooks: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  123. 24.50 s > + set -o pipefail
  124. 24.50 s > + full_test=
  125. 24.50 s > + go_test_flags=("-tags=netgo,osusergo")
  126. 24.50 s > + go_test_flags+=("-fullpath")
  127. 24.50 s > + readonly COVERAGE_FILE_RAW=.coverage.out
  128. 24.50 s > + COVERAGE_FILE_RAW=.coverage.out
  129. 24.50 s > + readonly COVERAGE_FILE_HTML=.coverage.html
  130. 24.50 s > + COVERAGE_FILE_HTML=.coverage.html
  131. 24.50 s > + case "${1:-}" in
  132. 24.50 s > + [[ 0 -gt 1 ]]
  133. 24.50 s > + set -u
  134. 24.50 s > +++ dirname ./dev-scripts/run-go-tests
  135. 24.50 s > ++ cd ./dev-scripts
  136. 24.50 s > ++ pwd
  137. 24.50 s > + SCRIPT_DIR=/build/source/dev-scripts
  138. 24.50 s > + readonly SCRIPT_DIR
  139. 24.50 s > + cd /build/source/dev-scripts/..
  140. 24.50 s > + go test -tags=netgo,osusergo -fullpath ./...
  141. 24.50 s > ? codeberg.org/mtlynch/little-moments/build [no test files]
  142. 24.50 s > # codeberg.org/mtlynch/little-moments/media_test [codeberg.org/mtlynch/little-moments/media.test]
  143. 24.50 s > media/service_test.go:37:10: undefined: mockStore
  144. 24.50 s > media/service_test.go:41:10: undefined: mockStore
  145. 24.50 s > media/service_test.go:45:10: undefined: mockStore
  146. 24.50 s > media/service_test.go:334:20: cannot use &metadataStore (value of type *mockMetadataStore) as media.MetadataStore value in struct literal: *mockMetadataStore does not implement media.MetadataStore (missing method PurgeSoftDeletedMediaItem)
  147. 24.50 s > media/service_test.go:426:20: cannot use &metadataStore (value of type *mockMetadataStore) as media.MetadataStore value in struct literal: *mockMetadataStore does not implement media.MetadataStore (missing method PurgeSoftDeletedMediaItem)
  148. 24.50 s > media/service_test.go:518:20: cannot use &metadataStore (value of type *mockMetadataStore) as media.MetadataStore value in struct literal: *mockMetadataStore does not implement media.MetadataStore (missing method PurgeSoftDeletedMediaItem)
  149. 24.50 s > ? codeberg.org/mtlynch/little-moments/cmd/app [no test files]
  150. 24.50 s > ? codeberg.org/mtlynch/little-moments/cmd/import-from-tinybeans [no test files]
  151. 24.50 s > ? codeberg.org/mtlynch/little-moments/convert [no test files]
  152. 24.50 s > ok codeberg.org/mtlynch/little-moments/handlers 1.525s
  153. 24.50 s > ok codeberg.org/mtlynch/little-moments/images 0.030s
  154. 24.50 s > ok codeberg.org/mtlynch/little-moments/importers 0.014s
  155. 24.50 s > ok codeberg.org/mtlynch/little-moments/importers/tinybeans 1.147s
  156. 24.50 s > ok codeberg.org/mtlynch/little-moments/importers/tinybeans/parse 0.007s
  157. 24.50 s > ok codeberg.org/mtlynch/little-moments/little_moments 0.006s
  158. 24.50 s > ok codeberg.org/mtlynch/little-moments/little_moments/login_token 0.004s
  159. 24.50 s > ok codeberg.org/mtlynch/little-moments/magiclogin 0.008s
  160. 24.50 s > ok codeberg.org/mtlynch/little-moments/magiclogin/loginmail 0.007s
  161. 24.50 s > ok codeberg.org/mtlynch/little-moments/magiclogin/loginmail/smtp 0.006s
  162. 24.50 s > FAIL codeberg.org/mtlynch/little-moments/media [build failed]
  163. 24.50 s > ok codeberg.org/mtlynch/little-moments/mediastore 0.009s
  164. 24.50 s > ? codeberg.org/mtlynch/little-moments/random [no test files]
  165. 24.50 s > ok codeberg.org/mtlynch/little-moments/ratelimit 0.006s
  166. 24.50 s > ? codeberg.org/mtlynch/little-moments/s3 [no test files]
  167. 24.50 s > ok codeberg.org/mtlynch/little-moments/s3config 0.006s
  168. 24.50 s > ? codeberg.org/mtlynch/little-moments/store [no test files]
  169. 24.50 s > ok codeberg.org/mtlynch/little-moments/store/sqlite 1.049s
  170. 24.50 s > ? codeberg.org/mtlynch/little-moments/store/test_sqlite [no test files]
  171. 24.50 s > ok codeberg.org/mtlynch/little-moments/uploads 0.076s
  172. 24.50 s > FAIL
  173. 24.50 s For full logs, run:
  174. 24.50 s nix log /nix/store/yaczrikpnfbwg8mi5i7cjdfnbs6ra8hr-go-tests-0.0.0.drv
  175. 24.58 s Build failed.