-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
haskell generic-builder: fix issues with GHC_PACKAGE_PATH in checkPha… #311912
Conversation
@MangoIV Thanks for taking this on! How could I try this out? |
gonna be kinda problematic to try out for everything, I'm currently trying it out on th-abstraction because it doesn't have too many deps and I know it didn't work but this rebuilds the entire haskell world so I think the hydra will be the more reliable way of trying this out... |
@MangoIV If it works with one package that runs a check with that problematic cabal version then I'm happy. |
Would love to get this into the |
NorfairKing/validity#118 @MangoIV I'm failing to try it out because I'm getting an eval error somewhere else, which is really strange. |
if you check out the branch and then |
@MangoIV I'm trying but it's gonna take a while because I'm building GHC now :D |
I'm already in stage 1, I will tell you what happens, don't waste the CPU cycles ;) |
looks like this worked... |
@MangoIV I also want to confirm that it was indeed broken before this commit. |
you can try |
@MangoIV That does indeed fail but for a different reason:
|
my bad, it has to be |
@MangoIV Everything seems to be in order then :D |
Can confirm. |
@sternenseemann ready to merge :D |
Since haskell/cabal@d6e3804 Cabal checks for the absence of this environment variable when running ./Setup test.
18ded08
to
3c0914d
Compare
Hm actually this whole GHC_PACKAGE_PATH stuff may no longer be necessary… let me try something. |
@sternenseemann I am all for improvements but can we make them after fixing this bug? |
Will the staging branch this PR is targeting reach 24.05? If no we need to discuss other approaches, if yes finding an alternative solution until that branch gets merged seems unproblematic. |
@maralorn I have no idea, I don't know the process and don't have commit access 🤷 |
This fix, just like what I have in mind, requires a full rebuild of all Haskell packages. Given how close 24.05 is, we shouldn't unnecessarily cause these multi-day rebuilds to avoid delays. I'm currently in the process of confirming that my change idea is sound. The quickest way for any of these changes to land is to batch it with the rebuild #312133 will cause either way (Hydra is kinda busy at the moment), so it won't necessarily go any quicker. The problem is easy to work around, so I don't think it's too urgent. |
@sternenseemann can you please somehow link more details? I would love to help you in these endeavours, it would be nice to be able to build anything with ghc910, even better if the hydra looked at it briefly before. Thank you! |
I believe
is the only time in a normal situation that that variable would be set at the moment since it isn't actually set before Unfortunately, it is unclear from the git history why this workaround was introduced in the first place, so I've reached out to peti to ask. If I'm right, this is a relic from when this var was set by the GHC setup hook (which has been removed even before generic-builder.nix existed), but I can't be sure yet. That can be complemented by some test builds of course to rule out any obvious problems before we try this. |
@sternenseemann have you tried building without the workaround? |
I don't mean to sound ungrateful, but this bug has now been "fixed" for more than three days and not merged because there could be another improvement. I hope we can still get this fix into |
@ofborg build haskellPackages.doctest |
@NorfairKing |
@maralorn Thanks! And great communicating, thank you! |
Is this related to this bug that has started showing up for me? I tried both as it was and with #312859
From: https://gitlab.horizon-haskell.net/package-sets/horizon-core/-/jobs/1441142 reproduction:
|
@locallycompact No that is the withPackages wrapper and your GHC disagreeing where the package db is located. It seems suspicious to me that your GHC has the version number |
Cherry picking this onto master results into overlays are ignored. |
Can you maybe double check that or maybe share an example with error message? That sounds quite implausible. |
Following default.nix should fail because happy derivation has a typo, but it doesn't
|
The commit you are comparing with is not the one on which you cherry-picked. |
nixpkgs master branch
nixpkgs master branch with cherry picked PR:
|
Resolved via: #312859 |
Description of changes
#311024 , supersedes #311025 as @NorfairKing requested that.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.