Allow tox func tests suite to run in parallel 27/98227/2
authorGuillaume Lambert <guillaume.lambert@orange.com>
Thu, 24 Jun 2021 13:50:15 +0000 (15:50 +0200)
committerVachhani, Shweta (sv111y) <sv111y@att.com>
Sun, 31 Oct 2021 11:23:06 +0000 (07:23 -0400)
commit4ce6900b1a9ca1c5ba94a1e795cb3e3e4ee70dab
treeb4f46c0065257a8d402332918ce4823adcf9fe18
parent62a9ece9c589c478e2f7b311c933298569948afd
Allow tox func tests suite to run in parallel

- append PID to lighty controller log file
  This avoids parsing the file of another controller instance.
- increase various timeout limits
- rework tox "depends" parameters used to artificially create a sequel
  in parallel mode.
  tox -p auto strategy is only based on CPU core numbers and not memory
  nor any other parameter. This is not optimal since it can cause other
  resources starvation issues in the gate (but not locally).
  The new configuration proposed here chains in parallel:
    * PCE tests first then 1.2.1 device tests
    * 7.1 device tests first then 2.2.1 device tests
  This way, only 2 controller instances can be run simultaneously, what
  prevents resources from starvation in the gate.

JIRA: TRNSPRTPCE-482
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I3a0a66a45a8e170b4554c9de769e1e65b96d224f
tests/transportpce_tests/common/test_utils.py
tox.ini