While working on reproducible builds for openSUSE, I found that
running the python-snimpy tests after 2038-01-19 lets them get stuck.
Specifically tests/test_main.py::TestMain::test_loadfile (might only be the first one to trigger).
to reproduce on Debian or openSUSE, I use
osc co openSUSE:Factory/python-snimpy && cd $_
osc build --clean --noservice --vm-type=kvm --build-opt=--vm-custom-opt="-rtc base=2038-01-19T08:00:00"
The date indicates that somewhere seconds since 1970-01-01 are stored in a signed 32-bit int that overflows after 0x7fffffff
Background:
As part of my work on reproducible builds for openSUSE, I check that software still gives identical build results in the future.
The usual offset is +16 years, because that is how long I expect some software will be used in some places.
This showed up the stuck test in our package build.
While working on reproducible builds for openSUSE, I found that
running the
python-snimpytests after 2038-01-19 lets them get stuck.Specifically
tests/test_main.py::TestMain::test_loadfile(might only be the first one to trigger).to reproduce on Debian or openSUSE, I use
The date indicates that somewhere seconds since 1970-01-01 are stored in a signed 32-bit int that overflows after 0x7fffffff
Background:
As part of my work on reproducible builds for openSUSE, I check that software still gives identical build results in the future.
The usual offset is +16 years, because that is how long I expect some software will be used in some places.
This showed up the stuck test in our package build.