build packages.x86_64-linux.go-tests

Reproduce this run
  1. 0.01 s $ /nix/store/vzx1mi9c0xfadmsm9dhd83d005cb1qs9-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 --log-format internal-json build --no-link git+https://codeberg.org/mtlynch/simpleauth?ref=overhaul-sessions&rev=c24699c6093b89f375bb51d35691ad06e479fb5e#packages.x86_64-linux.go-tests --print-build-logs
  2. 0.08 s
  3. 0.54 s Building go-tests
  4. 0.59 s [go-tests] Phase: unpackPhase
  5. 0.59 s [go-tests] unpacking sources
  6. 0.59 s [go-tests] unpacking source archive /nix/store/wz97g3vw7iawlpj4c07kxccc6p8ydx5g-source
  7. 0.59 s [go-tests] source root is source
  8. 0.60 s [go-tests] Phase: patchPhase
  9. 0.60 s [go-tests] patching sources
  10. 0.61 s [go-tests] Phase: configurePhase
  11. 0.61 s [go-tests] configuring
  12. 0.62 s [go-tests] no configure script, doing nothing
  13. 0.62 s [go-tests] Phase: buildPhase
  14. 0.62 s [go-tests] building
  15. 0.62 s [go-tests] patching script interpreter paths in ./dev-scripts
  16. 0.63 s [go-tests] ./dev-scripts/git-hooks/pre-commit: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/2ispfz80kmwrsvwndxkxs56irn86h43p-bash-5.1-p16/bin/bash"
  17. 0.63 s [go-tests] ./dev-scripts/check-trailing-whitespace: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/2ispfz80kmwrsvwndxkxs56irn86h43p-bash-5.1-p16/bin/bash"
  18. 0.64 s [go-tests] ./dev-scripts/check-go-formatting: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/2ispfz80kmwrsvwndxkxs56irn86h43p-bash-5.1-p16/bin/bash"
  19. 0.64 s [go-tests] ./dev-scripts/update-scripts: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/2ispfz80kmwrsvwndxkxs56irn86h43p-bash-5.1-p16/bin/bash"
  20. 0.65 s [go-tests] ./dev-scripts/enable-git-hooks: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/2ispfz80kmwrsvwndxkxs56irn86h43p-bash-5.1-p16/bin/bash"
  21. 0.65 s [go-tests] ./dev-scripts/check-bash: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/2ispfz80kmwrsvwndxkxs56irn86h43p-bash-5.1-p16/bin/bash"
  22. 0.66 s [go-tests] ./dev-scripts/check-trailing-newline: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/2ispfz80kmwrsvwndxkxs56irn86h43p-bash-5.1-p16/bin/bash"
  23. 0.66 s [go-tests] ./dev-scripts/run-go-tests: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/2ispfz80kmwrsvwndxkxs56irn86h43p-bash-5.1-p16/bin/bash"
  24. 0.68 s [go-tests] + set -o pipefail
  25. 0.68 s [go-tests] + full_test=
  26. 0.68 s [go-tests] + go_test_flags=("-tags=netgo,osusergo")
  27. 0.68 s [go-tests] + readonly COVERAGE_FILE_RAW=.coverage.out
  28. 0.68 s [go-tests] + COVERAGE_FILE_RAW=.coverage.out
  29. 0.68 s [go-tests] + readonly COVERAGE_FILE_HTML=.coverage.html
  30. 0.68 s [go-tests] + COVERAGE_FILE_HTML=.coverage.html
  31. 0.68 s [go-tests] + [[ --full = \-\-\f\u\l\l ]]
  32. 0.68 s [go-tests] + full_test=1
  33. 0.68 s [go-tests] + go_test_flags+=("-v")
  34. 0.68 s [go-tests] + go_test_flags+=("-race")
  35. 0.68 s [go-tests] + go_test_flags+=("--coverprofile=${COVERAGE_FILE_RAW}")
  36. 0.68 s [go-tests] + set -u
  37. 0.68 s [go-tests] +++ dirname ./dev-scripts/run-go-tests
  38. 0.68 s [go-tests] ++ cd ./dev-scripts
  39. 0.68 s [go-tests] ++ pwd
  40. 0.68 s [go-tests] + SCRIPT_DIR=/build/source/dev-scripts
  41. 0.68 s [go-tests] + readonly SCRIPT_DIR
  42. 0.68 s [go-tests] + cd /build/source/dev-scripts/..
  43. 0.68 s [go-tests] + go test -tags=netgo,osusergo -v -race --coverprofile=.coverage.out ./...
  44. 5.76 s === RUN TestNewUserIDRejectsEmptyString
  45. 5.77 s --- PASS: TestNewUserIDRejectsEmptyString (0.00s)
  46. 5.77 s === RUN TestNewUserIDReturnsUserID
  47. 5.77 s --- PASS: TestNewUserIDReturnsUserID (0.00s)
  48. 5.77 s PASS
  49. 5.77 s coverage: 100.0% of statements
  50. 5.77 s ok codeberg.org/mtlynch/simpleauth/v3 0.024s coverage: 100.0% of statements
  51. 5.77 s === RUN TestAuthenticate
  52. 5.77 s === RUN TestAuthenticate/authenticates_when_password_is_valid
  53. 5.77 s === RUN TestAuthenticate/returns_ErrIncorrectPassword_when_password_is_invalid
  54. 5.77 s === RUN TestAuthenticate/returns_ErrUserNotFound_when_user_is_not_found
  55. 5.77 s --- PASS: TestAuthenticate (0.00s)
  56. 5.77 s --- PASS: TestAuthenticate/authenticates_when_password_is_valid (0.00s)
  57. 5.77 s --- PASS: TestAuthenticate/returns_ErrIncorrectPassword_when_password_is_invalid (0.00s)
  58. 5.77 s --- PASS: TestAuthenticate/returns_ErrUserNotFound_when_user_is_not_found (0.00s)
  59. 5.77 s PASS
  60. 5.77 s coverage: 50.0% of statements
  61. 5.77 s ok codeberg.org/mtlynch/simpleauth/v3/auth 0.024s coverage: 50.0% of statements
  62. 8.63 s === RUN TestCreateAndLoadSession
  63. 8.63 s --- PASS: TestCreateAndLoadSession (0.00s)
  64. 8.63 s === RUN TestRequireSessionRedirectsWithoutSession
  65. 8.63 s --- PASS: TestRequireSessionRedirectsWithoutSession (0.00s)
  66. 8.63 s PASS
  67. 8.63 s coverage: 58.9% of statements
  68. 8.63 s ok codeberg.org/mtlynch/simpleauth/v3/sessions 0.025s coverage: 58.9% of statements
  69. 8.68 s + [[ -n 1 ]]
  70. 8.68 s + go tool cover -html .coverage.out -o .coverage.html
  71. 8.75 s + go vet ./...
  72. 10.84 s ++ go env GOPATH
  73. 10.85 s + STATICCHECK_PATH=/build/go/bin/staticcheck
  74. 10.85 s + readonly STATICCHECK_PATH
  75. 10.85 s + readonly STATICCHECK_VERSION=v0.4.6
  76. 10.85 s + STATICCHECK_VERSION=v0.4.6
  77. 10.85 s + [[ ! -f /build/go/bin/staticcheck ]]
  78. 10.85 s + /build/go/bin/staticcheck ./...
  79. 12.82 s ++ go env GOPATH
  80. 12.82 s + ERRCHECK_PATH=/build/go/bin/errcheck
  81. 12.82 s + readonly ERRCHECK_PATH
  82. 12.82 s + readonly ERRCHECK_VERSION=v1.6.2
  83. 12.82 s + ERRCHECK_VERSION=v1.6.2
  84. 12.82 s + [[ ! -f /build/go/bin/errcheck ]]
  85. 12.82 s + /build/go/bin/errcheck -ignoretests ./...
  86. 13.58 s Phase: installPhase
  87. 13.58 s installing
  88. 13.59 s Phase: fixupPhase
  89. 13.59 s post-installation fixup
  90. 13.59 s shrinking RPATHs of ELF executables and libraries in /nix/store/gi4nld6aa62d2iwq185jkblvp582irc2-go-tests-0.0.0
  91. 13.60 s strip is /nix/store/hk75004j435l09ij4gawlkzg4wfs839w-binutils-wrapper-2.39/bin/strip
  92. 13.60 s patching script interpreter paths in /nix/store/gi4nld6aa62d2iwq185jkblvp582irc2-go-tests-0.0.0
  93. 13.60 s checking for references to /build/ in /nix/store/gi4nld6aa62d2iwq185jkblvp582irc2-go-tests-0.0.0...
  94. 13.69 s [post-build-hook] Uploading paths from nix-ci to the NixCI cache /nix/store/gi4nld6aa62d2iwq185jkblvp582irc2-go-tests-0.0.0
  95. 13.73 s [post-build-hook] warning: 'warn-short-path-literals' is deprecated, use 'lint-short-path-literals = ignore' instead
  96. 13.74 s [post-build-hook] copying 1 paths...
  97. 13.74 s [post-build-hook] copying path '/nix/store/gi4nld6aa62d2iwq185jkblvp582irc2-go-tests-0.0.0' to 'https://cache.nix-ci.com'...
  98. 13.81 s [post-build-hook] warning: 'warn-short-path-literals' is deprecated, use 'lint-short-path-literals = ignore' instead
  99. 14.05 s [post-build-hook] copying 2 paths...
  100. 14.05 s [post-build-hook] copying path '/nix/store/x5w0fjbvncrrhvnpwbrzphwinc4mg2ff-simpleauth-go-modules-0.0.0-go-modules.drv' to 'https://cache.nix-ci.com'...
  101. 14.20 s [post-build-hook] copying path '/nix/store/qs8rm1gkx1cxx6jcrrb805zma50cq2pi-go-tests-0.0.0.drv' to 'https://cache.nix-ci.com'...
  102. 14.37 s