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
gap: 4r8p3 -> 4r8p10 #38754
gap: 4r8p3 -> 4r8p10 #38754
Conversation
I think there should be a flag for package removal; I do not use gap directly so I don't object to the packages being removed by default. |
Thats probably a good idea. Because of the size (~1.3G) I think that flag should default to removal, do you agree? |
I do agree; maybe @ChrisJefferson has an opinion that some specific GAP packages should be kept by default. |
I added a flag. Its all-or-nothing. I thought about doing |
url = "ftp://ftp.gap-system.org/pub/gap/gap48/tar.gz/${baseName}${version}_${pkgVer}.tar.gz"; | ||
sha256 = "1rmb0lj43avv456sjwb7ia3y0wwk5shlqylpkdwnnqpjnvjbnzv6"; | ||
# https://www.gap-system.org/Releases/ | ||
# newer versions (4.9.0) are available, but still considered beta (https://github.com/gap-system/gap/wiki/GAP-4.9-release-notes) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you change anything else, this comment should probably go up near the version declaration.
Please remind me to merge if there are no comments from other GAP users after a day or two… |
Are you currently defaulting to keeping all packages? I don't mind an option, but the default should be keeping all packages, as the number one source of issues we get with GAP is people who have installed GAP in Debian, where most of the packages are missing. It isn't well tested, as it isn't the intended use. |
Also, I personally wouldn't bother with that patch. It won't be needed for the next release of GAP (which should appear shortly), and it's really only needed because SAGE uses GAP in weird ways (and packages it's own GAP anyway) -- most people don't close stderr! |
Re: packages: OK, if it does cause problems for upstream, we should keep the packages by default. Maybe Re: patch: it would be nice to force Sage to not rebuild everything on its own, so I think it makes sense to include patch (@timokau is currently working on improving Sage packaging) |
Are all packages in the
So just removing the top 5 or something would already have much of the benefit. Re: hydraPlatforms: Rebuilding took ~7min (with tests) on my pc, so I don't think we should disable hydra build. |
I think SAGE applies some other patches too? (They build a 'libgap', where they make changes to the configuration scripts and a bunch of other things, so they can link in GAP as a library). However, the patch is fine, just hopefully we (the GAP developers) will get 4.9 released. P.S. Thanks for getting this updated, I'd kind of forgotten about it, as I can't get NixOS to work on my current machine. |
@timokau re: Hydra: I think buildfarm and cache are more size-sensitive than buildtime-sensitive, and 7 minutes for a large package doesn't sound that bad for a local build. |
Yes, sage needs one patch more (one that disables loading any packages by default) so that But that other patch is not universally useful (might be harmful) which is why I didn't include it here. I added a |
@ChrisJefferson you're probably not the right person for that, but just in case you are I want to mention that the current versioning scheme is very confusing (with |
@7c6f434c I don't understand what you mean by size-sensitive. Do you mean that space is running out / is too expensive? |
@timokau build machines can sometimes run out of space, and also binary cache is stored on S3 (currently without any pruning) which means that large packages become a recurring expense (while builds are a one-time expense) |
I am the right person, and I agree it's been a confusing choice. There are boring practical reasons (we've hard-wired the idea of 3 digit versions, with the second digit meaning major breakage, in far too many places), but we should try to improve in future. |
Also, some of those packages could possibly be shrunk, I'll look into it. One day, we'd like a proper package manager, where packages are downloaded when needed, but that's obviously a major undertaking. |
@7c6f434c okay I see, I'll disable hydra build for now if you think thats better. @ChrisJefferson so you're saying that for now all packages in the |
@timokau : I'm saying the behaviour of GAP if you start deleting packages isn't well understood (unfortunately), as we don't test that way often. Certainly some packages could be deleted as they aren't loaded by default, or required by other packages, but we don't have a good list of what those packages are. I certainly wouldn't delete anything which is auto-loaded by default. |
I reverted the default to keeping all packages. I also added This way other packages can depend on |
I think |
You're right, changed. |
This is ready to be merged, right? |
In my opinion yes and I think @ChrisJefferson's concerns are addressed as well. |
This seems to have broken ofborg eval for some reason. It's complaining about not finding |
I don't know what that error means. @grahamc? |
Fixed |
Recently I don't understand why some PRs do not get evaluated. Here it was just WIP, though, and I didn't force an eval afterwards. Explanation of the problem: it used |
@7c6f434c Is this really fixed? Just got this: https://gist.github.com/GrahamcOfBorg/88412a68664f1431e733ccb37c9bacc8 |
@7c6f434c I could indeed fix the issue with your idea. However I cannot see any patch. Did you somehow forget to commit it ? |
All PRs are still being evaluated. The PR was force-pushed to, and only eight minutes elapsed between the force push and the merge. At that time, 9:35, there was a sizable backlog of evaluations: https://monitoring.nix.ci/dashboard/db/ofborg?orgId=1&from=1523450834321&to=1523458316494 You can see when this merged, because every pending PR failed evaluation almost immediately. |
@layus now that I look it seems I have indeed committed and pushed the patch, but to a wrong remote. |
@grahamc I know it shouldn't have had time to get evaluated after the last force-push, but it wasn't getting evaluated while WIP, so I didn't wait for the evaluation when it could get triggered. |
Maybe I should remove the part about not evaluating WIPs. |
Sorry for causing this, I missed the |
@timokau |
Motivation for this change
gap.sh
to the more standardgap
The second change might be controversial. I still have to test all the packages that depend on gap. When starting the binary, gap informs about some missing packages (but works fine).
Maintainer @7c6f434c, @ChrisJefferson
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)