bitter-ability-32190
05/05/2022, 5:09 PMexclusive
tag for tests? We have one test which if it doesn't get sufficient CPU resources will become flaky.bitter-ability-32190
05/05/2022, 5:10 PMrhythmic-morning-87313
05/05/2022, 5:12 PMwitty-crayon-22786
05/05/2022, 5:44 PMTangentially related, can we specify the # of process slots to consume for a test?yea, we should probably do this. but note that with our existing mechanism, it wouldn’t give you guaranteed slots. so it might be independent from an exclusive flag.
bitter-ability-32190
05/05/2022, 5:44 PMwitty-crayon-22786
05/05/2022, 5:45 PMwitty-crayon-22786
05/05/2022, 5:46 PMwitty-crayon-22786
05/05/2022, 5:47 PMbitter-ability-32190
05/05/2022, 5:47 PMwitty-crayon-22786
05/05/2022, 5:50 PMwitty-crayon-22786
05/05/2022, 5:50 PMwitty-crayon-22786
05/05/2022, 5:51 PMwitty-crayon-22786
05/05/2022, 5:59 PMRange(max: int, min: int | None = None) | Exclusive
… and then exposing it to pytest the same way we expose the execution-slot-varwitty-crayon-22786
05/05/2022, 6:16 PMbitter-ability-32190
05/05/2022, 6:18 PMcpu:N
tag (documented here) but generally I'm just ignoring those 🙈rhythmic-morning-87313
05/06/2022, 2:05 AMrhythmic-morning-87313
05/15/2022, 4:25 AMexclusive
option? One motivation behind me is to run test cases that requires spawning of Redis clusters using docker-compose exclusively to each other, to prevent port overlaps, i.e., tests with fixtures that have side effects to other tests and their fixtures.rhythmic-morning-87313
05/15/2022, 5:26 AMexclusive
option: https://github.com/pantsbuild/pants/issues/15482rhythmic-morning-87313
05/15/2022, 6:07 AMbitter-ability-32190
05/15/2022, 2:02 PMwitty-crayon-22786
05/16/2022, 10:13 PMrhythmic-morning-87313
05/17/2022, 3:31 AMrhythmic-morning-87313
05/17/2022, 6:42 AMrhythmic-morning-87313
05/17/2022, 6:42 AMrhythmic-morning-87313
05/17/2022, 6:43 AMbitter-ability-32190
05/19/2022, 4:50 PMbitter-ability-32190
05/19/2022, 5:10 PMtest-exclusive
goal which I run after test
and "does the right thing"?witty-crayon-22786
05/19/2022, 5:15 PMwitty-crayon-22786
05/19/2022, 5:16 PM./pants --tags=-exclusive test :: && ./pants --tags=exclusive --process-parallelism=1 test ::
bitter-ability-32190
05/19/2022, 5:16 PM./pants test
for each file with the tag? 🤔witty-crayon-22786
05/19/2022, 5:16 PMbitter-ability-32190
05/19/2022, 5:16 PM--process-parallelism
Interesting 🤔bitter-ability-32190
05/19/2022, 5:17 PM