1. 0.62 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. 0.65 s
  3. 0.65 s Building /nix/store/yaczrikpnfbwg8mi5i7cjdfnbs6ra8hr-go-tests-0.0.0.drv
  4. 0.65 s [go-tests] Phase: unpackPhase
  5. 0.65 s [go-tests] unpacking source archive /nix/store/dqknz802nl2xhciinlvqa6jf3yqqbfx9-source
  6. 0.65 s [go-tests] source root is source
  7. 0.65 s [go-tests] Phase: patchPhase
  8. 0.65 s [go-tests] Phase: updateAutotoolsGnuConfigScriptsPhase
  9. 0.65 s [go-tests] Phase: configurePhase
  10. 0.65 s [go-tests] no configure script, doing nothing
  11. 0.65 s [go-tests] Phase: buildPhase
  12. 0.65 s [go-tests] patching script interpreter paths in ./dev-scripts
  13. 0.65 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. 0.69 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. 0.73 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. 0.77 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. 0.82 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. 0.86 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. 0.90 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. 0.94 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. 0.99 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. 1.06 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. 1.10 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. 1.16 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. 1.21 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. 1.26 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. 1.32 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. 1.37 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. 1.42 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. 1.47 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. 1.54 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. 1.59 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. 1.64 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. 1.67 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. 1.94 s [go-tests] + set -o pipefail
  36. 1.94 s [go-tests] + full_test=
  37. 1.94 s [go-tests] + go_test_flags=("-tags=netgo,osusergo")
  38. 1.94 s [go-tests] + go_test_flags+=("-fullpath")
  39. 1.94 s [go-tests] + readonly COVERAGE_FILE_RAW=.coverage.out
  40. 1.94 s [go-tests] + COVERAGE_FILE_RAW=.coverage.out
  41. 1.94 s [go-tests] + readonly COVERAGE_FILE_HTML=.coverage.html
  42. 1.94 s [go-tests] + COVERAGE_FILE_HTML=.coverage.html
  43. 1.94 s [go-tests] + case "${1:-}" in
  44. 1.94 s [go-tests] + [[ 0 -gt 1 ]]
  45. 1.94 s [go-tests] + set -u
  46. 1.95 s [go-tests] +++ dirname ./dev-scripts/run-go-tests
  47. 1.96 s [go-tests] ++ cd ./dev-scripts
  48. 1.96 s [go-tests] ++ pwd
  49. 1.96 s [go-tests] + SCRIPT_DIR=/build/source/dev-scripts
  50. 1.96 s [go-tests] + readonly SCRIPT_DIR
  51. 1.96 s [go-tests] + cd /build/source/dev-scripts/..
  52. 1.96 s [go-tests] + go test -tags=netgo,osusergo -fullpath ./...
  53. 9.47 s [go-tests] ? codeberg.org/mtlynch/little-moments/build [no test files]
  54. 10.85 s [go-tests] # codeberg.org/mtlynch/little-moments/media_test [codeberg.org/mtlynch/little-moments/media.test]
  55. 10.85 s [go-tests] media/service_test.go:37:10: undefined: mockStore
  56. 10.85 s [go-tests] media/service_test.go:41:10: undefined: mockStore
  57. 10.85 s [go-tests] media/service_test.go:45:10: undefined: mockStore
  58. 10.85 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. 10.85 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. 10.85 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. 18.25 s [go-tests] ? codeberg.org/mtlynch/little-moments/cmd/app [no test files]
  62. 18.27 s [go-tests] ? codeberg.org/mtlynch/little-moments/cmd/import-from-tinybeans [no test files]
  63. 18.27 s [go-tests] ? codeberg.org/mtlynch/little-moments/convert [no test files]
  64. 19.59 s [go-tests] ok codeberg.org/mtlynch/little-moments/handlers 1.335s
  65. 19.59 s [go-tests] ok codeberg.org/mtlynch/little-moments/images 0.025s
  66. 19.59 s [go-tests] ok codeberg.org/mtlynch/little-moments/importers 0.009s
  67. 19.59 s [go-tests] ok codeberg.org/mtlynch/little-moments/importers/tinybeans 1.001s
  68. 19.59 s [go-tests] ok codeberg.org/mtlynch/little-moments/importers/tinybeans/parse 0.005s
  69. 19.59 s [go-tests] ok codeberg.org/mtlynch/little-moments/little_moments 0.009s
  70. 19.59 s [go-tests] ok codeberg.org/mtlynch/little-moments/little_moments/login_token 0.007s
  71. 19.59 s [go-tests] ok codeberg.org/mtlynch/little-moments/magiclogin 0.004s
  72. 19.59 s [go-tests] ok codeberg.org/mtlynch/little-moments/magiclogin/loginmail 0.007s
  73. 19.59 s [go-tests] ok codeberg.org/mtlynch/little-moments/magiclogin/loginmail/smtp 0.006s
  74. 19.59 s [go-tests] FAIL codeberg.org/mtlynch/little-moments/media [build failed]
  75. 19.59 s [go-tests] ok codeberg.org/mtlynch/little-moments/mediastore 0.010s
  76. 19.59 s [go-tests] ? codeberg.org/mtlynch/little-moments/random [no test files]
  77. 19.59 s [go-tests] ok codeberg.org/mtlynch/little-moments/ratelimit 0.005s
  78. 19.59 s [go-tests] ? codeberg.org/mtlynch/little-moments/s3 [no test files]
  79. 19.59 s [go-tests] ok codeberg.org/mtlynch/little-moments/s3config 0.006s
  80. 19.59 s [go-tests] ? codeberg.org/mtlynch/little-moments/store [no test files]
  81. 19.59 s [go-tests] ok codeberg.org/mtlynch/little-moments/store/sqlite 1.007s
  82. 19.59 s [go-tests] ? codeberg.org/mtlynch/little-moments/store/test_sqlite [no test files]
  83. 19.59 s [go-tests] ok codeberg.org/mtlynch/little-moments/uploads 0.071s
  84. 19.59 s [go-tests] FAIL
  85. 19.87 s Progress: 0 of 1 built (1 failed)
  86. 19.87 s Failed to build go-tests after 19.2s
  87. 19.87 s Cannot build '/nix/store/yaczrikpnfbwg8mi5i7cjdfnbs6ra8hr-go-tests-0.0.0.drv'.
  88. 19.87 s Reason: builder failed with exit code 1.
  89. 19.87 s Output paths:
  90. 19.87 s /nix/store/p9xddn364f9zd7866f6n56ps5xxxzvc3-go-tests-0.0.0
  91. 19.87 s Last 81 log lines:
  92. 19.87 s > Running phase: unpackPhase
  93. 19.87 s > unpacking source archive /nix/store/dqknz802nl2xhciinlvqa6jf3yqqbfx9-source
  94. 19.87 s > source root is source
  95. 19.87 s > Running phase: patchPhase
  96. 19.87 s > Running phase: updateAutotoolsGnuConfigScriptsPhase
  97. 19.87 s > Running phase: configurePhase
  98. 19.87 s > no configure script, doing nothing
  99. 19.87 s > Running phase: buildPhase
  100. 19.87 s > patching script interpreter paths in ./dev-scripts
  101. 19.87 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. 19.87 s > ./dev-scripts/check-bash: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  103. 19.87 s > ./dev-scripts/serve: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  104. 19.87 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. 19.87 s > ./dev-scripts/populate-db: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  106. 19.87 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. 19.87 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. 19.87 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. 19.87 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. 19.87 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. 19.87 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. 19.87 s > ./dev-scripts/package-binaries: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  113. 19.87 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. 19.87 s > ./dev-scripts/lint-sql: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  115. 19.87 s > ./dev-scripts/reset-db: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  116. 19.87 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. 19.87 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. 19.87 s > ./dev-scripts/check-frontend: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  119. 19.87 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. 19.87 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. 19.87 s > ./dev-scripts/build-backend: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  122. 19.87 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. 19.87 s > + set -o pipefail
  124. 19.87 s > + full_test=
  125. 19.87 s > + go_test_flags=("-tags=netgo,osusergo")
  126. 19.87 s > + go_test_flags+=("-fullpath")
  127. 19.87 s > + readonly COVERAGE_FILE_RAW=.coverage.out
  128. 19.87 s > + COVERAGE_FILE_RAW=.coverage.out
  129. 19.87 s > + readonly COVERAGE_FILE_HTML=.coverage.html
  130. 19.87 s > + COVERAGE_FILE_HTML=.coverage.html
  131. 19.87 s > + case "${1:-}" in
  132. 19.87 s > + [[ 0 -gt 1 ]]
  133. 19.87 s > + set -u
  134. 19.87 s > +++ dirname ./dev-scripts/run-go-tests
  135. 19.87 s > ++ cd ./dev-scripts
  136. 19.87 s > ++ pwd
  137. 19.87 s > + SCRIPT_DIR=/build/source/dev-scripts
  138. 19.87 s > + readonly SCRIPT_DIR
  139. 19.87 s > + cd /build/source/dev-scripts/..
  140. 19.87 s > + go test -tags=netgo,osusergo -fullpath ./...
  141. 19.87 s > ? codeberg.org/mtlynch/little-moments/build [no test files]
  142. 19.87 s > # codeberg.org/mtlynch/little-moments/media_test [codeberg.org/mtlynch/little-moments/media.test]
  143. 19.87 s > media/service_test.go:37:10: undefined: mockStore
  144. 19.87 s > media/service_test.go:41:10: undefined: mockStore
  145. 19.87 s > media/service_test.go:45:10: undefined: mockStore
  146. 19.87 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. 19.87 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. 19.87 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. 19.87 s > ? codeberg.org/mtlynch/little-moments/cmd/app [no test files]
  150. 19.87 s > ? codeberg.org/mtlynch/little-moments/cmd/import-from-tinybeans [no test files]
  151. 19.87 s > ? codeberg.org/mtlynch/little-moments/convert [no test files]
  152. 19.87 s > ok codeberg.org/mtlynch/little-moments/handlers 1.335s
  153. 19.87 s > ok codeberg.org/mtlynch/little-moments/images 0.025s
  154. 19.87 s > ok codeberg.org/mtlynch/little-moments/importers 0.009s
  155. 19.87 s > ok codeberg.org/mtlynch/little-moments/importers/tinybeans 1.001s
  156. 19.87 s > ok codeberg.org/mtlynch/little-moments/importers/tinybeans/parse 0.005s
  157. 19.87 s > ok codeberg.org/mtlynch/little-moments/little_moments 0.009s
  158. 19.87 s > ok codeberg.org/mtlynch/little-moments/little_moments/login_token 0.007s
  159. 19.87 s > ok codeberg.org/mtlynch/little-moments/magiclogin 0.004s
  160. 19.87 s > ok codeberg.org/mtlynch/little-moments/magiclogin/loginmail 0.007s
  161. 19.87 s > ok codeberg.org/mtlynch/little-moments/magiclogin/loginmail/smtp 0.006s
  162. 19.87 s > FAIL codeberg.org/mtlynch/little-moments/media [build failed]
  163. 19.87 s > ok codeberg.org/mtlynch/little-moments/mediastore 0.010s
  164. 19.87 s > ? codeberg.org/mtlynch/little-moments/random [no test files]
  165. 19.87 s > ok codeberg.org/mtlynch/little-moments/ratelimit 0.005s
  166. 19.87 s > ? codeberg.org/mtlynch/little-moments/s3 [no test files]
  167. 19.87 s > ok codeberg.org/mtlynch/little-moments/s3config 0.006s
  168. 19.87 s > ? codeberg.org/mtlynch/little-moments/store [no test files]
  169. 19.87 s > ok codeberg.org/mtlynch/little-moments/store/sqlite 1.007s
  170. 19.87 s > ? codeberg.org/mtlynch/little-moments/store/test_sqlite [no test files]
  171. 19.87 s > ok codeberg.org/mtlynch/little-moments/uploads 0.071s
  172. 19.87 s > FAIL
  173. 19.87 s For full logs, run:
  174. 19.87 s nix log /nix/store/yaczrikpnfbwg8mi5i7cjdfnbs6ra8hr-go-tests-0.0.0.drv
  175. 19.88 s Build failed.