-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests fail after 2024-01-19 #1961
Comments
Thank you @bmwiedemann for reporting this and for suggesting a cause, which is probably correct. Ping @ni4 and @antonsviridenko on what should be the desired behavior here for the tests. |
@bmwiedemann Thanks for reporting!
|
IMHO, treating timestamp as a variable is the most versatile approach. This way you can declare in tests:
Another approach for keys that are meant to "not be expired" is to set expiry to +1000 years. It does not help with SHA-1 deprecation, though. |
We can generate new keys on each test run with appropriate expiration dates depending on current time, but it will take more time to run the test. |
Is most of the time used for key generation due to lack of entropy? Can we supply a mock entropy source for tests for reproducibility and speed? |
or we can just update the expiration date on an already generated key... |
10 months to go - what is your plan to fix this issue? |
@bmwiedemann It's on my todo list already, just didn't get to the implementation yet. |
3 months to go. |
Thank you @bmwiedemann for the reminder... |
Description
When building the
rnp-0.16.2
openSUSE package after 2024-01-19, three tests failSteps to Reproduce
osc co openSUSE:Factory/rnp && cd $_
osc build --vm-type=kvm --noservice --clean --build-opt=--vm-custom-opt="-rtc base=2024-01-19T12:00:00" standard
Expected Behavior
Tests should keep passing in future
Actual Behavior
The failure is probably from
src/lib/sec_profile.cpp
SHA-1 depecationBackground:
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 failing tests in our package build.
See https://reproducible-builds.org/ for why this matters.
The text was updated successfully, but these errors were encountered: