Open nbrien opened 1 year ago
$0
seems to have worked for everyone so far, so I'm hesitant to change it.
Afaik simplest solution would be to add some kind of PARALLEL_RAKE_RUNNER=
env var.
Alternative could be to find something similar to $0
but idk if that exists.
Yes I was also thinking of an ENV switch. I can try prototype something over the holidays and open a pull. I understand the reluctance to change from the $0. I was however curious if parallel would work with anything else than rake?
Thanks for getting back to me and thanks for all the hard work over the years on your repos.
not sure if that's what you meant, but parallel ships with an executable, the rake task is just a wrapper around that
It breaks for us too, we just updated and we’re using an internal script to set up the context of projects and to reset state
When using the rake runner build step in TeamCity we get an issue when
parallel_drop[XXX]
it calls the executing command via $0. which is the rakerunner. (this only broke after upgrading to Ruby 3.1)https://github.com/grosser/parallel_tests/blob/fc090514799e8b46fa92752cc751b14fdac5f9a7/lib/parallel_tests/tasks.rb#L160
The fix is to not use the rake runner and use a custom script in the build step, however I was curious if $0 should be used at all.