-
Notifications
You must be signed in to change notification settings - Fork 695
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
Handle unapplied phased updates in testinfra checks #7420
Conversation
04536f4
to
5c5607b
Compare
The noble job passed, but I had forgotten to pull develop first so the focal one failed. Anyways, rebased and marked as ready for review. |
that's a new flaky and unrelated failure. thankfully it happened in the focal job so it's irrelevant for this PR, but I'll retrigger it anyways. |
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.
This looks good, @legoktm, and CI is happy with it. However, I'm puzzled by the following result in local testing for my own edification:
user@sd:~$ docker run -it -e DEBIAN_FRONTEND=noninteractive ubuntu:noble bash -c "apt update && apt install unattended-upgrades --yes && unattended-upgrades --dry-run --debug" | tail -n 6
pkgs that look like they should be upgraded:
Fetched 0 B in 0s (0 B/s)
fetch.run() result: 0
Packages blacklist due to conffile prompts: []
No packages found that can be upgraded unattended and no pending auto-removals
The list of kept packages can't be calculated in dry-run mode.
In other words, I'm running the command at —
c = host.run("sudo unattended-upgrades --dry-run --debug") |
—explicitly under Noble, but I'm getting the Focal result at:
"No packages found that can be upgraded unattended and no pending auto-removals" |
Is it worth refining the conditional you've added here? or are we happy with this working as expected in CI?
I suspect it's because there are currently no phased updates that affect the Docker container, so we get the original all good message. Let me adjust the logic to check for that message first, and then fallback to our new string if it's missing. |
noble now has phased updates, in which the package repository will have pending updates, but they won't be applied yet. We need to look for a different message on noble to handle this change. Fixes #7419.
5c5607b
to
afcd913
Compare
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.
Thanks, @legoktm.
Status
Ready for review
Description of Changes
noble now has phased updates, in which the package repository will have pending updates, but they won't be applied yet. We need to look for a different message on noble to handle this change.
Fixes #7419.
Testing
How should the reviewer test this PR?
Deployment
Any special considerations for deployment? n/a
Checklist