Jenkins test run should not run parallel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
Invalid
|
Undecided
|
Tong Li |
Bug Description
Since some of the test cases based on the database operation were not developed to run at the same time, Jenkins test run fails.
This can be easily spotted by looking at the number of workers from the log file. We either need to develop better test cases so
that when all test cases share one database, they won't affect each other or we simply at this point just need to make sure that
there is only 1 worker to test our code. The later approach obviously slow down the process but should be the easiest approach.
For some reason, the nova tests ensures there is only 1 worker but not for the other tests
python setup.py testr --slowest '--testr-
Then we have
python setup.py testr --slowest --testr-args=
The follow log shows there are multiple workers for each run. See worker-0 & worker-1 from the tag.
tags: -worker-0
time: 2013-08-16 22:50:27.332786Z
tags: worker-1
test: tests.alarm.
time: 2013-08-16 22:50:27.364765Z
successful: tests.alarm.
Content-Type: text/plain;
pythonlogging:''
106
initiating evaluation cycle on 2 alarms
alarm 5fc6a2cb-
alarm 0078ef8d-
0
]
tags: -worker-1
time: 2013-08-16 22:50:27.366113Z
tags: worker-0
test: tests.api.
time: 2013-08-16 22:50:27.387948Z
skip: tests.api.
Content-Type: text/plain;
pythonlogging:''
Changed in ceilometer: | |
assignee: | nobody → Tong Li (litong01) |
The tests pass so obviously everything's fine. I don't understand what's the problem you're trying to point.