Open f1ames opened 3 weeks ago
I propose fixing it inside the release tools, as otherwise, we would need to update all repositories where we use the same rules.
So, if a user passed an odd number, let's try to round it to an integer.
Let's wait till the CKEditor 5 Dev ESM migration is merged to avoid conflicts with merging changes between branches.
📝 Provide detailed reproduction steps (if any)
IMPORTANT: This happens only if OS reports odd number of cores (see details below).
ckeditor5
repo.yarn
(or whatever other commands are needed for repo initial setup).yarn run release:prepare-packages --compile-only --verbose
.✔️ Expected result
The script runs without error.
❌ Actual result
❓ Possible solution
This happens only if OS reports odd number of cores. On my mac,
require( 'os' ).cpus().length
returns11
. This breaks logic inexecuteinparallel.js
where some array indexes are calculated based on nr of cores and it ends up with indexes like0.5
,1.5
, etc:https://github.com/ckeditor/ckeditor5-dev/blob/e84c7019a61fa31c233e961afed014c1c9303989/packages/ckeditor5-dev-release-tools/lib/utils/executeinparallel.js#L49
https://github.com/ckeditor/ckeditor5-dev/blob/e84c7019a61fa31c233e961afed014c1c9303989/packages/ckeditor5-dev-release-tools/lib/utils/executeinparallel.js#L159-L165
📃 Other details
Apple M3 Pro
chip).If you'd like to see this fixed sooner, add a 👍 reaction to this post.