-
Notifications
You must be signed in to change notification settings - Fork 165
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
Optimize disk usage by colocating Jenkins workspaces #3897
Comments
Example of a host that would benefit from it: https://ci.nodejs.org/computer/test%2Dibm%2Dubuntu2204%2Dx64%2D2/
We could save about 5GB (and possibly some compilation time) if |
SGTM |
Theoretically, we could also build the node binary in GitHub actions, which are running these jobs anyway, and download it as an artifact to save time? |
No, because GH actions does not support all of the platforms we build for. |
I started by updating https://ci.nodejs.org/view/All/job/node-test-commit-custom-suites-freestyle/ and https://ci.nodejs.org/view/All/job/node-test-commit-linux/ |
FYI nodejs/jenkins-alerts#2871 [root@test-ibm-rhel9-x64-1 ~]# df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/xvda2 24G 21G 1.5G 94% /
[root@test-ibm-rhel9-x64-1 ~]# du -hs /home/iojs/build/workspace/*
3.1G /home/iojs/build/workspace/node
2.9G /home/iojs/build/workspace/node-stress-single-test
3.2G /home/iojs/build/workspace/node-test-commit-linux
4.0K /home/iojs/build/workspace/node-test-commit-linux@tmp
4.0K /home/iojs/build/workspace/node@tmp
[root@test-ibm-rhel9-x64-1 ~]# I'll delete the |
AFAIK "remote FS root" is a combination of:
which is how we end up with:
So I think we can set the workspace in the job to a relative "node". |
Thanks, done. |
I cancelled it and reverted the config change. It ran in |
Trying again with |
At the moment, each Jenkins job runs in its own workspace.
Since most of our machines are able to run only one job at a time, I suggest that we configure some of the jobs that require to build the
node
binary, to all run on a specific hardcoded workspace.That way, we wouldn't have multiple copies of the build artifacts.
The text was updated successfully, but these errors were encountered: