-
Notifications
You must be signed in to change notification settings - Fork 46
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
sdw-last-updated not created/updated after update that requires reboot #462
Comments
There appear to be two related issues with the current updater logic:
As a consequence of this logic, we never create or update the I think the easy fix is to move the REBOOT_REQUIRED check to
That means @zenmonkeykstop @emkll If that above reasoning makes sense to you, I can put in a small PR just for the |
Tracking as release blocker since it causes incorrect security notifications to be displayed to the user, which prevent them from focusing on their work at hand. |
With a bit more explanation from @eloquence this makes sense, 👍 from me. |
@emkll Am I correct that this code path will never be entered? Near as I can tell, none of the If that's correct, I would suggest we remove this dead code path as part of the PR that resolves this issue. I can also see if we can move some more business logic into |
It's not - that code path exists to handle the UI updates needed when the user restarts the updater when a reboot is still required. It gets its result from the VM status aggregation logic in Therefore nothing else to do here right now, marking #465 ready for review. Thanks to @emkll for the explanation via Slack. |
Steps to reproduce
~/.securedrop_launcher/sdw-last-updated
if it exists, or note its contentssdw-last-updated
(you don't have to actually reboot, but you're welcome to)Expected behavior
sdw-last-updated
is up-to-dateActual behavior
sdw-last-updated
is not written / stale, causingsdw-notify
to fire again. Due to the skip logic introduced in #402,sdw-last-updated
will not be written in the immediately subsequent run, either.Can I have some logs?
Yes.
The text was updated successfully, but these errors were encountered: