generate_commits: Allow k- & G-byte-sized commits as well, besides megabytes
What does this MR do and why?
Change --megabytes input into a more generic --bytes flag, so that k-, M- & B-bytes are possible.
Screenshots, recordings or output
$ du 1x-1MB-random*/* 3x-123kB-random*/*
1.0M 1x-1MB-random-20251205-63492-nvibzk/8587202144758932
# before, only this was possible with different number
124K 1x-123kB-random-20251205-63692-zp90mi/339184992013543
# now, gls_generate_commits --bytes=123k can be used
How to set up and validate locally
See example command above.
MR acceptance checklist
-
I've tested this change on: macOS
/Linux. -
This change needs no other test and thus no review, because it only changes Ruby-based behaviour within the script. I'll merge it myself.
-
Thisdoes needat least 1 additional test on another machine, ideally using a different OS. I've facilitated this via:Slack thread/ MR review.
-
Edited by Katrin Leinweber