You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A bunch of people has helped out improving running the test suite in parallel
(refs: nodejs/node#4476). What left to be done now is to roll it out in CI. The tricky part here is that passing -j $(prtconf stuff) is that its not cross platform and is plain wrong on some systems (smartos). Passing -J to test.py won't work either since it uses pythons multiprocessing.cpu_count() which similar to /proc/cpu will be way off on some os'es (hi, smartos).
My idea was that we could start rolling out the environment variable JOBS= which would reflect the amount of parallel threads we want a slave to use. If this is found in Makefile (or vcbuild), we pass it to -j $JOBS; otherwise we move on as usual (no -j).
Thoughts? Downsides?
Edit: elaborating on -J in python.
The text was updated successfully, but these errors were encountered:
..and we'll do something like JOBS={{ ansible_processor_cores }} or JOBS=$(getconf _NPROCESSORS_ONLN) in init scripts for architectures that detects it properly. For the other ones we'll override.
A bunch of people has helped out improving running the test suite in parallel
(refs: nodejs/node#4476). What left to be done now is to roll it out in CI. The tricky part here is that passing
-j $(prtconf stuff)
is that its not cross platform and is plain wrong on some systems (smartos). Passing-J
totest.py
won't work either since it uses pythonsmultiprocessing.cpu_count()
which similar to/proc/cpu
will be way off on some os'es (hi, smartos).My idea was that we could start rolling out the environment variable
JOBS=
which would reflect the amount of parallel threads we want a slave to use. If this is found inMakefile
(orvcbuild
), we pass it to-j $JOBS
; otherwise we move on as usual (no-j
).Thoughts? Downsides?
Edit: elaborating on
-J
in python.The text was updated successfully, but these errors were encountered: