build checks.x86_64-linux.e2e-wrong-source-mapping-is-a-complaint

Queued Started Finished

Reproduce this run
  1. 0.00 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://github.com/NorfairKing/hopinion?ref=test-file-rules&rev=665217f6066ab9de229c107cc27063a879407ba8&shallow=1#checks.x86_64-linux.e2e-wrong-source-mapping-is-a-complaint --print-build-logs
  2. 1.72 s
  3. 2.39 s Building /nix/store/zdnbsyl2pq1z12h7iind92nxq62gm62h-e2e-wrong-source-report.drv
  4. 2.70 s [e2e-wrong-source-report] [error HOPINION_FAILED]: No source root accounts for lonely/src/Lonely.hs, so it cannot be shown against its code. Pass --source PREFIX=DIR for the package it is in.
  5. 2.70 s [e2e-wrong-source-report]
  6. 2.70 s [e2e-wrong-source-report] [error HOPINION_FAILED]: No source root accounts for thing/src/Thing.hs, so it cannot be shown against its code. Pass --source PREFIX=DIR for the package it is in.
  7. 2.70 s [e2e-wrong-source-report]
  8. 2.70 s [e2e-wrong-source-report] [error HsGenValidInGenPackage]: A GenValid instance outside a -gen package.
  9. 2.70 s [e2e-wrong-source-report] ╭──▶ lonely/src/Lonely.hs@8:1-8:25
  10. 2.70 s [e2e-wrong-source-report] │
  11. 2.70 s [e2e-wrong-source-report] 8 │ <no line>
  12. 2.70 s [e2e-wrong-source-report] • ┬
  13. 2.70 s [e2e-wrong-source-report] • ╰╸ A GenValid instance in a package's own library gets compiled into the executable. Move it to the matching -gen package.
  14. 2.70 s [e2e-wrong-source-report] •
  15. 2.70 s [e2e-wrong-source-report] │ Note: A generator is test code, and an instance in the library is linked into everything that depends on the library, so the shipped executable carries QuickCheck and the generators with it. The -gen package exists so that dependency stops at the test suite, which is also what keeps a generator free to be as slow or as elaborate as the property needs.
  16. 2.70 s [e2e-wrong-source-report] │ Hint: To suppress, write this on the line above the code it points at, and say why: -- [allow:HsGenValidInGenPackage] <reason>
  17. 2.70 s [e2e-wrong-source-report] ─────╯
  18. 2.70 s [e2e-wrong-source-report]
  19. 2.70 s [e2e-wrong-source-report] [error TestGenValidSpecPerGenValid]: No genValidSpec @Orphan anywhere, and there is no lonely-gen for it to be written in.
  20. 2.70 s [e2e-wrong-source-report] ╭──▶ lonely/src/Lonely.hs@8:1-8:25
  21. 2.70 s [e2e-wrong-source-report] │
  22. 2.70 s [e2e-wrong-source-report] 8 │ <no line>
  23. 2.70 s [e2e-wrong-source-report] • ┬
  24. 2.70 s [e2e-wrong-source-report] • ╰╸ A GenValid instance creates an obligation: genValidSpec @T must be called in the test suite of that package's gen package.
  25. 2.70 s [e2e-wrong-source-report] •
  26. 2.70 s [e2e-wrong-source-report] │ Note: A generator nothing runs is a generator nobody has checked. genValid can produce values the type's own Validity instance rejects, and shrinkValid can shrink to them, and every property built on it inherits that quietly: the failures it reports are about values the code was never meant to see. genValidSpec asserts exactly the two things the instance promises, and it is one line. The spec belongs to the package that declares the instance, because a spec written next door disappears the day that other package stops mentioning the type.
  27. 2.70 s [e2e-wrong-source-report] │ Hint: To suppress, write this on the line above the code it points at, and say why: -- [allow:TestGenValidSpecPerGenValid] <reason>
  28. 2.70 s [e2e-wrong-source-report] ─────╯
  29. 2.70 s [e2e-wrong-source-report]
  30. 2.70 s [e2e-wrong-source-report] [error CommentBareTodo]: A bare TODO. Reference an issue or a URL, or do it.
  31. 2.70 s [e2e-wrong-source-report] ╭──▶ thing/src/Thing.hs@3:1-3:58
  32. 2.70 s [e2e-wrong-source-report] │
  33. 2.70 s [e2e-wrong-source-report] 3 │ <no line>
  34. 2.70 s [e2e-wrong-source-report] • ┬
  35. 2.70 s [e2e-wrong-source-report] • ╰╸ A TODO needs an issue reference or a URL saying where the follow-up is tracked.
  36. 2.70 s [e2e-wrong-source-report] •
  37. 2.70 s [e2e-wrong-source-report] │ Note: A TODO nothing points at is a note nobody is holding. It reads like a plan, so the next reader assumes it is one, and it goes stale in place because nothing brings it back up. A reference makes it findable from wherever the work is actually tracked; doing it makes the note unnecessary. If it is neither tracked nor worth doing, the honest version is a comment that says what is missing and what would make it worth doing.
  38. 2.70 s [e2e-wrong-source-report] │ Hint: To suppress, write this on the line above the code it points at, and say why: -- [allow:CommentBareTodo] <reason>
  39. 2.70 s [e2e-wrong-source-report] ─────╯
  40. 2.70 s [e2e-wrong-source-report]
  41. 2.70 s [e2e-wrong-source-report] [error HsGenValidInGenPackage]: A GenValid instance outside a -gen package.
  42. 2.70 s [e2e-wrong-source-report] ╭──▶ thing/src/Thing.hs@9:1-9:25
  43. 2.70 s [e2e-wrong-source-report] │
  44. 2.70 s [e2e-wrong-source-report] 9 │ <no line>
  45. 2.70 s [e2e-wrong-source-report] • ┬
  46. 2.70 s [e2e-wrong-source-report] • ╰╸ A GenValid instance in a package's own library gets compiled into the executable. Move it to the matching -gen package.
  47. 2.70 s [e2e-wrong-source-report] •
  48. 2.70 s [e2e-wrong-source-report] │ Note: A generator is test code, and an instance in the library is linked into everything that depends on the library, so the shipped executable carries QuickCheck and the generators with it. The -gen package exists so that dependency stops at the test suite, which is also what keeps a generator free to be as slow or as elaborate as the property needs.
  49. 2.70 s [e2e-wrong-source-report] │ Hint: To suppress, write this on the line above the code it points at, and say why: -- [allow:HsGenValidInGenPackage] <reason>
  50. 2.70 s [e2e-wrong-source-report] ─────╯
  51. 2.70 s [e2e-wrong-source-report]
  52. 2.70 s [e2e-wrong-source-report] [error TestGenValidSpecPerGenValid]: No genValidSpec @Widget anywhere in thing-gen's test suite.
  53. 2.70 s [e2e-wrong-source-report] ╭──▶ thing/src/Thing.hs@9:1-9:25
  54. 2.70 s [e2e-wrong-source-report] │
  55. 2.70 s [e2e-wrong-source-report] 9 │ <no line>
  56. 2.70 s [e2e-wrong-source-report] • ┬
  57. 2.70 s [e2e-wrong-source-report] • ╰╸ A GenValid instance creates an obligation: genValidSpec @T must be called in the test suite of that package's gen package.
  58. 2.70 s [e2e-wrong-source-report] •
  59. 2.70 s [e2e-wrong-source-report] │ Note: A generator nothing runs is a generator nobody has checked. genValid can produce values the type's own Validity instance rejects, and shrinkValid can shrink to them, and every property built on it inherits that quietly: the failures it reports are about values the code was never meant to see. genValidSpec asserts exactly the two things the instance promises, and it is one line. The spec belongs to the package that declares the instance, because a spec written next door disappears the day that other package stops mentioning the type.
  60. 2.70 s [e2e-wrong-source-report] │ Hint: To suppress, write this on the line above the code it points at, and say why: -- [allow:TestGenValidSpecPerGenValid] <reason>
  61. 2.70 s [e2e-wrong-source-report] ─────╯
  62. 3.07 s [e2e-wrong-source-report:post-build] Uploading to the NixCI staging cache: /nix/store/h5kwj8imrnwybk2cc062aif2z3znrlz1-e2e-wrong-source-report
  63. 3.11 s [e2e-wrong-source-report:post-build] warning: 'warn-short-path-literals' is deprecated, use 'lint-short-path-literals = ignore' instead
  64. 3.12 s [e2e-wrong-source-report:post-build] copying 1 paths...
  65. 3.12 s [e2e-wrong-source-report:post-build] copying path '/nix/store/h5kwj8imrnwybk2cc062aif2z3znrlz1-e2e-wrong-source-report' to 'https://cache.staging.nix-ci.com'...
  66. 3.25 s [e2e-wrong-source-report:post-build] warning: 'warn-short-path-literals' is deprecated, use 'lint-short-path-literals = ignore' instead
  67. 3.43 s [e2e-wrong-source-report:post-build] copying 0 paths...
  68. 3.46 s Uploaded e2e-wrong-source-report in 406ms
  69. 3.46 s Progress: 1 of 3 built
  70. 3.46 s Built e2e-wrong-source-report in 1.0s
  71. 3.49 s Building /nix/store/ip4ry5m9asacrcd6n2z03zgvl99a13z3-e2e-wrong-source-mapping-is-a-complaint.drv
  72. 3.54 s [e2e-wrong-source-mapping-is-a-complaint:post-build] Uploading to the NixCI staging cache: /nix/store/0w1njymkd23qn66cfwszj1ya63jqx95f-e2e-wrong-source-mapping-is-a-complaint
  73. 3.59 s [e2e-wrong-source-mapping-is-a-complaint:post-build] warning: 'warn-short-path-literals' is deprecated, use 'lint-short-path-literals = ignore' instead
  74. 3.59 s [e2e-wrong-source-mapping-is-a-complaint:post-build] copying 1 paths...
  75. 3.59 s [e2e-wrong-source-mapping-is-a-complaint:post-build] copying path '/nix/store/0w1njymkd23qn66cfwszj1ya63jqx95f-e2e-wrong-source-mapping-is-a-complaint' to 'https://cache.staging.nix-ci.com'...
  76. 3.74 s [e2e-wrong-source-mapping-is-a-complaint:post-build] warning: 'warn-short-path-literals' is deprecated, use 'lint-short-path-literals = ignore' instead
  77. 3.91 s [e2e-wrong-source-mapping-is-a-complaint:post-build] copying 0 paths...
  78. 3.93 s Uploaded e2e-wrong-source-mapping-is-a-complaint in 401ms
  79. 3.93 s Progress: 2 of 3 built
  80. 3.93 s Built e2e-wrong-source-mapping-is-a-complaint in 441ms
  81. 3.93 s Progress: 3 of 3 built
  82. 3.93 s /nix/store/0w1njymkd23qn66cfwszj1ya63jqx95f-e2e-wrong-source-mapping-is-a-complaint
  83. 3.99 s Build succeeded.