html differs for every build
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
keystoneauth |
Triaged
|
Low
|
Unassigned |
Bug Description
While working on reproducible builds for openSUSE, I found that
building the python-
/usr/share/
<dl class="attribute">
<dt id="keystoneaut
-<code class="
+<code class="
It is put there by
setup.py build_sphinx
Which gets the randomness from /dev/urandom
via TEST_TOKEN = uuid.uuid4().hex
that is used in several places such as
tests/unit/
tests/unit/
tests/unit/utils.py
This could probably be solved by using a mocked uuid4 method or by replacing all random values with constants. e.g.
TEST_TOKEN = '08aebcf32cc349
Or maybe sphinx could be told to not document stuff under tests/
See https:/
Tests are explicitly using random values to ensure there are no hardcoded explicit "did we get a value we expected".
The correct fix is to not generate docs for the tests.