refactor: eval performant target #40
No reviewers
Labels
No labels
Compat
Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: auxolotl/labs#40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "vlinkz/labs:targetperf"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Using
.extendfunction causes nix to not cache the evaluation of a package (a.extend {} != a.extend {}). In effect this meant that every time we usedwe were performing full re-evaluations of binutils and gcc. To make this worse, since binutils and gcc depend on other binutils and gcc (sometimes with this
.extend), the amount of evaluations would start to blow up.Before this patch evaluating
packages.foundation.gcc.latest.packages.x86_64-linux.x86_64-linux.packagewould evaluatebinutilsstage1 139 times, after this patch (and before target patch) it's 4.Looks good on hydra: https://hydra.aux-cache.dev/jobset/aux-prs/labs-pr40
ah, so that's why my script to "evaluate all packages(that i can build(
platform.build==i686 or x86_64))" was taking absolutely foreverwith this patch cherrypicked it goes from "too long to bother re-running to check(an hour?) and OOMing my system" to a minute(which isn't bad for 800 or so packages)
Oh I think I hit that, too. It's why I'm only building bash from tidepool at the moment on hydra. I guess this means I have to revisit the wider package set?
c4c94f40e4toec017a1b7aGoing to merge this now to save people the evaluation pain