Feature: We should probably reboot at the end of our build process #39
Labels
No labels
bug
cancelled
corsica
decision
documentation
duplicate
enhancement
help wanted
invalid
mozilla-build
question
security
testing
vidyo-kiosk
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jlin/dinobuildr#39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'd suggest we force a reboot at the end of our build.
softwareupdatemay require a reboot, depending on what it installs, and I'd rather the reboot just be a consistent action.Added this feature in #49.
However, terminal remains open when the system is logged into next, because macOS does this by default. We'll leave this open as we investigate ways to avoid this.
Still sort of stalled on this, but I did come to a very silly realization: part of the problem is that we're rebooting BEFORE the python script really has a chance to finish and clean up. This is real dumb (on my part)!
So, what we'll likely need to do is move the restart step into the
config.pyscript itself, and maybe make it optional with a variable one can set so that we could avoid reboots in situations where this isn't necessary.Timing will be interesting, but worst comes to worst we can call the reboot with subprocess relatively easily.
After muuuuuuuch testing, it appears that the most stable way of doing this is within the "helper" script that we'll use to call down
config.py. Example:This method seems to reliably perform a clean shutdown and restore the output of script in the Terminal.
Merged in #77!