fix(packer/linux): disable unattended-upgrades to prevent job interruptions#192
Merged
skipi merged 6 commits intorenderedtext:masterfrom Feb 3, 2026
Merged
Conversation
…ptions Disable unattended-upgrades and apt timers to prevent mid-job interruptions. Library upgrades (e.g., libglib2.0) trigger libc-bin processing which causes systemd to restart services, sending SIGTERM to semaphore-agent and killing running CI jobs. - Disable apt-daily.timer and apt-daily-upgrade.timer - Stop unattended-upgrades service - Configure apt to disable automatic upgrades - Add documentation explaining the change
Contributor
|
/sem-approve |
Contributor
Author
|
@dexyk can you let me know the failure reason ? |
Member
|
👋🏻 Can we also disable unattended-upgrades at instance launch time (not just during AMI build)? This would ensure consistency between the baked AMI and running instances. Simply purging the package should cover all cases - it removes the service, timers, and config files in one task: - name: Remove unattended-upgrades package
ansible.builtin.apt:
name: unattended-upgrades
state: absent
purge: yes
tags:
- disable_unattendedThis is simpler than the current approach of stopping services + writing config files, and achieves the same result. |
Replace multi-step approach (stopping services, disabling timers, writing config files) with single package purge. Also add purge at instance launch to ensure consistency between baked AMI and running instances.
Member
|
@Yashprime1 can we add this info to the PR? |
Member
|
/sem-approve |
toil: add context for future maintenance
Member
|
@Yashprime1 I've submitted one more PR |
Change purge option from 'yes' to 'true'
Member
|
/sem-approve |
skipi
approved these changes
Feb 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Disable unattended-upgrades and apt timers to prevent mid-job interruptions. Library upgrades (e.g., libglib2.0) trigger libc-bin processing which causes systemd to restart services, sending SIGTERM to semaphore-agent and killing running CI jobs.