https://pantsbuild.org/ logo
#general
Title
# general
s

shy-advantage-49800

02/04/2022, 12:58 PM
How do I run tests sequentially considering the same
python_tests
?
c

curved-television-6568

02/04/2022, 1:30 PM
See if you find anything useful in this thread: https://pantsbuild.slack.com/archives/C046T6T9U/p1643829377652609 🙂
s

shy-advantage-49800

02/04/2022, 1:44 PM
Hmm... I mean, I can use that... But doesn't look cool 🤔 If I have
tests/potato/test_1.py
,
tests/potato/test_2.py
, considering that they are under the same
python_tests
, and I want
test_1.py
, and
test_2.py
to run sequentially... That's my only option?
c

curved-television-6568

02/04/2022, 1:56 PM
Do you want to run more tests, in parallell, and only these that share the same
python_tests
target to run in sequence?
(in the same
./pants
invocation?)
Otherwise I think that https://www.pantsbuild.org/docs/reference-global#section-process-execution-local-parallelism or its remote counter part, does what you’re looking for..
s

shy-advantage-49800

02/04/2022, 2:00 PM
Do you want to run more tests, in parallell, and only these that share the same 
python_tests
 target to run in sequence?
yes
(in the same 
./pants
 invocation?)
yes
c

curved-television-6568

02/04/2022, 2:05 PM
Ah..
w

witty-crayon-22786

02/04/2022, 5:16 PM
is it sequentially: • as in: “in this order”, or • “not concurrently”, as in, in any order, just not at the same time ?
s

shy-advantage-49800

02/04/2022, 5:17 PM
not concurrently
w

witty-crayon-22786

02/04/2022, 5:18 PM
got it. yea, then it’s the same as that thread i think.
h

high-yak-85899

02/04/2022, 6:23 PM
Agreed. Not concurrently (which then implies sequentially) was my need. And I think that process parallelism flag works fine for our needs for now.
4 Views