Source: python-pydash Version: 8.0.3-2 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
Hi, Whilst working on the Reproducible Builds effort [0], we noticed that python-pydash could not be built reproducibly. This is because it ships a nondeterminstic JUnit XML file: │ │ │ │ ├── ./usr/lib/python3/dist-packages/build/testresults/junit.xml │ │ │ │ │ @@ -1,86 +1,86 @@ │ │ │ │ │ <?xml version="1.0" encoding="utf-8"?> │ │ │ │ │ <testsuites> │ │ │ │ │ - <testsuite name="pytest" errors="0" failures="0" skipped="0" tests="2565" time="9.121" timestamp="2024-11-08T23:50:17.960343-12:00" hostname="infom01-amd64"> │ │ │ │ │ - <testcase classname="pydash.arrays" name="pydash.arrays.chunk" time="0.037"/> │ │ │ │ │ + <testsuite name="pytest" errors="0" failures="0" skipped="0" tests="2565" time="34410184.836" timestamp="2024-11-10T01:52:13.062494+14:00" hostname="i-capture-the-hostname"> │ │ │ │ │ + <testcase classname="pydash.arrays" name="pydash.arrays.chunk" time="0.003"/> │ │ │ │ │ <testcase classname="pydash.arrays" name="pydash.arrays.compact" time="0.001"/> Patch attached that deletes this file after the test, although there are of course many other solutions to ensure that this file isn't shipped in the binary package. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
--- a/debian/rules 2024-11-11 09:25:39.062814564 -0800 --- b/debian/rules 2024-11-11 09:30:53.539482998 -0800 @@ -2,6 +2,7 @@ export PYBUILD_NAME=pydash export PYBUILD_TEST_ARGS=--verbosity=2 +export PYBUILD_AFTER_TEST=rm -rfv {build_dir}/build/testresults %: dh $@ --buildsystem=pybuild