GetHostCpusListActionTest fails regularly but isn't deterministic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Tony Breeds |
Bug Description
tripleo_
An example failure is below:
=======
FAIL: tripleo_
tags: worker-0
-------
Traceback (most recent call last):
File "tripleo_
self.
File "/home/
self.
File "/home/
raise mismatch_error
testtools.
Ran 318 tests in 1.309s (+0.639s)
FAILED (id=11, failures=1)
error: testr failed (1)
This is because we're inserting items into a list based on the order of keys in a dictionary [1] Key order isn't deterministic in that way. The closest I can find to an offical statement on that is "CPython implementation detail: Keys and values are listed in an arbitrary order which is non-random, varies across Python implementations, and depends on the dictionary’s history of insertions and deletions."[2]
[1] https:/
[2] https:/
Changed in tripleo: | |
milestone: | none → pike-rc2 |
importance: | Undecided → High |
Fix proposed to branch: master /review. openstack. org/499456
Review: https:/