Page MenuHomePhabricator

[Nix] Use openssl 1.1 for nodejs
ClosedPublic

Authored by jon on Oct 12 2022, 2:25 PM.
Tags
None
Referenced Files
F3248321: D5356.id17546.diff
Fri, Nov 15, 9:21 AM
F3247966: D5356.diff
Fri, Nov 15, 7:57 AM
Unknown Object (File)
Sat, Nov 9, 8:10 PM
Unknown Object (File)
Sat, Nov 9, 8:10 PM
Unknown Object (File)
Sat, Nov 9, 8:08 PM
Unknown Object (File)
Tue, Nov 5, 2:07 AM
Unknown Object (File)
Oct 14 2024, 10:44 PM
Unknown Object (File)
Oct 10 2024, 9:42 AM
Subscribers

Details

Reviewers
abosh
atul
varun
ashoat
rohan
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Commits
rCOMM2c4cfd3b0d0c: [Nix] Use openssl 1.1 for nodejs
Summary

Force nodejs-16_x to use openssl 1.1 to preserve legacy openssl
behavior.

https://linear.app/comm/issue/ENG-2029/

Test Plan
nix develop
yarn cleaninstall # might be optional
cd landing
yarn prod

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Owners added a reviewer: Restricted Owners Package.Oct 12 2022, 2:25 PM

Caching aside, is there a way to have it use "more of my computer" when it's building node?

Screen Shot 2022-10-12 at 6.12.16 PM.png (510×3 px, 863 KB)

The ./scripts/install_nix.sh should provide you with defaults, currently it will give 4 cores per build. It's possible that the build is just single threaded for some reason.

To anwser your question more directly, it's the max-jobs and cores values for nix.conf. https://nixos.org/manual/nix/stable/command-ref/conf-file.html

You should also be able to pass --jobs N --cores N to any nix command. Jobs are how many distinct packages it can build, and cores is how many cores per build it will use.

This revision is now accepted and ready to land.Oct 12 2022, 4:28 PM

Thanks for the follow up on Linear!

This revision was automatically updated to reflect the committed changes.
In D5356#158276, @jon wrote:

To anwser your question more directly, it's the max-jobs and cores values for nix.conf. https://nixos.org/manual/nix/stable/command-ref/conf-file.html

You should also be able to pass --jobs N --cores N to any nix command. Jobs are how many distinct packages it can build, and cores is how many cores per build it will use.

Is there a way we could default to the number of cores that the computer has?

Is there a way we could default to the number of cores that the computer has?

This is done already as part of ./scripts/install_nix.sh