Skip to content

Conversation

@aramprice
Copy link
Contributor

Currently the CLI accepts -m or --multiply-processes with a COUNT value which is a multiple applied to the number of parallel process to be spun up.

This commit adds the aditional abiity to modify COUNT by specifing PARALLEL_TEST_MULTIPLE which will be parsed into a float.

Thank you for your contribution!

Checklist

  • Feature branch is up-to-date with master (if not - rebase it).
  • Added tests.
  • Added an entry to the Changelog if the new
    code introduces user-observable changes.
  • Update Readme.md when cli options are changed

Currently the CLI accepts `-m` or `--multiply-processes` with a `COUNT`
value which is a multiple applied to the number of parallel process to
be spun up.

This commit adds the aditional abiity to modify `COUNT` by specifing
`PARALLEL_TEST_MULTIPLE` which will be parsed into a float.
@aramprice aramprice changed the title Allow setting multiplier via ENV variable Allow setting process multiplier via ENV variable Mar 1, 2025
@grosser
Copy link
Owner

grosser commented Mar 1, 2025

how about PARALLEL_TEST_MULTIPLY_PROCESSES so it stays symmetric ?

also what is the usecase for this ?

@aramprice
Copy link
Contributor Author

That is more symmetric, I was aiming for short(er). I don't have any attachment to the naming through, feel free to change (or I can).

Use case is wanting to call the gem's built in rake tasks rather than having to reconstruct the command building logic in lib/parallel_tests/tasks.rb to add in -m.

@grosser grosser merged commit 62c4d0f into grosser:master Mar 1, 2025
4 of 13 checks passed
@grosser
Copy link
Owner

grosser commented Mar 1, 2025

renaming + fixing tests #993
then releasing as v4.10.0

@grosser
Copy link
Owner

grosser commented Mar 1, 2025

FYI yanked that and released 4.10.1 to avoid api change from a method rename in #993

@aramprice aramprice deleted the add-env-for-multiply branch March 3, 2025 18:20
@aramprice
Copy link
Contributor Author

@grosser - thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants