Conversation
|
The amount of time it takes to build the database from scratch is a real bottleneck! I suspect it could be a lot faster, and having some kind of cutoff to make it even faster for CI would also be good. Anyway I'll see what I can do about read-only credentials. It might take some time because I'm at FOSDEM and really slammed with other work anyway. |
|
I've had success using localstack as a provider of a local S3 interface, if you want to try it out. |
|
Local S3 isn't my problem, I already running At the moment I'm looking at the nix integration; I try to use |
|
Okay, I now use From my point this PR would be ready for review and if agreed implementation. So please let me know if I could do further validation or if we need additional changes. |
|
Very cool. I never got haskell.nix to work for me, but if it makes it easier to sync the stack build and the nix (flake) output, I would take it. I was always unhappy that the Flake build and the Stack build were not synchronized. I am not sure what you mean by "nix pure". Do you mean you have to break the Nix sandbox? I have been at FOSDEM and then sick for the last week. I'll get to this as soon as I can. |
|
My knowledge of nix is very superficial, so I may have chosen the wrong terms, but what I basically mean is that the execution can no longer be derived purely from nix expressions: https://nix.dev/manual/nix/2.26/language/import-from-derivation. Your primary focus should be on getting completely healthy again. Also, since we managed to get through the end of the month and the snapshots are being updated again, this isn't quite so urgent anymore. I would still like to integrate this, though—it still carries a certain risk, as I haven't been able to test everything, but we would have a current basis for further changes or corrections. |
|
I am still interested in deriving everything from stack.yaml, but my heart tells me that haskell.nix is an additional complexity burden that I can't handle. If something stops working, I don't know who to turn to. It is more complex than I can deal with. At least with nixpkgs I feel like I have a small clue. So the situation sucks but I think I need to stick with my generated nix for now. The good news is that I had the time to make the changes -- they are in #362 . I'm just going to add a P.S. while I appreciate that you took the time to make this patch. Hopefully a better option will turn up some day. |
|
#362 is merged. I'll deploy it next and make sure stackage is functional again. |

I'm still in progress of testing this on my laptop - unfortunately this takes days (and is still running) for the build-up of the postgres-DB and I couldn't test if this integrates with our existing database or S3.
So maybe I should limit the build-up to only scan the latest major LTS releases + nightlies from 2026 locally.
However, could you provide a read-only S3 credentials on a private channel, so that I can check if this integration works still well? I wouldn't expect any problems, but you never know.
So while this might be a more aggressive alternative to #358, I think we couldn't wait for this PR to be fully tested; nonetheless I add this as a draft PR so that everyone is aware, and could already view the changes.