-
Notifications
You must be signed in to change notification settings - Fork 28
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
Wait for apt
to finish
#621
Conversation
update golden refs for tests? |
🙈 ❗ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does not have the intended effect. gets stuck in a sleep loop.
my quick test shows that file (/var/lib/dpkg/lock
) as always present but we probably want something more like lsof /var/lib/dpkg/lock
Major blunder. 🤦🏼♂️ It uses a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also not having the desired effect, caught in a sleep loop.
● cml.service
Loaded: loaded (/etc/systemd/system/cml.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2022-07-05 22:17:24 UTC; 7min ago
Main PID: 14984 (cml.sh)
Tasks: 2 (limit: 19190)
Memory: 1.6M
CGroup: /system.slice/cml.service
├─14984 /bin/sh /usr/bin/cml.sh
└─19491 sleep 1
Jul 05 22:17:24 cml-qoyvzp8y43 systemd[1]: Started cml.service.
# with no apt process running
sudo lsof /var/lib/dpkg/lock
echo $?
# 1
# with apt process running
sudo lsof /var/lib/dpkg/lock
echo $?
# 0
I believe we want to drop the !
Co-authored-by: Daniel Barnes <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps a patch release?
Closes the real issue on iterative/cml#1086 (comment)