build packages.x86_64-linux.go-tests

  1. 0.01 s $ /nix/store/wkkwxc04gdw6b263l1h29pjarjnjdyb6-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 build --no-link git+https://codeberg.org/mtlynch/little-moments?ref=local-vs-s3&rev=6f55d9c32ae169e557dbb265a83161465a5695cd#packages.x86_64-linux.go-tests --print-build-logs
  2. 0.46 s error (ignored): SQLite database '/var/cache/private/nix-ci-worker/eval-cache-v6/75eb2e70769e4f2db178b343833a1048d2b2678e8399afed46516eb8085cb2c4.sqlite' is busy
  3. 3.39 s these 2 derivations will be built:
  4. 3.39 s /nix/store/q3xb6fkym4dgv8941gx6n76cjchv78ww-little-moments-0.0.1-go-modules.drv
  5. 3.39 s /nix/store/3srl5kssv3nn98wajckccm3jx2zcbcn0-go-tests-0.0.0.drv
  6. 3.48 s building '/nix/store/q3xb6fkym4dgv8941gx6n76cjchv78ww-little-moments-0.0.1-go-modules.drv'...
  7. 3.53 s little-moments> Running phase: unpackPhase
  8. 3.54 s little-moments> unpacking source archive /nix/store/86qix1787pkbnv0dmfmh5arhjwiyc0ji-source
  9. 3.56 s little-moments> source root is source
  10. 3.58 s little-moments> Running phase: patchPhase
  11. 3.58 s little-moments> Running phase: updateAutotoolsGnuConfigScriptsPhase
  12. 3.60 s little-moments> Running phase: configurePhase
  13. 3.61 s little-moments> Running phase: buildPhase
  14. 3.63 s little-moments> go: downloading codeberg.org/mtlynch/go-evolutionary-migrate v0.0.1
  15. 3.63 s little-moments> go: downloading github.com/google/uuid v1.6.0
  16. 3.63 s little-moments> go: downloading github.com/ncruces/go-sqlite3 v0.22.0
  17. 3.64 s little-moments> go: downloading golang.org/x/image v0.38.0
  18. 3.88 s little-moments> go: downloading golang.org/x/sys v0.29.0
  19. 3.88 s little-moments> go: downloading github.com/tetratelabs/wazero v1.8.2
  20. 3.88 s little-moments> go: downloading github.com/ncruces/julianday v1.0.0
  21. 4.95 s little-moments> Running phase: installPhase
  22. 5.48 s little-moments (post)> Uploading paths from nix-ci to the NixCI cache /nix/store/jlzgy18gkpkd75dz22h17pg744asy0bh-little-moments-0.0.1-go-modules
  23. 5.52 s little-moments (post)> warning: 'warn-short-path-literals' is deprecated, use 'lint-short-path-literals = ignore' instead
  24. 5.52 s little-moments (post)> copying 1 paths...
  25. 5.52 s little-moments (post)> copying path '/nix/store/jlzgy18gkpkd75dz22h17pg744asy0bh-little-moments-0.0.1-go-modules' to 'https://cache.nix-ci.com'...
  26. 8.62 s little-moments (post)> warning: 'warn-short-path-literals' is deprecated, use 'lint-short-path-literals = ignore' instead
  27. 8.72 s little-moments (post)> copying 0 paths...
  28. 8.80 s building '/nix/store/3srl5kssv3nn98wajckccm3jx2zcbcn0-go-tests-0.0.0.drv'...
  29. 8.88 s go-tests> Running phase: unpackPhase
  30. 8.88 s go-tests> unpacking source archive /nix/store/86qix1787pkbnv0dmfmh5arhjwiyc0ji-source
  31. 8.91 s go-tests> source root is source
  32. 8.92 s go-tests> Running phase: patchPhase
  33. 8.93 s go-tests> Running phase: updateAutotoolsGnuConfigScriptsPhase
  34. 8.95 s go-tests> Running phase: configurePhase
  35. 8.97 s go-tests> no configure script, doing nothing
  36. 8.98 s go-tests> Running phase: buildPhase
  37. 8.99 s go-tests> patching script interpreter paths in ./dev-scripts
  38. 9.00 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"
  39. 9.02 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"
  40. 9.04 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"
  41. 9.06 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"
  42. 9.08 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"
  43. 9.11 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"
  44. 9.13 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"
  45. 9.15 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"
  46. 9.17 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"
  47. 9.19 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"
  48. 9.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"
  49. 9.23 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"
  50. 9.25 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"
  51. 9.27 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"
  52. 9.29 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"
  53. 9.31 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"
  54. 9.33 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"
  55. 9.35 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"
  56. 9.37 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"
  57. 9.38 s go-tests> ./dev-scripts/serve: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  58. 9.40 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"
  59. 9.42 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"
  60. 9.55 s go-tests> + set -o pipefail
  61. 9.55 s go-tests> + full_test=
  62. 9.55 s go-tests> + go_test_flags=("-tags=netgo,osusergo")
  63. 9.55 s go-tests> + go_test_flags+=("-fullpath")
  64. 9.55 s go-tests> + readonly COVERAGE_FILE_RAW=.coverage.out
  65. 9.55 s go-tests> + COVERAGE_FILE_RAW=.coverage.out
  66. 9.55 s go-tests> + readonly COVERAGE_FILE_HTML=.coverage.html
  67. 9.55 s go-tests> + COVERAGE_FILE_HTML=.coverage.html
  68. 9.55 s go-tests> + [[ '' = \-\-full ]]
  69. 9.55 s go-tests> + set -u
  70. 9.55 s go-tests> +++ dirname ./dev-scripts/run-go-tests
  71. 9.55 s go-tests> ++ cd ./dev-scripts
  72. 9.55 s go-tests> ++ pwd
  73. 9.55 s go-tests> + SCRIPT_DIR=/build/source/dev-scripts
  74. 9.55 s go-tests> + readonly SCRIPT_DIR
  75. 9.55 s go-tests> + cd /build/source/dev-scripts/..
  76. 9.55 s go-tests> + go test -tags=netgo,osusergo -fullpath ./...
  77. 17.73 s go-tests> ? codeberg.org/mtlynch/little-moments/cmd/app [no test files]
  78. 17.74 s go-tests> ? codeberg.org/mtlynch/little-moments/cmd/import-from-tinybeans [no test files]
  79. 17.74 s go-tests> ok codeberg.org/mtlynch/little-moments/handlers 0.009s
  80. 17.74 s go-tests> ? codeberg.org/mtlynch/little-moments/images [no test files]
  81. 17.74 s go-tests> ok codeberg.org/mtlynch/little-moments/little_moments 0.004s
  82. 17.74 s go-tests> ? codeberg.org/mtlynch/little-moments/s3 [no test files]
  83. 17.74 s go-tests> ? codeberg.org/mtlynch/little-moments/s3config [no test files]
  84. 17.74 s go-tests> ? codeberg.org/mtlynch/little-moments/store/sqlite [no test files]
  85. 17.74 s go-tests> ? codeberg.org/mtlynch/little-moments/store/test_sqlite [no test files]
  86. 17.74 s go-tests> ok codeberg.org/mtlynch/little-moments/tinybeans 0.004s
  87. 17.74 s go-tests> ok codeberg.org/mtlynch/little-moments/tinybeans/parse 0.005s
  88. 17.81 s go-tests> + [[ -n '' ]]
  89. 17.81 s go-tests> + go vet ./...
  90. 22.18 s go-tests> ++ go env GOPATH
  91. 22.18 s go-tests> + STATICCHECK_PATH=/build/go/bin/staticcheck
  92. 22.18 s go-tests> + readonly STATICCHECK_PATH
  93. 22.18 s go-tests> + readonly STATICCHECK_VERSION=v0.6.1
  94. 22.18 s go-tests> + STATICCHECK_VERSION=v0.6.1
  95. 22.18 s go-tests> + [[ ! -f /build/go/bin/staticcheck ]]
  96. 22.18 s go-tests> + /build/go/bin/staticcheck ./...
  97. 25.28 s go-tests> cmd/app/main.go:29:6: should omit comparison to bool constant, can be simplified to !uploadToS3 (S1002)
  98. 25.28 s go-tests> cmd/app/main.go:29:31: should omit comparison to bool constant, can be simplified to !hasMediaDir (S1002)
  99. 25.48 s error: Cannot build '/nix/store/3srl5kssv3nn98wajckccm3jx2zcbcn0-go-tests-0.0.0.drv'.
  100. 25.48 s Reason: builder failed with exit code 1.
  101. 25.48 s Output paths:
  102. 25.48 s /nix/store/p5iagrp73fgyywylswadzwsnvvmf9f35-go-tests-0.0.0
  103. 25.48 s Last 70 log lines:
  104. 25.48 s > Running phase: unpackPhase
  105. 25.48 s > unpacking source archive /nix/store/86qix1787pkbnv0dmfmh5arhjwiyc0ji-source
  106. 25.48 s > source root is source
  107. 25.48 s > Running phase: patchPhase
  108. 25.48 s > Running phase: updateAutotoolsGnuConfigScriptsPhase
  109. 25.48 s > Running phase: configurePhase
  110. 25.48 s > no configure script, doing nothing
  111. 25.48 s > Running phase: buildPhase
  112. 25.48 s > patching script interpreter paths in ./dev-scripts
  113. 25.48 s > ./dev-scripts/download-prod-db: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  114. 25.48 s > ./dev-scripts/lint-sql: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  115. 25.48 s > ./dev-scripts/populate-db: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  116. 25.48 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. 25.48 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"
  118. 25.48 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. 25.48 s > ./dev-scripts/check-go-formatting: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  120. 25.48 s > ./dev-scripts/check-bash: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  121. 25.48 s > ./dev-scripts/enable-multiarch-docker: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  122. 25.48 s > ./dev-scripts/serve-docker: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  123. 25.48 s > ./dev-scripts/package-binaries: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  124. 25.48 s > ./dev-scripts/check-trailing-newline: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  125. 25.48 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"
  126. 25.48 s > ./dev-scripts/build-backend: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  127. 25.48 s > ./dev-scripts/run-go-tests: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  128. 25.48 s > ./dev-scripts/reset-db: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  129. 25.48 s > ./dev-scripts/check-trailing-whitespace: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  130. 25.48 s > ./dev-scripts/check-frontend: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  131. 25.48 s > ./dev-scripts/render-design-doc: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  132. 25.48 s > ./dev-scripts/serve: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  133. 25.48 s > ./dev-scripts/run-e2e-tests: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0550j0i8bmzxbcnzrg1g51zigj7y12ih-bash-interactive-5.3p9/bin/bash"
  134. 25.48 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"
  135. 25.48 s > + set -o pipefail
  136. 25.48 s > + full_test=
  137. 25.48 s > + go_test_flags=("-tags=netgo,osusergo")
  138. 25.48 s > + go_test_flags+=("-fullpath")
  139. 25.48 s > + readonly COVERAGE_FILE_RAW=.coverage.out
  140. 25.48 s > + COVERAGE_FILE_RAW=.coverage.out
  141. 25.48 s > + readonly COVERAGE_FILE_HTML=.coverage.html
  142. 25.48 s > + COVERAGE_FILE_HTML=.coverage.html
  143. 25.48 s > + [[ '' = \-\-full ]]
  144. 25.48 s > + set -u
  145. 25.48 s > +++ dirname ./dev-scripts/run-go-tests
  146. 25.48 s > ++ cd ./dev-scripts
  147. 25.48 s > ++ pwd
  148. 25.48 s > + SCRIPT_DIR=/build/source/dev-scripts
  149. 25.48 s > + readonly SCRIPT_DIR
  150. 25.48 s > + cd /build/source/dev-scripts/..
  151. 25.48 s > + go test -tags=netgo,osusergo -fullpath ./...
  152. 25.48 s > ? codeberg.org/mtlynch/little-moments/cmd/app [no test files]
  153. 25.48 s > ? codeberg.org/mtlynch/little-moments/cmd/import-from-tinybeans [no test files]
  154. 25.48 s > ok codeberg.org/mtlynch/little-moments/handlers 0.009s
  155. 25.48 s > ? codeberg.org/mtlynch/little-moments/images [no test files]
  156. 25.48 s > ok codeberg.org/mtlynch/little-moments/little_moments 0.004s
  157. 25.48 s > ? codeberg.org/mtlynch/little-moments/s3 [no test files]
  158. 25.48 s > ? codeberg.org/mtlynch/little-moments/s3config [no test files]
  159. 25.48 s > ? codeberg.org/mtlynch/little-moments/store/sqlite [no test files]
  160. 25.48 s > ? codeberg.org/mtlynch/little-moments/store/test_sqlite [no test files]
  161. 25.48 s > ok codeberg.org/mtlynch/little-moments/tinybeans 0.004s
  162. 25.48 s > ok codeberg.org/mtlynch/little-moments/tinybeans/parse 0.005s
  163. 25.48 s > + [[ -n '' ]]
  164. 25.48 s > + go vet ./...
  165. 25.48 s > ++ go env GOPATH
  166. 25.48 s > + STATICCHECK_PATH=/build/go/bin/staticcheck
  167. 25.48 s > + readonly STATICCHECK_PATH
  168. 25.48 s > + readonly STATICCHECK_VERSION=v0.6.1
  169. 25.48 s > + STATICCHECK_VERSION=v0.6.1
  170. 25.48 s > + [[ ! -f /build/go/bin/staticcheck ]]
  171. 25.48 s > + /build/go/bin/staticcheck ./...
  172. 25.48 s > cmd/app/main.go:29:6: should omit comparison to bool constant, can be simplified to !uploadToS3 (S1002)
  173. 25.48 s > cmd/app/main.go:29:31: should omit comparison to bool constant, can be simplified to !hasMediaDir (S1002)
  174. 25.48 s For full logs, run:
  175. 25.48 s nix log /nix/store/3srl5kssv3nn98wajckccm3jx2zcbcn0-go-tests-0.0.0.drv