Bug 1208969 - sonic-pi fails ErlangTauOSCTest in year 2038
Summary: sonic-pi fails ErlangTauOSCTest in year 2038
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: Current
Hardware: Other All
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Dirk Mueller
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-06 12:19 UTC by Bernhard Wiedemann
Modified: 2023-03-15 18:01 UTC (History)
3 users (show)

See Also:
Found By: Development
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Wiedemann 2023-03-06 12:19:02 UTC
osc build --vm-type=kvm --noservice --clean --build-opt=--vm-custom-opt="-rtc base=2038-01-20T00:00:00" standard

Actual results:
[  579s]   1) test making a bundle with a timestamp (ErlangTauOSCTest)
[  579s]      test/erlang_tau_osc_test.exs:37
[  579s]      Assertion with < failed
[  579s]      code:  assert abs(t - new_t) < 0.0001
[  579s]      left:  4294967296.0
[  579s]      right: 0.0001
[  579s]      stacktrace:
[  579s]        test/erlang_tau_osc_test.exs:42: (test)

from
https://github.com/sonic-pi-net/sonic-pi/blob/v4.3.0/app/server/beam/tau/test/erlang_tau_osc_test.exs#L37
https://github.com/sonic-pi-net/sonic-pi/blob/v4.3.0/app/server/beam/tau/src/osc/osc.erl#L121

Can you check whether this needs to be fixed in sonic-pi or in erlang
and work with the respective upstream?


This bug was found while working on reproducible builds for openSUSE.