mkorpela / pabot

Parallel executor for Robot Framework test cases.
https://pabot.org
Apache License 2.0
476 stars 152 forks source link

The actual number of allocated processes is incorrect with --dryrun and --processes options #590

Open WendyInXian opened 3 months ago

WendyInXian commented 3 months ago

Pabot version: 2.18.0 Robotframework Version: 7.0.1

Issue:

There are 4 suites in my project, when I tried to run the whole project with specified processes, and --dryrun option.

The number of allocated processes will change according to the specified processes.

One process was assigned when --processes = 6

pabot --processes 6 --dryrun . Storing .pabotsuitenames file 2024-08-05 20:22:31.535022 [PID:17340] [0] [ID:4] EXECUTING Cases.Suite-1 Cases.Suite-2 Cases.Suite-3 Cases.Suite-4 2024-08-05 20:22:33.173420 [PID:17340] [0] [ID:4] PASSED Cases.Suite-1 Cases.Suite-2 Cases.Suite-3 Cases.Suite-4 in 1.6 seconds 10 tests, 10 passed, 0 failed, 0 skipped.

Three process was assigned when --processes = 3

pabot --processes 3 --dryrun . Storing .pabotsuitenames file 2024-08-05 20:25:14.262868 [PID:5396] [0] [ID:5] EXECUTING Cases.Suite-2 2024-08-05 20:25:14.264037 [PID:15956] [1] [ID:6] EXECUTING Cases.Suite-3 2024-08-05 20:25:14.264037 [PID:15168] [2] [ID:4] EXECUTING Cases.Suite-1 2024-08-05 20:25:15.186347 [PID:5396] [0] [ID:5] PASSED Cases.Suite-2 in 0.9 seconds 2024-08-05 20:25:15.207635 [PID:15956] [1] [ID:6] PASSED Cases.Suite-3 in 0.9 seconds 2024-08-05 20:25:15.190421 [PID:2476] [0] [ID:7] EXECUTING Cases.Suite-4 2024-08-05 20:25:15.231404 [PID:15168] [2] [ID:4] PASSED Cases.Suite-1 in 0.9 seconds 2024-08-05 20:25:16.425644 [PID:2476] [0] [ID:7] PASSED Cases.Suite-4 in 1.2 seconds 10 tests, 10 passed, 0 failed, 0 skipped.

WendyInXian commented 3 months ago

cases.zip Issue can be reproduced by the files in attatchment