Proposal: Nxext P2P task building #401
Jordan-Hall
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
This is a great feature, some questions though
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The goal here is to see what the view are for a distributed team-based tasking building and allow people to contribute computing rather than code to open source projects.
Motivation
Working recently on Distributed/grid computing recently and got me thinking we could speed up the build process similar to the NX cloud approach but you can build using your team's computer.
From Altan Nrwl cloud core team:
How would it work?
In essence, we will be wrapping NX CLI to listen to commands. We use NX graph to build a tree of tasks that be run in isolation and feedback to the main tasks.
During install, we will install a small local node server that will listen to requests coming into your machine. The script reads the runKey and send it to our "signal server" and connect to available agents that had your "runKey" inside the "contributeTo" array.
Nx.json
Locally:
If you are only set to computeBy "internal" then only your team will contribute to computing the task. We do this by cloning the existing repo locally and pnpm style sys link to node_modules (this is to reduce un need strain and file space). Otherwise, the script will run git clone on the repository and install node modules
Docker:
We can also run Docker containers on the user's machine to perform the tasks and then teardown after
Once the task is completed we zip the finished artefact up and set it back to the "original" job.
Nxext would then offer an API to allow projects to provide "credit" to people that's contributed their computer power to open source.
Main benefits of this proposal
Beta Was this translation helpful? Give feedback.
All reactions