Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nix loadtests and memory tests fail when adding GHC.DataSize #3881

Open
steve-chavez opened this issue Jan 27, 2025 · 1 comment
Open

Nix loadtests and memory tests fail when adding GHC.DataSize #3881

steve-chavez opened this issue Jan 27, 2025 · 1 comment
Labels
ci Related to CI setup nix related to Nix tooling

Comments

@steve-chavez
Copy link
Member

Yeah, running the loadtest in CI is not working when dependencies are changed, because it needs to run against the base branch, which doesn't have the dependencies, yet... and then cabal just breaks it somehow.

You can run something like this locally to get the same markdown output:

          postgrest-loadtest-against main v12.2.5
          postgrest-loadtest-report

(but it's likely that it fails the same way... :D)

Originally posted in #3802 (comment)

@steve-chavez steve-chavez added the nix related to Nix tooling label Jan 27, 2025
@steve-chavez steve-chavez changed the title postgrest-loadtest-* commands fail when adding a new dependency postgrest-loadtest-* commands fail when adding a new dependency Jan 27, 2025
@steve-chavez steve-chavez added the ci Related to CI setup label Jan 27, 2025
@wolfgangwalther
Copy link
Member

As mentioned in #3802 (comment), this was fixed a while ago.

The issue that is open from that PR is different:

#3802 (comment)

[nix-shell]$ postgrest-loadtest
...
src/PostgREST/Auth.hs:44:1: error:
    Could not find module ‘GHC.DataSize’
    Perhaps you haven't installed the profiling libraries for package ‘ghc-datasize-0.2.7’?
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
44 | import GHC.DataSize            (recursiveSizeNF)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This same error appears for the memory test and the dynamically linked nix builds. This is not specific to the loadtest.

@steve-chavez steve-chavez changed the title postgrest-loadtest-* commands fail when adding a new dependency Nix loadtests and memory tests fail when adding a new dependency Jan 27, 2025
@wolfgangwalther wolfgangwalther changed the title Nix loadtests and memory tests fail when adding a new dependency Nix loadtests and memory tests fail when adding GHC.DataSize Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Related to CI setup nix related to Nix tooling
Development

No branches or pull requests

2 participants