<div dir="ltr">Hi folks,<div><br></div><div>I noticed what _seemed_ like a quick reproducible-build fix for alembic (a database migration framework written in Python).  A few hours later though, I'm still puzzled.</div><div><br></div><div>The problem appears in a similar pattern across various architectures in the diffoscope results for alembic -- both amd64[1] and arm64[2], for example.  It looks like the variations are in sphinx-generated documentation where the ordering of collection elements -- like the items in this attribute definition[3] -- differs in the output.</div><div><br></div><div>My understanding is that sphinx is using Python 3.11's built-in AST parser, which doesn't provide parse-tree traversal order guarantees, during these builds - and that'd seem to make sense as a cause.</div><div><br></div><div>Also: this might be the same issue as described in 'randomness_in_property_annotations_generated_by_sphinx'[4].</div><div><br></div><div>Does anyone have suggestions about how to proceed?  I'll likely take more of a look again tomorrow.</div><div><br></div><div>Thanks,</div><div>James</div><div><br></div><div>(note: posting from my work email, because some of my work infrastructure uses alembic, and so I think there's a clear, if small, work-related motivation for this)</div><div><br></div><div>[1] - <a href="https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/alembic.html">https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/alembic.html</a></div><div><br></div><div>[2] - <a href="https://tests.reproducible-builds.org/debian/rb-pkg/unstable/arm64/diffoscope-results/alembic.html">https://tests.reproducible-builds.org/debian/rb-pkg/unstable/arm64/diffoscope-results/alembic.html</a></div><div><br></div><div>[3] - <a href="https://github.com/sqlalchemy/alembic/blob/a968c9d2832173ee7d5dde50c7573f7b99424c38/alembic/ddl/impl.py#L90">https://github.com/sqlalchemy/alembic/blob/a968c9d2832173ee7d5dde50c7573f7b99424c38/alembic/ddl/impl.py#L90</a></div><div><br></div><div>[4] - <a href="https://tests.reproducible-builds.org/debian/issues/unstable/randomness_in_property_annotations_generated_by_sphinx_issue.html">https://tests.reproducible-builds.org/debian/issues/unstable/randomness_in_property_annotations_generated_by_sphinx_issue.html</a></div></div>